Flavors
This commit is contained in:
parent
0c6f1cd540
commit
b1390582da
2 changed files with 18 additions and 3 deletions
|
@ -30,11 +30,25 @@ android {
|
||||||
release {
|
release {
|
||||||
minifyEnabled true
|
minifyEnabled true
|
||||||
debuggable false
|
debuggable false
|
||||||
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||||
}
|
}
|
||||||
|
|
||||||
debug {
|
debug {
|
||||||
minifyEnabled false
|
minifyEnabled false
|
||||||
debuggable true
|
debuggable true
|
||||||
|
applicationIdSuffix ".debug"
|
||||||
|
versionNameSuffix "-debug"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
flavorDimensions "store"
|
||||||
|
productFlavors {
|
||||||
|
forPlay {
|
||||||
|
dimension "store"
|
||||||
|
buildConfigField 'String', 'STORE', '"play"'
|
||||||
|
}
|
||||||
|
forFDroid {
|
||||||
|
dimension "store"
|
||||||
|
buildConfigField 'String', 'STORE', '"fdroid"'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,8 +81,8 @@ dependencies {
|
||||||
// OkHttp (HTTP library)
|
// OkHttp (HTTP library)
|
||||||
implementation "com.squareup.okhttp3:okhttp:4.9.2"
|
implementation "com.squareup.okhttp3:okhttp:4.9.2"
|
||||||
|
|
||||||
// Firebase, sigh ...
|
// Firebase, sigh ... (only Google Play)
|
||||||
implementation 'com.google.firebase:firebase-messaging:22.0.0'
|
forPlayImplementation 'com.google.firebase:firebase-messaging:22.0.0'
|
||||||
|
|
||||||
// RecyclerView
|
// RecyclerView
|
||||||
implementation "androidx.recyclerview:recyclerview:$rootProject.recyclerViewVersion"
|
implementation "androidx.recyclerview:recyclerview:$rootProject.recyclerViewVersion"
|
||||||
|
|
1
app/proguard-rules.pro
vendored
Normal file
1
app/proguard-rules.pro
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
-dontobfuscate
|
Loading…
Reference in a new issue