Skip to content

libill/kmm-flutter-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Oct 28, 2021
5000746 · Oct 28, 2021

History

1 Commit
Oct 28, 2021
Oct 28, 2021
Oct 28, 2021
Oct 28, 2021
Oct 28, 2021
Oct 28, 2021
Oct 28, 2021
Oct 28, 2021
Oct 28, 2021
Oct 28, 2021
Oct 28, 2021
Oct 28, 2021
Oct 28, 2021
Oct 28, 2021

Repository files navigation

use KMM to write a flutter plugin

The reference plugin_codelab example plugin that accompanies the How to write a Flutter plugin codelab.

I changed plugin_codelab to a flutter plugin that write with kmm.

How to run:

Android: run shared/plugin_codelab/example/android

iOS:

1、build shared.framework

use ./gradlew releaseIOSFramework
or use new version Android Studio sync

2、run shared/plugin_codelab/example/ios

Tips: before run,shared/build/cocoapods/framework/shared.framework should be generated. The shared.h header file shared/build/cocoapods/framework/shared.framework/Headers/shared.h is generated.

了解更多请查看博文Kotlin/Native 用KMM写Flutter插件