adding a prepaid build variant
This commit is contained in:
parent
3e3cb3cf99
commit
95da76ca47
3 changed files with 13 additions and 3 deletions
|
|
@ -49,6 +49,7 @@ android {
|
||||||
productFlavors {
|
productFlavors {
|
||||||
core {}
|
core {}
|
||||||
fdroid {}
|
fdroid {}
|
||||||
|
prepaid {}
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
|
|
|
||||||
|
|
@ -541,12 +541,15 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
|
||||||
|
|
||||||
val faqItems = arrayListOf(
|
val faqItems = arrayListOf(
|
||||||
FAQItem(R.string.faq_1_title, R.string.faq_1_text),
|
FAQItem(R.string.faq_1_title, R.string.faq_1_text),
|
||||||
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),
|
|
||||||
FAQItem(R.string.faq_9_title_commons, R.string.faq_9_text_commons)
|
FAQItem(R.string.faq_9_title_commons, R.string.faq_9_text_commons)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
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, true)
|
startAboutActivity(R.string.app_name, licenses, BuildConfig.VERSION_NAME, faqItems, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
6
app/src/prepaid/res/values/bools.xml
Normal file
6
app/src/prepaid/res/values/bools.xml
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<bool name="show_donate_in_about">false</bool>
|
||||||
|
<bool name="hide_google_relations">true</bool>
|
||||||
|
<bool name="hide_all_external_links">true</bool>
|
||||||
|
</resources>
|
||||||
Loading…
Reference in a new issue