-
Notifications
You must be signed in to change notification settings - Fork 106
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
Comments
After some tests, it's not working when more then one dot is set: |
@Thomas-Bagnolati How did you ultimately set up the files and |
@Thomas-Bagnolati So the only name you can have for the debug properties file is |
Finally this is what I ended up doing: secrets{
propertiesFileName = project.gradle.startParameter.taskNames.any {
it.contains("Release") } ? "apikeys.release.properties" : "apikeys.debug.properties"
} @Thomas-Bagnolati, @Makalaster Do you see any problems with this? |
Config
build.gradle.kts
files names on root project :
debug.secrets.properties
secrets.properties
Result Error
Always show the
secrets.properties
content, even when set asSolution
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 adebug
variant, use file nameddebug.properties
.The text was updated successfully, but these errors were encountered: