diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ca0d9b..75fdd07 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 1.0.2 +* Fix NPE when platform plugin delegate is null + # 1.0.1 * migrate to flutter 3.16.9 diff --git a/android/src/main/kotlin/com/yuxiaor/flutter/g_faraday/FaradayActivity.kt b/android/src/main/kotlin/com/yuxiaor/flutter/g_faraday/FaradayActivity.kt index 8ac7f6d..18a7d36 100644 --- a/android/src/main/kotlin/com/yuxiaor/flutter/g_faraday/FaradayActivity.kt +++ b/android/src/main/kotlin/com/yuxiaor/flutter/g_faraday/FaradayActivity.kt @@ -231,7 +231,7 @@ open class FaradayActivity : FlutterActivity(), ResultProvider, ExclusiveAppComp // 0x02 if (platformPlugin == null) { - platformPlugin = PlatformPlugin(activity, flutterEngine!!.platformChannel) + platformPlugin = PlatformPlugin(activity, flutterEngine!!.platformChannel, this) } // 0x03 diff --git a/android/src/main/kotlin/com/yuxiaor/flutter/g_faraday/FaradayFragment.kt b/android/src/main/kotlin/com/yuxiaor/flutter/g_faraday/FaradayFragment.kt index b656d98..986ecb1 100644 --- a/android/src/main/kotlin/com/yuxiaor/flutter/g_faraday/FaradayFragment.kt +++ b/android/src/main/kotlin/com/yuxiaor/flutter/g_faraday/FaradayFragment.kt @@ -201,7 +201,7 @@ class FaradayFragment : FlutterFragment(), ResultProvider, FaradayContainer, Exc // 0x02 if (platformPlugin == null) { - platformPlugin = PlatformPlugin(requireActivity(), flutterEngine!!.platformChannel) + platformPlugin = PlatformPlugin(requireActivity(), flutterEngine!!.platformChannel, this) } // 0x03 diff --git a/pubspec.yaml b/pubspec.yaml index 20b1699..d25a5d6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: g_faraday description: A very simple plugin for building hybrid stack apps with flutter -version: 1.0.1 +version: 1.0.2 homepage: https://github.com/gfaraday/g_faraday environment: