mirror of
https://github.com/simplezhli/flutter_barcode_reader.git
synced 2024-11-23 09:19:21 +08:00
update change log
This commit is contained in:
parent
3056ac5c24
commit
ca9c812e33
@ -6,3 +6,8 @@
|
|||||||
## [0.0.2] - 11/7/17
|
## [0.0.2] - 11/7/17
|
||||||
|
|
||||||
* Rewrite iOS scanner in Objective-C to avoid Swift use_frameworks! conflicts with other plugins (see https://github.com/flutter/flutter/issues/10968)
|
* Rewrite iOS scanner in Objective-C to avoid Swift use_frameworks! conflicts with other plugins (see https://github.com/flutter/flutter/issues/10968)
|
||||||
|
|
||||||
|
## [0.0.3] - 1/19/17
|
||||||
|
|
||||||
|
* Improved permission handling (thanks to [BenSower](https://github.com/BenSower))
|
||||||
|
* Added MIT license
|
@ -1,25 +0,0 @@
|
|||||||
package com.yourcompany.barcodescan
|
|
||||||
|
|
||||||
import io.flutter.plugin.common.MethodChannel
|
|
||||||
import io.flutter.plugin.common.MethodChannel.MethodCallHandler
|
|
||||||
import io.flutter.plugin.common.MethodChannel.Result
|
|
||||||
import io.flutter.plugin.common.MethodCall
|
|
||||||
import io.flutter.plugin.common.PluginRegistry.Registrar
|
|
||||||
|
|
||||||
class BarcodeScanPlugin(): MethodCallHandler {
|
|
||||||
companion object {
|
|
||||||
@JvmStatic
|
|
||||||
fun registerWith(registrar: Registrar): Unit {
|
|
||||||
val channel = MethodChannel(registrar.messenger(), "barcode_scan")
|
|
||||||
channel.setMethodCallHandler(BarcodeScanPlugin())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun onMethodCall(call: MethodCall, result: Result): Unit {
|
|
||||||
if (call.method.equals("getPlatformVersion")) {
|
|
||||||
result.success("Android ${android.os.Build.VERSION.RELEASE}")
|
|
||||||
} else {
|
|
||||||
result.notImplemented()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user