Flutter Package Upgrade Guide¶
Please change the pubspec.yaml to refer to the latest Flutter package.
dependencies:
flutter:
sdk: flutter
...
repro_flutter: ^3.21.0
Run the following command.
$ flutter pub get
or
$ flutter pub upgrade
You will also need to update the Android SDK and iOS SDK as follows.
Android¶
Please change the app/build.gradle as follows
dependencies {
...
implementation 'io.repro:repro-android-sdk:5.24.0'
...
}
iOS¶
Warning
Due to CocoaPods entering maintenance mode, Repro iOS SDK versions released after December 2026 will no longer be distributed to CocoaPods. As a result, you will not be able to update to the latest versions if you continue to use CocoaPods. Please migrate to Swift Package Manager by referring to “Migrating from CocoaPods to Swift Package Manager” below.
Migration is possible in environments with Flutter 3.24 or later.
SDK versions released before the suspension of distribution will continue to be available for update via CocoaPods.
If you are using Swift Package Manager, there is no need to execute commands in the iOS directory (such as pod update ). The latest iOS SDK is automatically linked when you run flutter pub get .
Migrating from CocoaPods to Swift Package Manager¶
When migrating to Swift Package Manager from an existing project that has already installed the SDK using CocoaPods, no additional configuration or migration steps (such as uninstallation) are required to integrate the Repro SDK. Simply enabling Swift Package Manager in your Flutter app will automatically link the SDK.
For instructions on enabling Swift Package Manager and migrating from existing projects (such as clearing caches), please refer to the official Flutter documentation.
Update procedure using CocoaPods¶
For environments with Flutter below 3.24, or if you continue to use CocoaPods, execute the following command in the root directory of your project.
$ cd ios
$ pod update Repro