fix #2 #3 and optimizationflutter-beta
| @@ -2,14 +2,14 @@ group 'net.touchcapture.qr.flutterqr' | |||||
| version '1.0-SNAPSHOT' | version '1.0-SNAPSHOT' | ||||
| buildscript { | buildscript { | ||||
| ext.kotlin_version = '1.2.71' | |||||
| ext.kotlin_version = '1.3.21' | |||||
| repositories { | repositories { | ||||
| google() | google() | ||||
| jcenter() | jcenter() | ||||
| } | } | ||||
| dependencies { | dependencies { | ||||
| classpath 'com.android.tools.build:gradle:3.2.1' | |||||
| classpath 'com.android.tools.build:gradle:3.3.2' | |||||
| classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | ||||
| } | } | ||||
| } | } | ||||
| @@ -88,6 +88,7 @@ class QRView(context: Context, private val registrar: PluginRegistry.Registrar, | |||||
| } | } | ||||
| override fun dispose() { | override fun dispose() { | ||||
| barcodeView.pause() | |||||
| } | } | ||||
| private inner class CameraRequestPermissionsListener : PluginRegistry.RequestPermissionsResultListener { | private inner class CameraRequestPermissionsListener : PluginRegistry.RequestPermissionsResultListener { | ||||
| @@ -143,4 +144,4 @@ class QRView(context: Context, private val registrar: PluginRegistry.Registrar, | |||||
| } | } | ||||
| } | } | ||||
| } | |||||
| } | |||||
| @@ -1,5 +1,5 @@ | |||||
| #import "FlutterQrPlugin.h" | #import "FlutterQrPlugin.h" | ||||
| #import "qr_code_scanner-Swift.h" | |||||
| #import "qr_code_scanner/qr_code_scanner-Swift.h" | |||||
| @implementation FlutterQrPlugin | @implementation FlutterQrPlugin | ||||
| + (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar { | + (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar { | ||||
| [SwiftFlutterQrPlugin registerWithRegistrar:registrar]; | [SwiftFlutterQrPlugin registerWithRegistrar:registrar]; | ||||