Skip to content

Commit

Permalink
add ios auto version changing
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiebe committed Feb 10, 2024
1 parent ccb2311 commit 1b2e77e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion iosApp/ci_scripts/ci_post_clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk install java 19.0.1-tem

# cd into iosapp root
cd ../

VERSION=$(cat ../libs.versions.toml| awk '/^app-version-string = "[0-9]+/{print $3; exit}' | cut -d '"' -f 2)
agvtool new-version -all "$VERSION"
agvtool new-marketing-version "$VERSION"

# cd into actual project root
cd ../../
cd ../


./gradlew shared:podinstall
4 changes: 2 additions & 2 deletions iosApp/iosApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 5;
CURRENT_PROJECT_VERSION = 4.1.1;
DEVELOPMENT_ASSET_PATHS = "\"iosApp/Preview Content\"";
DEVELOPMENT_TEAM = KQ89L64KUK;
ENABLE_PREVIEWS = YES;
Expand Down Expand Up @@ -378,7 +378,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 5;
CURRENT_PROJECT_VERSION = 4.1.1;
DEVELOPMENT_ASSET_PATHS = "\"iosApp/Preview Content\"";
DEVELOPMENT_TEAM = KQ89L64KUK;
ENABLE_PREVIEWS = YES;
Expand Down

0 comments on commit 1b2e77e

Please sign in to comment.