Skip to content

Instantly share code, notes, and snippets.

@Nek-12
Created August 11, 2021 17:03
Show Gist options
  • Save Nek-12/2d73b85b0ac3103840cf414add460328 to your computer and use it in GitHub Desktop.
Save Nek-12/2d73b85b0ac3103840cf414add460328 to your computer and use it in GitHub Desktop.
How to get your release application id as a buildConfig field
android {
defaultConfig {
applicationId = "com.nek.example" //be sure to follow the same order as here, or the id will be "null"
buildConfigField("String", "APPLICATION_ID_DEFAULT", "\"${android.defaultConfig.applicationId}\"")
//...
}
}
buildTypes {
getByName("debug") {
applicationIdSuffix(".debug")
//...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment