1

During the build process, I'd like to change the value of a property in an existing property file depending on whether it's a release or debug build.

File: res/raw/app.property

key=value-prod

During the debug build, I want to set key=value-debug and for release set key=value-prod

Can this be done in build.gradle? Current build file looks like below:

android {

...

buildTypes {
    release {
        signingConfig signingConfigs.release
    }
}

...

}

keno
  • 2,956
  • 26
  • 39
  • Just have separate release/debug versions of the properties file? – Scott Barta Aug 01 '14 at 21:45
  • Duplicate of https://stackoverflow.com/questions/33852529/change-properties-file-and-settings-gradle-file-in-android-project-based-on-bui – karma Dec 19 '17 at 02:42

0 Answers0