Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build-Variant Specific Properties not working when file name as more then one dot. #64

Open
Thomas-Bagnolati opened this issue May 17, 2023 · 2 comments

Comments

@Thomas-Bagnolati
Copy link

Config

build.gradle.kts

secrets {
    propertiesFileName = "secrets.properties"
}

files names on root project :

  • debug.secrets.properties
  • secrets.properties

Result Error

Always show the secrets.properties content, even when set as

Solution

There is no bug, I finaly realise my mistake. But in case of someone did the same I have to say you you have to replace the first world by the build variant insted of add it.
So, for propertiesFileName = "secrets.properties" and a debug variant, use file named debug.properties.

@Thomas-Bagnolati
Copy link
Author

After some tests, it's not working when more then one dot is set:
Not working -> debug.secrets.properties default.secrets.properties

@Makalaster
Copy link

@Thomas-Bagnolati How did you ultimately set up the files and secrets block with multiple build variants? Is there still a secrets.properties file? What do you set in the secrets block for the propertiesFileName?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants