feat: add Android release signing and user remapping
Lint / Lint (push) Successful in 1m2s
Security / Secrets (gitleaks) (push) Successful in 1m11s
Tests / Dashboard checks (push) Successful in 1m17s
Security / Dependencies (Trivy) (push) Successful in 1m20s
Security / Code (Semgrep) (push) Successful in 3m15s
Tests / Go backend (push) Successful in 3m29s
Docker / Docker Build & Push (push) Successful in 8m42s
Lint / Lint (push) Successful in 1m2s
Security / Secrets (gitleaks) (push) Successful in 1m11s
Tests / Dashboard checks (push) Successful in 1m17s
Security / Dependencies (Trivy) (push) Successful in 1m20s
Security / Code (Semgrep) (push) Successful in 3m15s
Tests / Go backend (push) Successful in 3m29s
Docker / Docker Build & Push (push) Successful in 8m42s
- Add release signing configuration and static debug-key workflow - Add a CLI to remap legacy users to AuthGuard accounts
This commit is contained in:
1 parent
817236f349
commit
7150ebd13e
8 files changed
+1553
-2
No files matched your search
@@ -16,8 +16,8 @@ android {
|
||||
applicationId = "com.collabtable.app"
|
||||
minSdk = 26
|
||||
targetSdk = 34
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
versionCode = 1
|
||||
versionName = "1.0"
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
vectorDrawables {
|
||||
@@ -25,10 +25,28 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
// Release signing: CI supplies the keystore and its passwords from repository secrets, so every
|
||||
// published APK carries the same certificate and installs can update in place. Without
|
||||
// OGS_KEYSTORE_FILE, release builds stay unsigned, which keeps local builds working.
|
||||
def releaseKeystoreFile = System.getenv('OGS_KEYSTORE_FILE')
|
||||
signingConfigs {
|
||||
release {
|
||||
if (releaseKeystoreFile != null) {
|
||||
storeFile file(releaseKeystoreFile)
|
||||
storePassword System.getenv('OGS_KEYSTORE_PASSWORD')
|
||||
keyAlias System.getenv('OGS_KEY_ALIAS')
|
||||
keyPassword System.getenv('OGS_KEY_PASSWORD')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
if (releaseKeystoreFile != null) {
|
||||
signingConfig signingConfigs.release
|
||||
}
|
||||
}
|
||||
}
|
||||
compileOptions {
|
||||
|
||||
Reference in new issue
Block a user