Skip to content

Commit fc3fbd6

Browse files
fix: migrate to commons 7.1.0
1 parent 8d458b2 commit fc3fbd6

5 files changed

Lines changed: 5 additions & 7 deletions

File tree

‎app/build.gradle.kts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ android {
8585

8686
flavorDimensions.add("variants")
8787
productFlavors {
88-
register("core")
8988
register("foss")
9089
register("gplay")
9190
}

‎app/src/foss/res/values/bools.xml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
33
<bool name="show_donate_in_about">true</bool>
4-
<bool name="hide_google_relations">true</bool>
5-
<bool name="pretend_thank_you_installed">true</bool>
4+
<bool name="is_google_play_build">false</bool>
65
</resources>

‎app/src/gplay/res/values/bools.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
33
<bool name="show_donate_in_about">false</bool>
4-
<bool name="hide_google_relations">false</bool>
4+
<bool name="is_google_play_build">true</bool>
55
</resources>

‎app/src/main/kotlin/org/fossify/notes/activities/MainActivity.kt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ class MainActivity : SimpleActivity() {
275275
findItem(R.id.unlock_note).isVisible =
276276
mNotes.isNotEmpty() && (::mCurrentNote.isInitialized && mCurrentNote.isLocked())
277277
findItem(R.id.more_apps_from_us).isVisible =
278-
!resources.getBoolean(org.fossify.commons.R.bool.hide_google_relations)
278+
resources.getBoolean(org.fossify.commons.R.bool.is_google_play_build)
279279
findItem(R.id.delete_note).isVisible = !isDefaultEmptyNote || mNotes.size > 1
280280

281281
saveNoteButton = findItem(R.id.save_note)
@@ -793,7 +793,7 @@ class MainActivity : SimpleActivity() {
793793
)
794794
)
795795

796-
if (!resources.getBoolean(org.fossify.commons.R.bool.hide_google_relations)) {
796+
if (resources.getBoolean(org.fossify.commons.R.bool.is_google_play_build)) {
797797
faqItems.add(
798798
FAQItem(
799799
title = org.fossify.commons.R.string.faq_2_title_commons,

‎gradle/libs.versions.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ androidx-documentfile = "1.1.0"
1313
#Room
1414
room = "2.8.5"
1515
#Fossify
16-
commons = "6.1.6"
16+
commons = "7.1.0"
1717
#Gradle
1818
gradlePlugins-agp = "9.4.1"
1919
#build

0 commit comments

Comments
 (0)