Flutter
We rely on Pub.dev to distribute our Flutter SDK
Main dependency
flutter pub add purchasely_flutterDon't forget to change the minimum OS versions to match Purchasely requirements (iOS 12 / Android 23)
// Podfile
...
platform :ios, '<<sdk_ios_minimum_version>>.0'
...// Edit file android/build.gradle
buildscript {
ext {
minSdkVersion = 21 //min version must not be below 21
compileSdkVersion = 33
targetSdkVersion = 33
}
}
allprojects {
repositories {
mavenCentral()
}
}Android setup
We do include a store by default in our SDK, with Android you can choose to use Google and/or Huawei and/or Amazon.
See below to add the store you want to use
VersioningAll your dependencies must always be at the same version for example
dependencies: purchasely_flutter: ^<<current_flutter_version>> purchasely_google: ^<<current_flutter_version>> purchasely_android_player: ^<<current_flutter_version>>
Video Player
A video player is not provided by default on Android to avoid conflict with another dependency you may have
We provide one in an external dependency that is detected and handled automatically
flutter pub add purchasely_android_playerUpdated 3 days ago
What’s Next