adding a Prepaid product flavor

This commit is contained in:
tibbi 2022-05-03 10:56:16 +02:00
parent 32ba7dfa51
commit 146a1b1d69
3 changed files with 14 additions and 4 deletions

View file

@ -59,6 +59,7 @@ android {
productFlavors {
proprietary {}
foss {}
prepaid {}
}
lintOptions {

View file

@ -107,13 +107,16 @@ fun SimpleActivity.launchAbout() {
FAQItem(R.string.faq_15_title, R.string.faq_15_text),
FAQItem(R.string.faq_2_title, R.string.faq_2_text),
FAQItem(R.string.faq_18_title, R.string.faq_18_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_10_title_commons, R.string.faq_10_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))
faqItems.add(FAQItem(R.string.faq_10_title_commons, R.string.faq_10_text_commons))
}
if (isRPlus()) {
faqItems.add(0, FAQItem(R.string.faq_16_title, R.string.faq_16_text))
faqItems.add(1, FAQItem(R.string.faq_17_title, R.string.faq_17_text))

View 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>