Skip to content

Commit

Permalink
Use same debug signing certificate for all builds (#4423)
Browse files Browse the repository at this point in the history
Task/Issue URL:
https://app.asana.com/0/488551667048375/1206850007250848/f

### Description
Adds a keystore to the repo and configures the gradle to use it to sign
`debug` builds. The reason for this is so that we always use the same
certificate for all debug builds, and therefore the SHA of the signing
cert can be added to the allow list for `CredentialManager`.

### Steps to test this PR
- [x] Make a debug build (e.g., `./gradlew assembleID`)
- [x] Run `apksigner verify --print-certs PATH_TO.APK`
    - [x] Verify `CN` is `Debug Builds`
- [x] Verify SHA-256 hash is
`17d41f7a9725a87572d86a427fa13b4ad411eaa4c8a78ee31d64eff62609323f`
  • Loading branch information
CDRussell authored Apr 12, 2024
1 parent 8aad2b5 commit 60b092c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,15 @@ android {
ksp {
arg("room.generateKotlin", "true")
}

signingConfigs {
release
debug {
keyAlias 'android'
keyPassword 'pwpwpw'
storeFile file('debug-dummy.keystore')
storePassword 'pwpwpw'
}
}
buildTypes {
debug {
Expand Down
Binary file added app/debug-dummy.keystore
Binary file not shown.

0 comments on commit 60b092c

Please sign in to comment.