From d9e7b825c919f293830ecb878999ef0a857ac39b Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 14 Jan 2022 14:18:17 +0100 Subject: [PATCH] add a new flavor, show Donate button in F-droids About section --- app/build.gradle | 10 ++++++++-- app/src/fdroid/res/values/bools.xml | 5 +++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 app/src/fdroid/res/values/bools.xml diff --git a/app/build.gradle b/app/build.gradle index 32125e4..bbc60f0 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -33,7 +33,7 @@ android { buildTypes { debug { - applicationIdSuffix ".debug" + applicationIdSuffix ".debug" } release { minifyEnabled true @@ -44,6 +44,12 @@ android { } } + flavorDimensions "variants" + productFlavors { + core {} + fdroid {} + } + sourceSets { main.java.srcDirs += 'src/main/kotlin' } @@ -55,7 +61,7 @@ android { } dependencies { - implementation 'com.github.SimpleMobileTools:Simple-Commons:14033f9b50' + implementation 'com.github.SimpleMobileTools:Simple-Commons:02b48c0b4d' implementation 'me.grantland:autofittextview:0.2.1' implementation 'net.objecthunter:exp4j:0.4.8' } diff --git a/app/src/fdroid/res/values/bools.xml b/app/src/fdroid/res/values/bools.xml new file mode 100644 index 0000000..fe1f7a1 --- /dev/null +++ b/app/src/fdroid/res/values/bools.xml @@ -0,0 +1,5 @@ + + + true + true +