Installation
Installation
Before you can install the AirKit Flutter package, you need to install the OnePub CLI in order to access our private package repository. We will provide you with the login credentials for OnePub.
Open your terminal and use following commands:
In case the onepub
command is not recognized, adding following to your PATH should help:
export PATH=$PATH:$HOME/.pub-cache/bin
To install the AirKit Flutter package, you have two options. You can either manually add the package in the pubspec.yaml
file, or you can use the onepub pub add
command.
Add airkit
as a dependency to your pubspec.yaml
.
Add airkit
using onepub pub add
command.
Android Configuration
Update compileSdkVersion
For Android build compileSdkVersion
needs to be at least 34
and minSdk
needs to be at least 26
. Check your app module gradle file in your project to change it.
Update Permissions
Open your app's AndroidManifest.xml
file and add the following permission. Please make sure the <uses-permission>
element should be a direct child of the <manifest>
root element.
Configure Redirection and Deep Linking
Open your app's AndroidManifest.xml
file and add the following deep link intent filter to your Main activity based on {scheme}://{your_app_package}/auth
.
We need to know the final deep link in order to whitelist on our end.
iOS Configuration
Update global iOS platform
For iOS build global platform needs to be 14.0. Check Podfile
in your project to change the global platform.
Configure Redirection and Deep Linking
For iOS we need to know your final bundleId
in order to whitelist on our end. The final URI will look like following: {bundleId}://auth
.