Skip to content

Commit 18be5a3

Browse files
authored
fix nightly key
* Update build.gradle.kts * Update build.gradle.kts * publish key
1 parent c343a7e commit 18be5a3

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,6 @@ google-services.json
3131
# Android Profiling
3232
*.hprof
3333

34-
.project
34+
.project
35+
36+
!app/nightly-signing-key.jks

app/build.gradle.kts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,21 @@ android {
7272

7373
signingConfigs {
7474
create("release") {
75-
7675
// on powershell
7776
// $env:KEY_ALIAS = "var"
7877
keyAlias = System.getenv("KEY_ALIAS")
7978
keyPassword = System.getenv("KEY_PASSWORD")
8079
storeFile = file("key.jks")
8180
storePassword = System.getenv("STORE_PASSWORD")
8281
}
82+
83+
// need this because debug key is machine dependent
84+
create("nightly") {
85+
keyAlias = "key0"
86+
keyPassword = "123456"
87+
storeFile = file("nightly-signing-key.jks")
88+
storePassword = "123456"
89+
}
8390
}
8491
buildTypes {
8592
release {
@@ -96,7 +103,7 @@ android {
96103

97104
create("nightly") {
98105
initWith(getByName("release"))
99-
signingConfig = signingConfigs.getByName("debug")
106+
signingConfig = signingConfigs.getByName("nightly")
100107
applicationIdSuffix = ".nightly"
101108
}
102109

app/nightly-signing-key.jks

2.58 KB
Binary file not shown.

0 commit comments

Comments
 (0)