| 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, ).