~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.
464e6052
—
pyrossh 1 year ago
move chapterSizes
- .gitignore +1 -0
- app/src/main/java/dev/pyrossh/onlyBible/AppDrawer.kt +2 -2
- app/src/main/java/dev/pyrossh/onlyBible/AppViewModel.kt +1 -1
- app/src/main/java/dev/pyrossh/onlyBible/domain/Verse.kt +69 -71
- fastlane/metadata/android/en-GB/changelogs/3.txt +1 -0
- fastlane/metadata/android/en-GB/images/featureGraphic.png +0 -0
- fastlane/metadata/android/en-GB/images/icon.png +0 -0
- fastlane/metadata/android/en-GB/images/phoneScreenshots/1_en-GB.jpeg +0 -0
- fastlane/metadata/android/en-GB/images/phoneScreenshots/2_en-GB.jpeg +0 -0
- fastlane/metadata/android/en-GB/images/phoneScreenshots/3_en-GB.jpeg +0 -0
- fastlane/metadata/android/en-GB/images/phoneScreenshots/4_en-GB.jpeg +0 -0
- fastlane/metadata/android/en-GB/images/phoneScreenshots/5_en-GB.jpeg +0 -0
- fastlane/metadata/android/en-GB/images/phoneScreenshots/6_en-GB.jpeg +0 -0
- fastlane/metadata/android/en-GB/images/phoneScreenshots/7_en-GB.jpeg +0 -0
- fastlane/metadata/android/en-GB/images/phoneScreenshots/8_en-GB.jpeg +0 -0
.gitignore
CHANGED
|
@@ -18,3 +18,4 @@ local.properties
|
|
|
18
18
|
keystore.properties
|
|
19
19
|
upload-keystore.jks
|
|
20
20
|
svc.json
|
|
21
|
+
node_modules
|
app/src/main/java/dev/pyrossh/onlyBible/AppDrawer.kt
CHANGED
|
@@ -39,7 +39,7 @@ import androidx.compose.ui.text.TextStyle
|
|
|
39
39
|
import androidx.compose.ui.text.font.FontWeight
|
|
40
40
|
import androidx.compose.ui.unit.dp
|
|
41
41
|
import androidx.compose.ui.unit.sp
|
|
42
|
-
import dev.pyrossh.onlyBible.domain.
|
|
42
|
+
import dev.pyrossh.onlyBible.domain.chapterSizes
|
|
43
43
|
import kotlinx.coroutines.Job
|
|
44
44
|
import kotlinx.coroutines.launch
|
|
45
45
|
import java.util.Locale
|
|
@@ -237,7 +237,7 @@ fun AppDrawer(
|
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
items(
|
|
240
|
+
items(chapterSizes[bookIndex]) { c ->
|
|
241
241
|
QuickButton(
|
|
242
242
|
title = "${c + 1}",
|
|
243
243
|
subtitle = null,
|
app/src/main/java/dev/pyrossh/onlyBible/AppViewModel.kt
CHANGED
|
@@ -24,7 +24,7 @@ import com.microsoft.cognitiveservices.speech.SpeechSynthesisEventArgs
|
|
|
24
24
|
import com.microsoft.cognitiveservices.speech.SpeechSynthesizer
|
|
25
25
|
import dev.pyrossh.onlyBible.domain.BOOKS_COUNT
|
|
26
26
|
import dev.pyrossh.onlyBible.domain.Verse
|
|
27
|
-
import dev.pyrossh.onlyBible.domain.
|
|
27
|
+
import dev.pyrossh.onlyBible.domain.chapterSizes
|
|
28
28
|
import dev.pyrossh.onlyBible.domain.engTitles
|
|
29
29
|
import kotlinx.coroutines.Dispatchers
|
|
30
30
|
import kotlinx.coroutines.FlowPreview
|
app/src/main/java/dev/pyrossh/onlyBible/domain/Verse.kt
CHANGED
|
@@ -75,6 +75,75 @@ val engTitles = listOf(
|
|
|
75
75
|
"Revelation",
|
|
76
76
|
)
|
|
77
77
|
|
|
78
|
+
val chapterSizes = listOf(
|
|
79
|
+
50,
|
|
80
|
+
40,
|
|
81
|
+
27,
|
|
82
|
+
36,
|
|
83
|
+
34,
|
|
84
|
+
24,
|
|
85
|
+
21,
|
|
86
|
+
4,
|
|
87
|
+
31,
|
|
88
|
+
24,
|
|
89
|
+
22,
|
|
90
|
+
25,
|
|
91
|
+
29,
|
|
92
|
+
36,
|
|
93
|
+
10,
|
|
94
|
+
13,
|
|
95
|
+
10,
|
|
96
|
+
42,
|
|
97
|
+
150,
|
|
98
|
+
31,
|
|
99
|
+
12,
|
|
100
|
+
8,
|
|
101
|
+
66,
|
|
102
|
+
52,
|
|
103
|
+
5,
|
|
104
|
+
48,
|
|
105
|
+
12,
|
|
106
|
+
14,
|
|
107
|
+
3,
|
|
108
|
+
9,
|
|
109
|
+
1,
|
|
110
|
+
4,
|
|
111
|
+
7,
|
|
112
|
+
3,
|
|
113
|
+
3,
|
|
114
|
+
3,
|
|
115
|
+
2,
|
|
116
|
+
14,
|
|
117
|
+
4,
|
|
118
|
+
28,
|
|
119
|
+
16,
|
|
120
|
+
24,
|
|
121
|
+
21,
|
|
122
|
+
28,
|
|
123
|
+
16,
|
|
124
|
+
16,
|
|
125
|
+
13,
|
|
126
|
+
6,
|
|
127
|
+
6,
|
|
128
|
+
4,
|
|
129
|
+
4,
|
|
130
|
+
5,
|
|
131
|
+
3,
|
|
132
|
+
6,
|
|
133
|
+
4,
|
|
134
|
+
3,
|
|
135
|
+
1,
|
|
136
|
+
13,
|
|
137
|
+
5,
|
|
138
|
+
5,
|
|
139
|
+
3,
|
|
140
|
+
5,
|
|
141
|
+
1,
|
|
142
|
+
1,
|
|
143
|
+
1,
|
|
144
|
+
22
|
|
145
|
+
)
|
|
146
|
+
|
|
78
147
|
@Serializable
|
|
79
148
|
@Parcelize
|
|
80
149
|
data class Verse(
|
|
@@ -97,75 +166,4 @@ data class Verse(
|
|
|
97
166
|
</speak>
|
|
98
167
|
""".trimIndent()
|
|
99
168
|
}
|
|
100
|
-
|
|
101
|
-
companion object {
|
|
102
|
-
val chapterSizes = listOf(
|
|
103
|
-
50,
|
|
104
|
-
40,
|
|
105
|
-
27,
|
|
106
|
-
36,
|
|
107
|
-
34,
|
|
108
|
-
24,
|
|
109
|
-
21,
|
|
110
|
-
4,
|
|
111
|
-
31,
|
|
112
|
-
24,
|
|
113
|
-
22,
|
|
114
|
-
25,
|
|
115
|
-
29,
|
|
116
|
-
36,
|
|
117
|
-
10,
|
|
118
|
-
13,
|
|
119
|
-
10,
|
|
120
|
-
42,
|
|
121
|
-
150,
|
|
122
|
-
31,
|
|
123
|
-
12,
|
|
124
|
-
8,
|
|
125
|
-
66,
|
|
126
|
-
52,
|
|
127
|
-
5,
|
|
128
|
-
48,
|
|
129
|
-
12,
|
|
130
|
-
14,
|
|
131
|
-
3,
|
|
132
|
-
9,
|
|
133
|
-
1,
|
|
134
|
-
4,
|
|
135
|
-
7,
|
|
136
|
-
3,
|
|
137
|
-
3,
|
|
138
|
-
3,
|
|
139
|
-
2,
|
|
140
|
-
14,
|
|
141
|
-
4,
|
|
142
|
-
28,
|
|
143
|
-
16,
|
|
144
|
-
24,
|
|
145
|
-
21,
|
|
146
|
-
28,
|
|
147
|
-
16,
|
|
148
|
-
16,
|
|
149
|
-
13,
|
|
150
|
-
6,
|
|
151
|
-
6,
|
|
152
|
-
4,
|
|
153
|
-
4,
|
|
154
|
-
5,
|
|
155
|
-
3,
|
|
156
|
-
6,
|
|
157
|
-
4,
|
|
158
|
-
3,
|
|
159
|
-
1,
|
|
160
|
-
13,
|
|
161
|
-
5,
|
|
162
|
-
5,
|
|
163
|
-
3,
|
|
164
|
-
5,
|
|
165
|
-
1,
|
|
166
|
-
1,
|
|
167
|
-
1,
|
|
168
|
-
22
|
|
169
|
-
)
|
|
170
|
-
}
|
|
171
169
|
}
|
fastlane/metadata/android/en-GB/changelogs/3.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Initial release
|
fastlane/metadata/android/en-GB/images/featureGraphic.png
ADDED
|
Binary file
|
fastlane/metadata/android/en-GB/images/icon.png
ADDED
|
Binary file
|
fastlane/metadata/android/en-GB/images/phoneScreenshots/1_en-GB.jpeg
ADDED
|
Binary file
|
fastlane/metadata/android/en-GB/images/phoneScreenshots/2_en-GB.jpeg
ADDED
|
Binary file
|
fastlane/metadata/android/en-GB/images/phoneScreenshots/3_en-GB.jpeg
ADDED
|
Binary file
|
fastlane/metadata/android/en-GB/images/phoneScreenshots/4_en-GB.jpeg
ADDED
|
Binary file
|
fastlane/metadata/android/en-GB/images/phoneScreenshots/5_en-GB.jpeg
ADDED
|
Binary file
|
fastlane/metadata/android/en-GB/images/phoneScreenshots/6_en-GB.jpeg
ADDED
|
Binary file
|
fastlane/metadata/android/en-GB/images/phoneScreenshots/7_en-GB.jpeg
ADDED
|
Binary file
|
fastlane/metadata/android/en-GB/images/phoneScreenshots/8_en-GB.jpeg
ADDED
|
Binary file
|