Setup
Use AATKit with Flutter app
Usage of Flutter Binding in your project
Basing on this project, you can integrate AATKit within your Flutter app. To achieve it, please follow the instructions below.
Dart integration
All needed dart files are included to the flutter-binding/lib/aatkit
directory. Copy and paste this folder to the lib
directory in your project.
Android integration
Find
flutter-binding/android/app/src/main/kotlin/com/addapttr/flutter_binding
directory.There are Kotlin files required by the native Android project to let AATKit works correctly. Copy the files from the list:
Paste copied files to the
flutter-binding/android/app/src/main/kotlin/your/package/name
directory in your project.Edit
configureFlutterEngine
method in your Android project'sMainActivity
class, like:
iOS integration
Find
flutter-binding/ios/Runner
directory.There are Swift files required by the native iOS project to let AATKit works correctly. Copy the files from the list:
Paste copied files to the
flutter-binding/ios/Runner
directory in your project.Edit application
didFinishLaunchingWithOptions
method in your iOS project'sAppDelegate
class, like:
Last updated