From ec1b8d808e640c6822998b062e5acdd57677eab7 Mon Sep 17 00:00:00 2001 From: Vailence Date: Wed, 9 Sep 2026 14:01:12 +0500 Subject: [PATCH] MOBILE-0000: Bump mindbox-common together with mobile-sdk on release prep MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The wrapper takes mindbox-common compileOnly because mobile-sdk keeps it an implementation dependency, so the release tooling has to move both lines at once — otherwise the compile classpath keeps the old common while the runtime one comes transitively from the new mobile-sdk. --- .github/workflows/manual-prepare_release_branch.yml | 3 +++ git-release-branch.sh | 1 + 2 files changed, 4 insertions(+) diff --git a/.github/workflows/manual-prepare_release_branch.yml b/.github/workflows/manual-prepare_release_branch.yml index ee69f99..02d79e0 100644 --- a/.github/workflows/manual-prepare_release_branch.yml +++ b/.github/workflows/manual-prepare_release_branch.yml @@ -131,9 +131,12 @@ jobs: ############################################################################## # 2) Android build.gradle: bump cloud.mindbox:mobile-sdk: + # mindbox-common goes with it: it is an implementation dependency of mobile-sdk, so the + # wrapper takes it compileOnly and both must stay on the same version. ############################################################################## echo "→ Bumping Android SDK in android/build.gradle" sed -i "s|\(api 'cloud.mindbox:mobile-sdk:\).*|\1$AND_VER'|" android/build.gradle + sed -i "s|\(compileOnly 'cloud.mindbox:mindbox-common:\).*|\1$AND_VER'|" android/build.gradle git add android/build.gradle ############################################################################## diff --git a/git-release-branch.sh b/git-release-branch.sh index a97b347..f1fc43d 100755 --- a/git-release-branch.sh +++ b/git-release-branch.sh @@ -44,6 +44,7 @@ if ! [[ $android_sdk_version =~ ^[0-9]+\.[0-9]+\.[0-9]+(-rc)?$ ]]; then fi sed -i '' "s/ api 'cloud.mindbox:mobile-sdk:.*/ api 'cloud.mindbox:mobile-sdk:${android_sdk_version}'/" "$android_gradle" +sed -i '' "s/ compileOnly 'cloud.mindbox:mindbox-common:.*/ compileOnly 'cloud.mindbox:mindbox-common:${android_sdk_version}'/" "$android_gradle" echo "Bump $android_gradle to $android_sdk_version" read -r -p "iOS SDK version: " ios_sdk_version