Skip to content

Commit

Permalink
Bump to version 1.10 (#49)
Browse files Browse the repository at this point in the history
* Bump the version to 1.10.0

* Add a config to automatically sign releases

* Set up a temporary keystore for signing in the CI builds

* Add keyalg argument to fix CI

* Create missing directory
  • Loading branch information
CNugteren authored Feb 29, 2024
1 parent 6c49961 commit 31974f5
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 17
- name: Set-up a temporary keystore for signing
run: |
echo y | keytool -genkeypair -dname "cn=GitHub CI, ou=JavaSoft, o=Sun, c=US" -alias alias -keypass android -keystore ci.keystore -storepass android -keyalg RSA -keysize 2048 -validity 2
mkdir -p ~/.gradle
echo RELEASE_STORE_FILE=`pwd`/ci.keystore > ~/.gradle/gradle.properties
echo RELEASE_STORE_PASSWORD=android >> ~/.gradle/gradle.properties
echo RELEASE_KEY_ALIAS=alias >> ~/.gradle/gradle.properties
echo RELEASE_KEY_PASSWORD=android >> ~/.gradle/gradle.properties
- name: Build with Gradle
run: ./gradlew build

23 changes: 21 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "foss.cnugteren.nlweer"
minSdkVersion 21
targetSdkVersion 34
versionCode 11
versionName "1.9.0"
versionCode 12
versionName "1.10.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand All @@ -30,6 +30,25 @@ android {
jvmTarget = '17'
}

// From https://stackoverflow.com/a/21020469
signingConfigs {
release {
storeFile file(RELEASE_STORE_FILE)
storePassword RELEASE_STORE_PASSWORD
keyAlias RELEASE_KEY_ALIAS
keyPassword RELEASE_KEY_PASSWORD

// Optional, specify signing versions used
v1SigningEnabled true
v2SigningEnabled true
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}

namespace 'foss.cnugteren.nlweer'
}

Expand Down

0 comments on commit 31974f5

Please sign in to comment.