[android]: Add F-Droid flavor

Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
This commit is contained in:
Roman Tsisyk 2021-03-07 22:03:15 +03:00
parent 5136a60e26
commit 4e24af95e4

View file

@ -306,6 +306,13 @@ android {
//android.sourceSets.web.assets.srcDirs = ['flavors/mwm-ttf-assets']
}
fdroid {
dimension "default"
versionName = android.defaultConfig.versionName + '-FDroid'
buildConfigField 'String', 'SUPPORT_MAIL', '"fdroid@omaps.app"'
//android.sourceSets.web.assets.srcDirs = ['flavors/mwm-ttf-assets']
}
nineApp {
dimension "default"
versionName = android.defaultConfig.versionName + '-9app'
@ -370,6 +377,7 @@ android {
variantFilter { variant ->
if (!variant.getFlavors().get(0).name.equals("web")
&& !variant.getFlavors().get(0).name.equals("google")
&& !variant.getFlavors().get(0).name.equals("fdroid")
&& !project.hasProperty("anyVariant")) {
variant.setIgnore(true)
}