lets add a new Prepaid build variant with some Google related things hidden
This commit is contained in:
parent
baf48cd549
commit
36618aaa6e
3 changed files with 13 additions and 6 deletions
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
4
app/src/prepaid/res/values/bools.xml
Normal file
4
app/src/prepaid/res/values/bools.xml
Normal file
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<bool name="hide_google_relations">true</bool>
|
||||
</resources>
|
Loading…
Reference in a new issue