Skip to content

Commit 2a7896b

Browse files
committed
Removing automated versionCode and bumping build.gradle versionCode
1 parent 1bff807 commit 2a7896b

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

.github/workflows/build-android.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -75,20 +75,6 @@ jobs:
7575
# create files
7676
echo -n "$ANDROID_KEY_PROPERTIES" | base64 --decode -o $KEY_PROPERTIES_FILE
7777
echo -n "$ANDROID_UPLOAD_KEY_JKS" | base64 --decode -o $UPLOAD_KEY_JKS_FILE
78-
79-
- name: Update Version Code in Android build
80-
working-directory: ./android
81-
run: |
82-
GRADLE_FILE=./app/build.gradle
83-
84-
# Get curent version from build.gradle
85-
VERSION_CODE=$(grep versionCode $GRADLE_FILE | awk '{print $2}') || error "Failed to read Android versionCode"
86-
# Tack on the date including the hour and min
87-
DATE_CODE=$(date '+%Y%m%d%H%M')
88-
VERSION_CODE="${VERSION_CODE}.${DATE_CODE}"
89-
90-
# Update capacitor.config.json version code
91-
sed -i "" "s/versionCode .*/versionCode ${VERSION_CODE}/" $GRADLE_FILE || error "Failed to update Android versionCode"
9278
9379
- name: npm build-mobile
9480
run: npm run build-mobile

android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ android {
1313
applicationId "com.remoteit"
1414
minSdkVersion rootProject.ext.minSdkVersion
1515
targetSdkVersion rootProject.ext.targetSdkVersion
16-
versionCode 267
16+
versionCode 268
1717
versionName "3.35.4"
1818
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1919
aaptOptions {

0 commit comments

Comments
 (0)