CampgroundTickets/ci/signing.gradle
Hank 994aaa88d1 Move APK runner to a separate host; openssl-based keystore
- gen-keystore.sh now builds a PKCS12 keystore with openssl (no JDK/keytool),
  and signing.gradle declares storeType PKCS12.
- Runner is meant to run on a roomy server (the app host lacks disk for the
  Android SDK); added runner/README.md with deployment steps. Removed the
  runner that was registered on the app host.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-08 04:16:37 +00:00

31 lines
1.3 KiB
Groovy

// Injected at build time with `--init-script` so it survives `expo prebuild`
// regenerating android/. Overrides the release signing config to use the
// keystore + credentials supplied via environment variables in CI.
gradle.projectsLoaded {
rootProject.subprojects { sub ->
sub.afterEvaluate {
if (sub.plugins.hasPlugin('com.android.application')) {
def storeFilePath = System.getenv('CAMPSCAN_STORE_FILE')
if (storeFilePath == null || storeFilePath.isEmpty()) {
return
}
sub.android {
signingConfigs {
campscanRelease {
storeFile file(storeFilePath)
storeType 'PKCS12'
storePassword System.getenv('CAMPSCAN_STORE_PASSWORD')
keyAlias System.getenv('CAMPSCAN_KEY_ALIAS')
keyPassword System.getenv('CAMPSCAN_KEY_PASSWORD')
}
}
buildTypes {
release {
signingConfig signingConfigs.campscanRelease
}
}
}
}
}
}
}