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:
@@ -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
BIN
app/testkey.jks
Normal file
Binary file not shown.
Reference in New Issue
Block a user