File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 - uses : actions/checkout@v5
1414
1515 - name : Set up JDK 17
16- uses : actions/setup-java@v3
16+ uses : actions/setup-java@v5
1717 with :
1818 distribution : " temurin"
1919 java-version : 17
@@ -22,10 +22,20 @@ jobs:
2222 run : chmod +x gradlew
2323
2424 - name : Setup Gradle
25- uses : gradle/actions/setup-gradle@v3
25+ uses : gradle/actions/setup-gradle@v5
26+
27+ - name : Decode release signing key
28+ run : |
29+ echo "${{ secrets.ANDROID_SIGNING_KEY }}" | base64 -d > release.keystore
30+ echo "RELEASE_KEYSTORE_PATH=$(realpath release.keystore)" >> $GITHUB_ENV
2631
2732 - name : Build with Gradle
2833 run : ./gradlew build
34+ env :
35+ SIGNING_KEY_FILE : ${{ env.RELEASE_KEYSTORE_PATH }}
36+ SIGNING_KEY_ALIAS : ${{ secrets.ANDROID_KEY_ALIAS }}
37+ SIGNING_STORE_PASSWORD : ${{ secrets.ANDROID_KEY_PASSWORD }}
38+ SIGNING_KEY_PASSWORD : ${{ secrets.ANDROID_KEY_PASSWORD }}
2939
3040 - name : Set app version env var
3141 run : |
Original file line number Diff line number Diff line change @@ -10,10 +10,11 @@ android {
1010
1111 defaultConfig {
1212 applicationId " com.leadrdrk.umapatcher"
13+ applicationIdSuffix " .edge"
1314 minSdk 24
1415 targetSdk 34
15- versionCode 8
16- versionName " 1.0.2 "
16+ versionCode 9
17+ versionName " 1.1.0 "
1718 }
1819
1920 signingConfigs {
@@ -23,14 +24,26 @@ android {
2324 keyAlias " androiddebugkey"
2425 keyPassword " android"
2526 }
27+
28+ release {
29+ storeFile file(System . getenv(" SIGNING_KEY_FILE" ))
30+ storePassword System . getenv(" SIGNING_STORE_PASSWORD" )
31+ keyAlias System . getenv(" SIGNING_KEY_ALIAS" )
32+ keyPassword System . getenv(" SIGNING_KEY_PASSWORD" )
33+ }
2634 }
2735
2836 buildTypes {
2937 release {
30- applicationIdSuffix ' .edge'
3138 shrinkResources true
3239 minifyEnabled true
3340 proguardFiles getDefaultProguardFile(" proguard-android-optimize.txt" ), ' proguard-rules.pro'
41+ signingConfig signingConfigs. release
42+ }
43+
44+ debug {
45+ shrinkResources false
46+ minifyEnabled false
3447 signingConfig signingConfigs. debug
3548 }
3649 }
@@ -92,4 +105,4 @@ dependencies {
92105
93106 debugImplementation " androidx.compose.ui:ui-tooling:$compose_version "
94107 debugImplementation " androidx.compose.ui:ui-test-manifest:$compose_version "
95- }
108+ }
You can’t perform that action at this time.
0 commit comments