Skip to content

Commit 18d88cd

Browse files
MalargNenoStefanov
authored andcommitted
fix: Prevent fatal not initialized lateinit variable exception
1 parent 98a7024 commit 18d88cd

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,7 @@ This release prepares the API for a future stable version by simplifying and cle
7777
## 0.7.0
7878

7979
* Remove QuickCode limiting functionality.
80+
81+
## 0.7.1
82+
83+
* Prevent fatal not initialized lateinit variable exeption

android/src/main/kotlin/com/miracl/trust/flutter_miracl_sdk/FlutterMiraclSdkPlugin.kt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ import kotlin.coroutines.suspendCoroutine
1818

1919
/** FlutterMiraclSdkPlugin */
2020
class FlutterMiraclSdkPlugin : FlutterPlugin, MiraclSdk {
21-
/// The MethodChannel that will the communication between Flutter and native Android
22-
///
23-
/// This local reference serves to register the plugin with the Flutter Engine and unregister it
24-
/// when the Flutter Engine is detached from the Activity
25-
private lateinit var channel: MethodChannel
2621
private lateinit var context: Context
2722
private var sdkHandler = SdkHandler();
2823
private lateinit var mLogger: MLogger
@@ -34,7 +29,7 @@ class FlutterMiraclSdkPlugin : FlutterPlugin, MiraclSdk {
3429
}
3530

3631
override fun onDetachedFromEngine(@NonNull binding: FlutterPlugin.FlutterPluginBinding) {
37-
channel.setMethodCallHandler(null)
32+
3833
}
3934

4035
override fun initSdk(

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_miracl_sdk
22
description: MIRACL Trust Flutter Plugin
3-
version: 0.7.0
3+
version: 0.7.1
44
homepage: https://github.com/miracl/trust-sdk-flutter-wrapper
55

66
environment:

0 commit comments

Comments
 (0)