Since Bitmovin's native SDKs are distributed through custom [CocoaPods](🔗) and [Maven](🔗) repositories, the installation cannot be managed by Flutters auto-link feature and requires some extra steps. Please refer to the installation instructions for each platform below. For more information on integrating the native SDKs, you can refer to the [Getting Started guides](🔗).
## Adding the pub.dev package dependency
The `bitmovin_player
` library is published on [pub.dev](🔗). To add it to your Flutter app, use `flutter pub add bitmovin_player
` or add it manually to your `pubspec.yaml
`:
Do not forget to run `flutter pub get
` afterwards.
## Setting up iOS dependencies
Add Bitmovin's CocoaPods repo as a source on top of `ios/Podfile
`:
If you see any errors during `pod install
` after adding the source from above, try deleting `Podfile.lock
` and do a fresh `pod install
`. At this point, `pod install
` might fail due to the incorrect minimum deployment target being set for the `Runner
` project. Set the deployment target and minimum deployment version to at least iOS 14 in the `Runner
` project to fix this.
## Setting up Android dependencies
Add Bitmovin's Maven repository to `
android/build.gradle
`:Enable Multidex support if needed. Follow this guide to enable it: <https://developer.android.com/build/multidex>
If you are using `
android:label
`, `android:allowBackup
` or `android:supportsRtl
` in your application's `AndroidManifest.xml
` please enable field replacement, otherwise the build will fail with a manifest merger error. The need for this workaround will be removed with a future release.For example: