mirror of
https://github.com/SimpleMobileTools/Simple-Draw.git
synced 2025-06-05 21:59:17 +02:00
lets add a new Prepaid build variant with some Google related things hidden
This commit is contained in:
@ -49,6 +49,7 @@ android {
|
|||||||
productFlavors {
|
productFlavors {
|
||||||
core {}
|
core {}
|
||||||
fdroid {}
|
fdroid {}
|
||||||
|
prepaid {}
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@ -62,6 +63,6 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:03e4d214b1'
|
implementation 'com.github.SimpleMobileTools:Simple-Commons:b1ac82c8e1'
|
||||||
implementation "androidx.print:print:1.0.0"
|
implementation "androidx.print:print:1.0.0"
|
||||||
}
|
}
|
||||||
|
@ -196,11 +196,13 @@ class MainActivity : SimpleActivity(), CanvasListener {
|
|||||||
private fun launchAbout() {
|
private fun launchAbout() {
|
||||||
val licenses = LICENSE_GLIDE
|
val licenses = LICENSE_GLIDE
|
||||||
|
|
||||||
val faqItems = arrayListOf(
|
val faqItems = ArrayList<FAQItem>()
|
||||||
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),
|
if (!resources.getBoolean(R.bool.hide_google_relations)) {
|
||||||
FAQItem(R.string.faq_7_title_commons, R.string.faq_7_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))
|
||||||
|
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)
|
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>
|
Reference in New Issue
Block a user