Skip to content

Commit 935dd1e

Browse files
authored
build: version codes as int
1 parent 9a6092b commit 935dd1e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/nightly.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Build & notify
4848
if: env.TELEGRAM_CHAT_ID && env.SCHEDULED_BUILD_VARIANT && env.TELEGRAM_TOKEN
4949
run: |
50-
./gradlew $SCHEDULED_BUILD_VARIANT
50+
./gradlew ${SCHEDULED_BUILD_VARIANT} -v
5151
env:
5252
ALPHA_KS_ALIAS: ${{ vars.ALPHA_KS_ALIAS }}
5353
ALPHA_KS_FILE: ${{ vars.ALPHA_KS_FILE }}

app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ android {
123123
dimension "releaseType"
124124
// getPackageInfo().versionCode not returning the correct value (in prod builds) when
125125
// value is set in AndroidManifest.xml so setting it here
126-
versionCode = System.getenv("VERSION_CODE")
126+
versionCode = Integer.parseInt(System.getenv("VERSION_CODE"))
127127
versionName = gitVersion
128128
vectorDrawables.useSupportLibrary = true
129129
}

0 commit comments

Comments
 (0)