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 {
|
||||
minifyEnabled true
|
||||
debuggable false
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
|
||||
debug {
|
||||
minifyEnabled false
|
||||
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)
|
||||
implementation "com.squareup.okhttp3:okhttp:4.9.2"
|
||||
|
||||
// Firebase, sigh ...
|
||||
implementation 'com.google.firebase:firebase-messaging:22.0.0'
|
||||
// Firebase, sigh ... (only Google Play)
|
||||
forPlayImplementation 'com.google.firebase:firebase-messaging:22.0.0'
|
||||
|
||||
// RecyclerView
|
||||
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