gradle: Sign debug builds with AOSP test keys

debug keys differs as per platforms requiring a re-install whenever
development environment is switched. This should fix that issue.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2024-03-29 10:12:22 +05:30
parent 8abade8881
commit 0525fe41dc
2 changed files with 9 additions and 0 deletions

View File

@@ -64,6 +64,14 @@ android {
storePassword = properties["KEY_PASSWORD"] as String storePassword = properties["KEY_PASSWORD"] as String
} }
} }
create("aosp") {
// Generated from the AOSP test key:
// https://android.googlesource.com/platform/build/+/refs/tags/android-11.0.0_r29/target/product/security/testkey.pk8
keyAlias = "testkey"
keyPassword = "testkey"
storeFile = file("testkey.jks")
storePassword = "testkey"
}
} }
buildTypes { buildTypes {
@@ -86,6 +94,7 @@ android {
debug { debug {
applicationIdSuffix = ".debug" applicationIdSuffix = ".debug"
signingConfig = signingConfigs.getByName("aosp")
} }
} }

BIN
app/testkey.jks Normal file

Binary file not shown.