Skip to main content

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
onepub pub add airkit
Then run:
flutter pub get

Import

import 'package:airkit/airkit.dart';

Next steps

  1. Android setup — asset statements, manifest, network security
  2. iOS setup — associated domains, Podfile
  3. InitializationAirService and navigatorKey
  4. Google Sign-In if you use Google login