knotapi_flutter 1.0.4 copy "knotapi_flutter: ^1.0.4" to clipboard
knotapi_flutter: ^1.0.4 copied to clipboard

Change card on file information, retrieve transactions, and more via Knot.

Setup #

  • Requires Android Studio Koala (2024.1) or greater
  • For iOS testing you will need Xcode 16.2 or greater
  • Observe Flutter local setup instructions requirements

Plugin Development #

The Flutter plugin is developed in Dart and the source can be found in lib/ directory. Please read the Flutter Docs for detailed instructions on Flutter application development.

Android Development & Testing #

The Flutter plugin needs native integrations which can be found in android/src/main/java/com/example/knotapi_flutter. The build setup for testing can be complicated due to commingling of Android and Dart sources. The following is taken from Flutter's official documentation:

Flutter recommend you edit the Android code using Android Studio.

Before editing the Android platform code in Android Studio, first make sure that the code has been built at least once (in other words, run the example app from your IDE/editor, or in a terminal execute cd knotapi-flutter/example/android; flutter build apk --config-only).

Then use the following steps:

Launch Android Studio. Select Open an existing Android Studio Project in the Welcome to Android Studio dialog, or select File > Open from the menu, and select the knotapi-flutter/example/android/build.gradle file. In the Gradle Sync dialog, select OK. In the Android Gradle Plugin Update dialog, select Don't remind me again for this project. The Android platform code of your plugin is located in android/src/main/java/com/example/knotapi_flutter/KnotapiFlutterPlugin.java.

You can run the example app from Android Studio by pressing the run (▶) button.

iOS Development & Testing #

The Flutter plugin needs native integrations which can be found in iOS/Classes/SwiftKnotapiFlutterPlugin.swift. The following is taken from Flutter's official documentation:

We recommend you edit the iOS code using Xcode.

Before editing the iOS platform code in Xcode, first make sure that the code has been built at least once (in other words, run the example app from your IDE/editor, or in a terminal execute cd knotapi-flutter/example/ios; flutter build ios --no-codesign --config-only).

Then use the following steps:

Launch Xcode. Select File > Open, and select the knotapi-flutter/example/ios/Runner.xcworkspace file. The iOS platform code for Knot Flutter plugin is located in ".symlinks/plugins/knotapi_flutter/ios"

You can run the example app by pressing the run (▶) button.

iOS Trouble Shooting #

If you developing an update to the Knot Flutter plugin run and experience an error when running the command flutter build ios --no-codesign --config-only) you must run pod update to update the symlink depenency declarations that are set in knotapi-flutter/ios/knotapi_flutter.podspec.

0
likes
140
points
333
downloads

Publisher

unverified uploader

Weekly Downloads

Change card on file information, retrieve transactions, and more via Knot.

Homepage
Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface

More

Packages that depend on knotapi_flutter