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