Created
August 11, 2021 17:03
-
-
Save Nek-12/2d73b85b0ac3103840cf414add460328 to your computer and use it in GitHub Desktop.
How to get your release application id as a buildConfig field
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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