mirror of
https://github.com/SimpleMobileTools/Simple-Keyboard.git
synced 2025-02-18 04:40:37 +01:00
adding a prepaid app variant
This commit is contained in:
parent
08f8783c6e
commit
8f45bf5bf1
@ -51,6 +51,7 @@ android {
|
|||||||
productFlavors {
|
productFlavors {
|
||||||
core {}
|
core {}
|
||||||
fdroid {}
|
fdroid {}
|
||||||
|
prepaid {}
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@ -64,7 +65,7 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:faa6a972c2'
|
implementation 'com.github.SimpleMobileTools:Simple-Commons:7df0d79980'
|
||||||
|
|
||||||
kapt 'androidx.room:room-compiler:2.4.2'
|
kapt 'androidx.room:room-compiler:2.4.2'
|
||||||
implementation 'androidx.room:room-runtime:2.4.2'
|
implementation 'androidx.room:room-runtime:2.4.2'
|
||||||
|
@ -69,10 +69,11 @@ class MainActivity : SimpleActivity() {
|
|||||||
private fun launchAbout() {
|
private fun launchAbout() {
|
||||||
val licenses = LICENSE_GSON
|
val licenses = LICENSE_GSON
|
||||||
|
|
||||||
val faqItems = arrayListOf(
|
val faqItems = ArrayList<FAQItem>()
|
||||||
FAQItem(R.string.faq_2_title_commons, R.string.faq_2_text_commons),
|
if (!resources.getBoolean(R.bool.hide_google_relations)) {
|
||||||
FAQItem(R.string.faq_6_title_commons, R.string.faq_6_text_commons),
|
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)
|
startAboutActivity(R.string.app_name, licenses, BuildConfig.VERSION_NAME, faqItems, true)
|
||||||
}
|
}
|
||||||
|
7
app/src/prepaid/res/values/bools.xml
Normal file
7
app/src/prepaid/res/values/bools.xml
Normal 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>
|
Loading…
x
Reference in New Issue
Block a user