~repos /only-bible-app
git clone https://pyrossh.dev/repos/only-bible-app.git
The only bible app you will ever need. No ads. No in-app purchases. No distractions.
98792b97
—
pyrossh 1 year ago
remove libs.androidx.lifecycle.runtime.ktx
app/build.gradle.kts
CHANGED
|
@@ -39,8 +39,6 @@ kotlin {
|
|
|
39
39
|
sourceSets {
|
|
40
40
|
androidMain.dependencies {
|
|
41
41
|
implementation(libs.androidx.activity.compose)
|
|
42
|
-
implementation(libs.androidx.lifecycle.runtime.ktx)
|
|
43
|
-
|
|
44
42
|
}
|
|
45
43
|
commonMain.dependencies {
|
|
46
44
|
implementation(compose.runtime)
|
app/src/main/java/dev/pyrossh/onlyBible/AppViewModel.kt
CHANGED
|
@@ -104,21 +104,21 @@ class AppViewModel : ViewModel() {
|
|
|
104
104
|
viewModelScope.launch(Dispatchers.Main) {
|
|
105
105
|
isLoading = true
|
|
106
106
|
}
|
|
107
|
-
val bibleFileName = s.getString("bible", "en_kjv")
|
|
107
|
+
val bibleFileName = s.getString("bible", "en_kjv")
|
|
108
108
|
bookIndex = s.getInt("bookIndex", 0)
|
|
109
109
|
chapterIndex = s.getInt("chapterIndex", 0)
|
|
110
110
|
verseIndex = s.getInt("verseIndex", 0)
|
|
111
111
|
fontType = FontType.valueOf(
|
|
112
|
-
s.getString("fontType", FontType.Sans.name)
|
|
112
|
+
s.getString("fontType", FontType.Sans.name)
|
|
113
113
|
)
|
|
114
114
|
fontSizeDelta = s.getInt("fontSizeDelta", 0)
|
|
115
115
|
fontBoldEnabled = s.getBoolean("fontBoldEnabled", false)
|
|
116
116
|
lineSpacingDelta = s.getInt("lineSpacingDelta", 0)
|
|
117
117
|
themeType = ThemeType.valueOf(
|
|
118
|
-
s.getString("themeType", ThemeType.Auto.name)
|
|
118
|
+
s.getString("themeType", ThemeType.Auto.name)
|
|
119
119
|
)
|
|
120
120
|
highlightedVerses.value =
|
|
121
|
-
JSONObject(s.getString("highlightedVerses", "{}")
|
|
121
|
+
JSONObject(s.getString("highlightedVerses", "{}"))
|
|
122
122
|
val localBible = bibles.find { it.filename() == bibleFileName } ?: bibles.first()
|
|
123
123
|
loadBible(localBible)
|
|
124
124
|
viewModelScope.launch(Dispatchers.Main) {
|
gradle/libs.versions.toml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
[versions]
|
|
2
|
-
agp = "8.3.
|
|
2
|
+
agp = "8.3.2"
|
|
3
3
|
speechClientSdk = "1.34.0"
|
|
4
4
|
kotlin = "2.0.0"
|
|
5
5
|
kotlinxCoroutinesCore = "1.9.0-RC"
|
|
@@ -8,7 +8,6 @@ junit = "4.13.2"
|
|
|
8
8
|
junitVersion = "1.2.1"
|
|
9
9
|
activityCompose = "1.9.1"
|
|
10
10
|
navigationCompose = "2.8.0-alpha08"
|
|
11
|
-
lifecycleRuntimeKtx = "2.8.4"
|
|
12
11
|
lifecycleViewmodelCompose = "2.8.4" # 2.8.0
|
|
13
12
|
multiplatformSettings = "1.1.1"
|
|
14
13
|
composePlugin = "1.6.11"
|
|
@@ -22,7 +21,6 @@ multiplatform-settings = { module = "com.russhwolf:multiplatform-settings", vers
|
|
|
22
21
|
speech-client-sdk = { module = "com.microsoft.cognitiveservices.speech:client-sdk", version.ref = "speechClientSdk" }
|
|
23
22
|
junit = { group = "junit", name = "junit", version.ref = "junit" }
|
|
24
23
|
androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" }
|
|
25
|
-
androidx-lifecycle-runtime-ktx = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version.ref = "lifecycleRuntimeKtx" }
|
|
26
24
|
androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref = "activityCompose" }
|
|
27
25
|
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinxCoroutinesCore" }
|
|
28
26
|
kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinxSerialization" }
|