Skip to content

Commit

Permalink
Reactivate signing config, for github ci builds
Browse files Browse the repository at this point in the history
  • Loading branch information
nain-F49FF806 committed Oct 3, 2024
1 parent de996eb commit fe5a7ef
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
# if: ${{ github.event_name == 'push' }}
# run: |
# echo 'androidStorePassword=${{ secrets.KEY_STORE_PASSWORD }}' >> local.properties
# echo 'androidKeyAlias=${{ secrets.ALIAS }}' >> local.properties
# echo 'androidKeyAlias=${{ secrets.KEY_ALIAS }}' >> local.properties
# echo 'androidKeyPassword=${{ secrets.KEY_PASSWORD }}' >> local.properties
# echo 'androidStoreFile=sign_key.jks' >> local.properties
# echo '${{ secrets.KEY_STORE }}' | base64 --decode > sign_key.jks
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,13 @@ jobs:
gradle-builds
- name: Signing key
run: |
echo 'androidStorePassword=${{ secrets.KEY_STORE_PASSWORD }}' >> local.properties
echo 'androidKeyAlias=${{ secrets.ALIAS }}' >> local.properties
echo 'androidKeyPassword=${{ secrets.KEY_PASSWORD }}' >> local.properties
echo 'androidStoreFile=sign_key.jks' >> local.properties
echo '${{ secrets.KEY_STORE }}' | base64 --decode > sign_key.jks
echo "androidStorePassword=${{ secrets.KEY_STORE_PASSWORD }}" >> local.properties
echo "androidKeyAlias=${{ secrets.KEY_ALIAS }}" >> local.properties
echo "androidKeyPassword=${{ secrets.KEY_PASSWORD }}" >> local.properties
echo "androidStoreFile=aer_sign_keystore.jks" >> local.properties
if [ ! -z "${{ secrets.KEY_STORE }}" ]; then
echo '${{ secrets.KEY_STORE }}' | base64 --decode > aer_sign_keystore.jks
fi
- name: Build
id: build
run: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ local.properties

# Sign key
*.jks
*.jks.base64

# VSCode
*/.classpath
Expand Down
14 changes: 6 additions & 8 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ android {
defaultConfig {
minSdk = rootProject.extra["minSdkVersion"] as Int
targetSdk = rootProject.extra["targetSdkVersion"] as Int
versionCode = 1727869000
versionName = "2024.10.02"
versionCode = 1727979000
versionName = "2024.10.03"
applicationId = "alt.nainapps.aer"
vectorDrawables {
useSupportLibrary = true
Expand Down Expand Up @@ -48,24 +48,22 @@ android {
}

buildTypes {
// Disable this for now. We focus on F-droid builds
// which have their own signing system.
// val useAnemoConfig = rootProject.ext.get("keyStoreFile") != null && (rootProject.ext.get("keyStoreFile") as File).exists()
val useAnemoConfig = false
val useAerSignConfig = rootProject.ext.get("keyStoreFile") != null && (rootProject.ext.get("keyStoreFile") as File).exists()

getByName("release") {
isMinifyEnabled = true
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
signingConfig = signingConfigs.getByName("debug")

if (useAnemoConfig) {
if (useAerSignConfig) {
signingConfig = signingConfigs.getByName("aer")
}
}
getByName("debug") {
applicationIdSuffix = ".debug"
signingConfig = signingConfigs.getByName("debug")
if (useAnemoConfig) {

if (useAerSignConfig) {
signingConfig = signingConfigs.getByName("aer")
}
}
Expand Down

0 comments on commit fe5a7ef

Please sign in to comment.