feat: kotlin version
This commit is contained in:
parent
3e05196fc5
commit
f8999ef0be
@ -16,4 +16,9 @@
|
||||
<icon src="logo.png"></icon>
|
||||
</platform>
|
||||
<plugin name="phonegap-plugin-barcodescanner" />
|
||||
|
||||
<preference name="GradlePluginKotlinEnabled" value="true" />
|
||||
<preference name="GradlePluginKotlinCodeStyle" value="official" />
|
||||
<preference name="GradlePluginKotlinVersion" value="1.3.50" />
|
||||
<preference name="AndroidXEnabled" value="true" />
|
||||
</widget>
|
||||
|
@ -118,6 +118,7 @@
|
||||
scanCode() {
|
||||
cordova.plugins.barcodeScanner.scan(
|
||||
function (result) {
|
||||
console.log("扫码结果", result);
|
||||
try {
|
||||
if (result.text) {
|
||||
alert(result.text);
|
||||
|
Loading…
Reference in New Issue
Block a user