Prerequisites
- Flutter SDK and Dart toolchain on your PATH
- OnePub access (credentials provided by Moca)
- Android:
compileSdk 34+, minSdk 26+ (see Android setup)
- iOS: platform 14.0+ in
Podfile (see iOS setup)
OnePub CLI
dart pub global activate onepub
onepub login
If onepub is not found, add Pub’s global bin directory to your PATH, for example: export PATH=$PATH:$HOME/.pub-cache/bin
Add the dependency
Option A — pubspec.yaml
dependencies:
airkit:
hosted: https://onepub.dev/api/sxhddavuhn/
version: ^1.6.0-beta.1
Use the version your team recommends; check Release notes for current Flutter SDK versions.
Option B — CLI
Then run:
Import
import 'package:airkit/airkit.dart';
Next steps
- Android setup — asset statements, manifest, network security
- iOS setup — associated domains,
Podfile
- Initialization —
AirService and navigatorKey
- Google Sign-In if you use Google login