원클릭으로
upgrade-native-sdk
// Use when upgrading native iOS or Android SDK dependency versions in AdaptySDK-Capacitor. Triggered by requests like "bump ios sdk", "upgrade android native", "update native dependency version".
// Use when upgrading native iOS or Android SDK dependency versions in AdaptySDK-Capacitor. Triggered by requests like "bump ios sdk", "upgrade android native", "update native dependency version".
| name | upgrade-native-sdk |
| description | Use when upgrading native iOS or Android SDK dependency versions in AdaptySDK-Capacitor. Triggered by requests like "bump ios sdk", "upgrade android native", "update native dependency version". |
Bumps Adapty native SDK version for iOS or Android platform.
Ask the user for:
ios or android3.15.3)For android, also ask:
3. crossplatform version — io.adapty.internal:crossplatform version (may differ from bom version)
Edit these files, replacing the OLD version with the NEW version:
AdaptyCapacitor.podspecUpdate all three pod dependencies:
s.dependency 'Adapty', '<NEW_VERSION>'
s.dependency 'AdaptyUI', '<NEW_VERSION>'
s.dependency 'AdaptyPlugin', '<NEW_VERSION>'
Package.swiftUpdate SPM exact version:
.package(url: "https://github.com/adaptyteam/AdaptySDK-iOS.git", exact: "<NEW_VERSION>")
The lockfile will be regenerated during the verification step.
android/build.gradleUpdate BOM version:
implementation platform('io.adapty:adapty-bom:<NEW_VERSION>')
Update crossplatform version (ask user for the exact version — it may differ):
implementation 'io.adapty.internal:crossplatform:<CROSSPLATFORM_VERSION>'
Do NOT run yarn dev-example-full directly — it triggers interactive credentials prompt via postinstall.
Instead, run these steps manually from project root:
# 1. Build the plugin
yarn build
# 2. Install devtools deps without postinstall (avoids interactive credentials prompt)
cd examples/adapty-devtools && yarn install --ignore-scripts
# 3. Run credentials non-interactively
# Read values from examples/adapty-devtools/.adapty-credentials.json and pass them as CLI args:
# token → --token, ios_bundle → --ios-bundle, android_application_id → --android-id,
# placement_id → --placement-id, onboarding_placement_id → --onboarding-placement-id
node ../../scripts/credentials.mjs \
--token=<token> \
--ios-bundle=<ios_bundle> \
--android-id=<android_application_id> \
--placement-id=<placement_id> \
--onboarding-placement-id=<onboarding_placement_id>
# 4. Build devtools
yarn build
# 5. Update native modules (runs pod update + cap copy + cap sync)
# IMPORTANT: run this BEFORE bare `cap sync` — cap sync uses pod install which
# fails when pod versions changed. update-native-modules does pod update first.
yarn update-native-modules
Wait for all commands to succeed before considering the task done.
Format: chore: upgrade <platform> SDK to <version>
Examples:
chore: upgrade ios SDK to 3.15.3chore: upgrade android SDK to bom 3.15.2, crossplatform 3.15.6After all changes are verified, remind the user:
Don't forget to update
cross_platform.yamlif the cross-platform protocol version changed. Don't forget to bump the version inpackage.json.