diff --git a/.packages b/.packages index 726dd07..c9e0bc2 100644 --- a/.packages +++ b/.packages @@ -1,8 +1,8 @@ -# Generated by pub on 2019-06-17 18:43:06.495486. -collection:file:///Users/juliuscanute/Library/CrossPlatform/flutter/.pub-cache/hosted/pub.dartlang.org/collection-1.14.11/lib/ +# Generated by pub on 2019-06-18 09:09:30.310062. +collection:file:///Users/juliuscanute/.pub-cache/hosted/pub.dartlang.org/collection-1.14.11/lib/ flutter:file:///Users/juliuscanute/Library/CrossPlatform/flutter/packages/flutter/lib/ -meta:file:///Users/juliuscanute/Library/CrossPlatform/flutter/.pub-cache/hosted/pub.dartlang.org/meta-1.1.6/lib/ +meta:file:///Users/juliuscanute/.pub-cache/hosted/pub.dartlang.org/meta-1.1.6/lib/ sky_engine:file:///Users/juliuscanute/Library/CrossPlatform/flutter/bin/cache/pkg/sky_engine/lib/ -typed_data:file:///Users/juliuscanute/Library/CrossPlatform/flutter/.pub-cache/hosted/pub.dartlang.org/typed_data-1.1.6/lib/ -vector_math:file:///Users/juliuscanute/Library/CrossPlatform/flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.0.8/lib/ +typed_data:file:///Users/juliuscanute/.pub-cache/hosted/pub.dartlang.org/typed_data-1.1.6/lib/ +vector_math:file:///Users/juliuscanute/.pub-cache/hosted/pub.dartlang.org/vector_math-2.0.8/lib/ qr_code_scanner:lib/ diff --git a/CHANGELOG.md b/CHANGELOG.md index 9df0f11..c1a00a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.0.8 + +* migrated Android project to androidx (by Felipe César) +* migrated iOS to Swift 5 (by Felipe César) + ## 0.0.7 * flash light support added diff --git a/README.md b/README.md index 6fa20e0..3b4c8ac 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ # qr_code_scanner This package wires the PlatformView corresponding to iOS and Android inside flutter. -#Credits +# Credits * Android: https://github.com/zxing/zxing * iOS: https://github.com/mikebuss/MTBBarcodeScanner * Special Thanks To: LeonDevLifeLog for his contributions towards improving this package. -#TODO'S: +# TODO'S: * iOS Native embedding is written to match what is supported in the framework as of the date of publication of this package. It needs to be improved as the framework support improves. * Finally, I welcome PR's to make it better :), thanks \ No newline at end of file diff --git a/android/src/main/kotlin/net/touchcapture/qr/flutterqr/QRView.kt b/android/src/main/kotlin/net/touchcapture/qr/flutterqr/QRView.kt index d6f39de..64caaa1 100644 --- a/android/src/main/kotlin/net/touchcapture/qr/flutterqr/QRView.kt +++ b/android/src/main/kotlin/net/touchcapture/qr/flutterqr/QRView.kt @@ -19,7 +19,7 @@ import io.flutter.plugin.common.MethodChannel import io.flutter.plugin.common.PluginRegistry import io.flutter.plugin.platform.PlatformView -class QRView(context: Context, private val registrar: PluginRegistry.Registrar, id: Int) : +class QRView(private val registrar: PluginRegistry.Registrar, id: Int) : PlatformView,MethodChannel.MethodCallHandler { companion object { diff --git a/android/src/main/kotlin/net/touchcapture/qr/flutterqr/QRViewFactory.kt b/android/src/main/kotlin/net/touchcapture/qr/flutterqr/QRViewFactory.kt index eb90219..f9be661 100644 --- a/android/src/main/kotlin/net/touchcapture/qr/flutterqr/QRViewFactory.kt +++ b/android/src/main/kotlin/net/touchcapture/qr/flutterqr/QRViewFactory.kt @@ -11,7 +11,7 @@ class QRViewFactory(private val registrar: PluginRegistry.Registrar) : PlatformViewFactory(StandardMessageCodec.INSTANCE) { override fun create(context: Context, id: Int, obj: Any?): PlatformView { - return QRView(context, registrar,id) + return QRView(registrar,id) } } \ No newline at end of file diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 84479b8..9625d92 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -39,7 +39,7 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "net.touchcapture.qr.flutterqrexample" - minSdkVersion 16 + minSdkVersion 21 targetSdkVersion 27 versionCode flutterVersionCode.toInteger() versionName flutterVersionName diff --git a/pubspec.yaml b/pubspec.yaml index f72b1d8..67c0bf7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,8 +1,9 @@ name: qr_code_scanner description: QR code scanner that can be embedded inside flutter. It uses zxing in Android and MTBBarcode scanner in iOS. -version: 0.0.7 -author: Julius Canute -homepage: https://github.com/juliuscanute/qr_code_scanner +version: 0.0.8 +author: Julius Canute +homepage: https://juliuscanute.com +repository: https://github.com/juliuscanute/qr_code_scanner environment: sdk: ">=2.0.0-dev.68.0 <3.0.0"