Skip to content

Commit ca579c5

Browse files
committed
Build: signing config
1 parent 2c7324a commit ca579c5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

app/build.gradle.kts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ android {
1919
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
2020
}
2121

22+
signingConfigs {
23+
create("release") {
24+
storeFile = file(System.getenv("RELEASE_STORE_FILE") ?: project.findProperty("RELEASE_STORE_FILE") as String)
25+
storePassword = System.getenv("RELEASE_STORE_PASSWORD") ?: project.findProperty("RELEASE_STORE_PASSWORD") as String
26+
keyAlias = System.getenv("RELEASE_KEY_ALIAS") ?: project.findProperty("RELEASE_KEY_ALIAS") as String
27+
keyPassword = System.getenv("RELEASE_KEY_PASSWORD") ?: project.findProperty("RELEASE_KEY_PASSWORD") as String
28+
}
29+
}
30+
2231
buildTypes {
2332
release {
2433
ndk {
@@ -30,6 +39,7 @@ android {
3039
getDefaultProguardFile("proguard-android-optimize.txt"),
3140
"proguard-rules.pro"
3241
)
42+
signingConfig = signingConfigs.getByName("release")
3343
}
3444
}
3545
compileOptions {

0 commit comments

Comments
 (0)