update change log

This commit is contained in:
Matthew Smith 2018-01-19 04:12:34 -08:00
parent 3056ac5c24
commit ca9c812e33
2 changed files with 6 additions and 26 deletions

View File

@ -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

View File

@ -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()
}
}
}