| name | bump-native-sdk |
| description | Use when upgrading native iOS or Android SDK dependency versions in the AdaptySDK React Native project — bumping the Adapty iOS SPM version or Android gradle dependency versions |
Bump Native SDK Version
Upgrades native Adapty SDK dependencies for iOS (Swift Package Manager) 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 SPM products)
- Android:
bom_version (adapty-bom) and crossplatform_version (they are independent)
iOS
Since 4.0.0 the iOS native dependency is delivered via Swift Package Manager (not CocoaPods). Edit react-native-adapty-sdk.podspec — update the spm_dependency requirement version (a single version applies to all three products):
spm_dependency(s,
url: 'https://github.com/adaptyteam/AdaptySDK-iOS.git',
requirement: { kind: 'exactVersion', version: '<VERSION>' },
products: ['Adapty', 'AdaptyUI', 'AdaptyPlugin']
)
Keep kind: 'exactVersion' unless the user asks for a different resolution strategy (e.g. branch, revision, upToNextMajorVersion).
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 install --repo-update in ios/ dir (this re-runs the SPM integration and pins the new version in Pods/Pods.xcodeproj)
Run all three steps regardless of platform. update-sdk-full is platform-agnostic, update-native-modules keeps the iOS SPM integration in sync.
To confirm the iOS version was picked up, check the resolved SPM requirement in examples/AdaptyDevtools/ios/Pods/Pods.xcodeproj/project.pbxproj (the XCRemoteSwiftPackageReference "AdaptySDK-iOS" entry should show version = <VERSION>).
examples/AdaptyDevtools/ios/Podfile.lock changes are expected and must be included in the commit — they are generated by pod install.
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.