adding a prepaid app variant

This commit is contained in:
tibbi 2022-06-30 23:29:09 +02:00
parent 08f8783c6e
commit 8f45bf5bf1
3 changed files with 14 additions and 5 deletions

View File

@ -51,6 +51,7 @@ android {
productFlavors {
core {}
fdroid {}
prepaid {}
}
sourceSets {
@ -64,7 +65,7 @@ android {
}
dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:faa6a972c2'
implementation 'com.github.SimpleMobileTools:Simple-Commons:7df0d79980'
kapt 'androidx.room:room-compiler:2.4.2'
implementation 'androidx.room:room-runtime:2.4.2'

View File

@ -69,10 +69,11 @@ class MainActivity : SimpleActivity() {
private fun launchAbout() {
val licenses = LICENSE_GSON
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),
)
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))
}
startAboutActivity(R.string.app_name, licenses, BuildConfig.VERSION_NAME, faqItems, true)
}

View File

@ -0,0 +1,7 @@
<?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>
<bool name="pretend_thank_you_installed">true</bool>
</resources>