Hello I have the following problem:
As seen in oficial android documentation I can use build variants and build my application via different settings.
Therefore, I made my own variants:
android {
defaultConfig {
manifestPlaceholders = [hostName:"www.example.com"]
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
applicationIdSuffix ".debug"
manifestPlaceholders = [hostName:"local.example.com"]
…
What I want is to access the settings from build.gradle
. Do you know how I can do this?
Top comments (0)