mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-22 07:42:52 +00:00
Use product flavors
This commit is contained in:
parent
1b3f8e5f3f
commit
7c41a22690
2 changed files with 16 additions and 15 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -11,7 +11,7 @@
|
|||
/build
|
||||
/captures
|
||||
.externalNativeBuild
|
||||
/app/release
|
||||
/app/full
|
||||
/app/play
|
||||
/tools/config.sh
|
||||
crowdin.properties
|
||||
|
|
|
@ -7,7 +7,7 @@ android {
|
|||
minSdkVersion 21
|
||||
targetSdkVersion 28
|
||||
versionCode 261
|
||||
versionName "1.$versionCode"
|
||||
versionName "1.261"
|
||||
archivesBaseName = "FairEmail-v$versionName"
|
||||
|
||||
javaCompileOptions {
|
||||
|
@ -24,19 +24,6 @@ android {
|
|||
useProguard = true
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
buildConfigField "boolean", "BETA_RELEASE", "true"
|
||||
buildConfigField "boolean", "PLAY_STORE_RELEASE", "false"
|
||||
buildConfigField "String", "PRO_FEATURES", "\"https://email.faircode.eu/#pro\""
|
||||
buildConfigField "String", "GITHUB_LATEST_API", "\"https://api.github.com/repos/M66B/open-source-email/releases/latest\""
|
||||
}
|
||||
play {
|
||||
debuggable = false
|
||||
minifyEnabled = true
|
||||
useProguard = true
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
buildConfigField "boolean", "BETA_RELEASE", "true"
|
||||
buildConfigField "boolean", "PLAY_STORE_RELEASE", "true"
|
||||
buildConfigField "String", "PRO_FEATURES", "\"https://email.faircode.eu/pro/\""
|
||||
buildConfigField "String", "GITHUB_LATEST_API", "\"\""
|
||||
}
|
||||
debug {
|
||||
debuggable = true
|
||||
|
@ -44,10 +31,24 @@ android {
|
|||
useProguard = false
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
buildConfigField "boolean", "BETA_RELEASE", "true"
|
||||
}
|
||||
}
|
||||
|
||||
flavorDimensions "all"
|
||||
|
||||
productFlavors {
|
||||
full {
|
||||
dimension "all"
|
||||
buildConfigField "boolean", "PLAY_STORE_RELEASE", "false"
|
||||
buildConfigField "String", "PRO_FEATURES", "\"https://email.faircode.eu/pro/\""
|
||||
buildConfigField "String", "GITHUB_LATEST_API", "\"https://api.github.com/repos/M66B/open-source-email/releases/latest\""
|
||||
}
|
||||
play {
|
||||
dimension "all"
|
||||
buildConfigField "boolean", "PLAY_STORE_RELEASE", "true"
|
||||
buildConfigField "String", "PRO_FEATURES", "\"https://email.faircode.eu/#pro\""
|
||||
buildConfigField "String", "GITHUB_LATEST_API", "\"\""
|
||||
}
|
||||
}
|
||||
|
||||
lintOptions {
|
||||
|
|
Loading…
Reference in a new issue