~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.
2c90c08f
—
pyrossh 1 year ago
update android config
- .gitignore +1 -1
- composeApp/build.gradle.kts +28 -31
- iosApp/iosApp/Info.plist +1 -1
.gitignore
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
.externalNativeBuild
|
|
16
16
|
.cxx
|
|
17
17
|
local.properties
|
|
18
|
-
|
|
18
|
+
secrets.properties
|
|
19
19
|
upload-keystore.jks
|
|
20
20
|
svc.json
|
|
21
21
|
node_modules
|
composeApp/build.gradle.kts
CHANGED
|
@@ -5,10 +5,10 @@ import com.codingfeline.buildkonfig.gradle.BuildKonfigExtension
|
|
|
5
5
|
import org.jetbrains.kotlin.konan.properties.Properties
|
|
6
6
|
import java.io.FileInputStream
|
|
7
7
|
|
|
8
|
-
val keystorePropertiesFile = rootProject.file("keystore.properties")
|
|
9
|
-
val
|
|
8
|
+
val secretProperties = Properties().apply {
|
|
10
|
-
|
|
9
|
+
load(FileInputStream(rootProject.file("secrets.properties")))
|
|
10
|
+
}
|
|
11
|
-
val pkgName = "dev.pyrossh.only_bible_app"
|
|
11
|
+
val pkgName = "dev.pyrossh.only_bible_app"
|
|
12
12
|
|
|
13
13
|
plugins {
|
|
14
14
|
alias(libs.plugins.kotlinMultiplatform)
|
|
@@ -88,36 +88,36 @@ android {
|
|
|
88
88
|
sourceSets["main"].resources.srcDirs("src/commonMain/resources")
|
|
89
89
|
|
|
90
90
|
defaultConfig {
|
|
91
|
-
applicationId =
|
|
91
|
+
applicationId = "sh.pyros.only_bible_app"
|
|
92
|
-
minSdk =
|
|
92
|
+
minSdk = 30
|
|
93
93
|
targetSdk = 34
|
|
94
|
-
versionCode =
|
|
94
|
+
versionCode = 13
|
|
95
|
-
versionName = "
|
|
95
|
+
versionName = "2.0.0"
|
|
96
96
|
}
|
|
97
97
|
packaging {
|
|
98
98
|
resources {
|
|
99
99
|
excludes += "/META-INF/{AL2.0,LGPL2.1}"
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
|
|
102
|
+
signingConfigs {
|
|
103
|
-
|
|
103
|
+
create("release") {
|
|
104
|
-
|
|
104
|
+
keyAlias = secretProperties["KEY_ALIAS"] as String
|
|
105
|
-
|
|
105
|
+
keyPassword = secretProperties["KEY_PASSWORD"] as String
|
|
106
|
-
|
|
106
|
+
storeFile = file(secretProperties["STORE_PASSWORD"] as String)
|
|
107
|
-
|
|
107
|
+
storePassword = secretProperties["STORE_FILE"] as String
|
|
108
|
-
// }
|
|
109
|
-
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
-
|
|
110
|
+
buildTypes {
|
|
111
|
-
|
|
111
|
+
release {
|
|
112
|
-
|
|
112
|
+
signingConfig = signingConfigs.getByName("release")
|
|
113
|
-
|
|
113
|
+
isMinifyEnabled = true
|
|
114
|
-
|
|
114
|
+
isShrinkResources = true
|
|
115
|
-
|
|
115
|
+
proguardFiles(
|
|
116
|
-
|
|
116
|
+
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
117
|
-
|
|
117
|
+
"proguard-rules.pro"
|
|
118
|
-
|
|
118
|
+
)
|
|
119
|
-
// }
|
|
120
|
-
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
121
|
compileOptions {
|
|
122
122
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
123
123
|
targetCompatibility = JavaVersion.VERSION_11
|
|
@@ -139,14 +139,11 @@ compose.resources {
|
|
|
139
139
|
@Suppress("TooGenericExceptionCaught")
|
|
140
140
|
configure<BuildKonfigExtension> {
|
|
141
141
|
packageName = "${pkgName}.config"
|
|
142
|
-
val props = Properties().apply {
|
|
143
|
-
load(file("../local.properties").inputStream())
|
|
144
|
-
}
|
|
145
142
|
defaultConfigs {
|
|
146
143
|
buildConfigField(
|
|
147
144
|
Type.STRING,
|
|
148
145
|
"SUBSCRIPTION_KEY",
|
|
149
|
-
|
|
146
|
+
secretProperties["SUBSCRIPTION_KEY"]?.toString() ?: ""
|
|
150
147
|
)
|
|
151
148
|
buildConfigField(
|
|
152
149
|
Type.STRING,
|
iosApp/iosApp/Info.plist
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<key>CFBundleShortVersionString</key>
|
|
20
20
|
<string>2.0.0</string>
|
|
21
21
|
<key>CFBundleVersion</key>
|
|
22
|
-
<string>
|
|
22
|
+
<string>13</string>
|
|
23
23
|
<key>LSRequiresIPhoneOS</key>
|
|
24
24
|
<true/>
|
|
25
25
|
<key>UIApplicationSceneManifest</key>
|