lets add a new Prepaid build variant with some Google related things hidden

This commit is contained in:
tibbi 2022-02-21 10:25:40 +01:00
parent baf48cd549
commit 36618aaa6e
3 changed files with 13 additions and 6 deletions

View file

@ -49,6 +49,7 @@ android {
productFlavors {
core {}
fdroid {}
prepaid {}
}
sourceSets {
@ -62,6 +63,6 @@ android {
}
dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:03e4d214b1'
implementation 'com.github.SimpleMobileTools:Simple-Commons:b1ac82c8e1'
implementation "androidx.print:print:1.0.0"
}

View file

@ -196,11 +196,13 @@ class MainActivity : SimpleActivity(), CanvasListener {
private fun launchAbout() {
val licenses = LICENSE_GLIDE
val faqItems = arrayListOf(
FAQItem(R.string.faq_2_title_commons, R.string.faq_2_text_commons),
FAQItem(R.string.faq_6_title_commons, R.string.faq_6_text_commons),
FAQItem(R.string.faq_7_title_commons, R.string.faq_7_text_commons)
)
val faqItems = ArrayList<FAQItem>()
if (!resources.getBoolean(R.bool.hide_google_relations)) {
faqItems.add(FAQItem(R.string.faq_2_title_commons, R.string.faq_2_text_commons))
faqItems.add(FAQItem(R.string.faq_6_title_commons, R.string.faq_6_text_commons))
faqItems.add(FAQItem(R.string.faq_7_title_commons, R.string.faq_7_text_commons))
}
startAboutActivity(R.string.app_name, licenses, BuildConfig.VERSION_NAME, faqItems, false)
}

View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="hide_google_relations">true</bool>
</resources>