diff --git a/manifest.json b/manifest.json index 986492e..068310b 100644 --- a/manifest.json +++ b/manifest.json @@ -20,6 +20,7 @@ "modules" : { "Barcode" : {}, "Bluetooth" : {}, + "Camera" : {}, "SQLite" : {} }, /* 应用发布信息 */ @@ -41,14 +42,15 @@ "", "", "", - "" + "", + "", + "" ], - "minSdkVersion" : 22 + "minSdkVersion" : 27 }, /* ios打包配置 */ "ios" : { - "dSYMs" : false, - "idfa" : false + "dSYMs" : false }, /* SDK配置 */ "sdkConfigs" : {}, @@ -83,6 +85,14 @@ "spotlight@3x" : "unpackage/res/icons/120x120.png" } } + }, + "splashscreen" : { + "androidStyle" : "common", + "android" : { + "hdpi" : "static/splash/480.png", + "xhdpi" : "static/splash/720.png", + "xxhdpi" : "static/splash/1080.png" + } } }, "nativePlugins" : { diff --git a/pages/index/index.vue b/pages/index/index.vue index f7fc95d..6f0e72a 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -206,6 +206,8 @@ }, (e) => { console.error('prmission grant error: ' + e); }); + plus.android.requestPermissions(["android.permission.BLUETOOTH_CONNECT"]); + plus.android.requestPermissions(["android.permission.BLUETOOTH_SCAN"]); // initBL(); }, onUnload() {