| name | bump-native-sdk |
| description | Use when upgrading native iOS or Android SDK dependency versions in the AdaptySDK React Native project — bumping Adapty pods version or Android gradle dependency versions |
Bump Native SDK Version
Upgrades native Adapty SDK dependencies for iOS (CocoaPods) or Android (Gradle) in the React Native wrapper project.
Arguments
Ask the user if not provided explicitly (but infer from context when obvious):
- platform:
ios or android
- iOS: single
version (applies to all three pods)
- Android:
bom_version (adapty-bom) and crossplatform_version (they are independent)
iOS
Edit react-native-adapty-sdk.podspec — update all three pod dependencies to the same version:
s.dependency "Adapty", "<VERSION>"
s.dependency "AdaptyUI", "<VERSION>"
s.dependency "AdaptyPlugin", "<VERSION>"
Android
Edit android/build.gradle — update two dependency versions:
implementation platform('io.adapty:adapty-bom:<BOM_VERSION>')
implementation 'io.adapty.internal:crossplatform:<CROSSPLATFORM_VERSION>'
bom_version and crossplatform_version are independent and typically differ.
Verification
After editing source files, build and test devtools example app. Run all commands from project root:
cd examples/AdaptyDevtools
yarn
yarn update-sdk-full
yarn update-native-modules
yarn — install dependencies
yarn update-sdk-full — rebuild and install local SDK package
yarn update-native-modules — run pod update Adapty AdaptyUI AdaptyPlugin in ios/ dir
Run all three steps regardless of platform. update-sdk-full is platform-agnostic, update-native-modules keeps iOS pods in sync.
examples/AdaptyDevtools/ios/Podfile.lock changes are expected and must be included in the commit — they are generated by pod update.
Commit
Format: chore: upgrade <platform> SDK to <version>
Examples:
chore: upgrade ios SDK to 3.15.3
chore: upgrade android SDK to bom 3.15.2, crossplatform 3.15.6
Reminder
After all changes are verified, remind the user:
Don't forget to update cross_platform.yaml if the cross-platform protocol version changed.
Don't forget to bump the version in package.json.