修改mainfest解决打包报错
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
"name" : "星汉物联",
|
"name" : "星汉物联",
|
||||||
"appid" : "__UNI__A21EF43",
|
"appid" : "__UNI__A21EF43",
|
||||||
"description" : "设备管控",
|
"description" : "设备管控",
|
||||||
"versionName" : "1.0.30",
|
"versionName" : "1.0.0",
|
||||||
"versionCode" : "100",
|
"versionCode" : "100",
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
@ -18,8 +18,8 @@
|
|||||||
},
|
},
|
||||||
/* 模块配置 */
|
/* 模块配置 */
|
||||||
"modules" : {
|
"modules" : {
|
||||||
"Bluetooth" : {},
|
|
||||||
"Barcode" : {},
|
"Barcode" : {},
|
||||||
|
"Bluetooth" : {},
|
||||||
"Camera" : {},
|
"Camera" : {},
|
||||||
"Geolocation" : {},
|
"Geolocation" : {},
|
||||||
"Maps" : {}
|
"Maps" : {}
|
||||||
@ -53,20 +53,19 @@
|
|||||||
"<uses-permission android:name=\"android.permission.a\"/>",
|
"<uses-permission android:name=\"android.permission.a\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.BLUETOOTH_CONNECT\"/>"
|
"<uses-permission android:name=\"android.permission.BLUETOOTH_CONNECT\"/>"
|
||||||
],
|
],
|
||||||
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
|
"minSdkVersion" : 21,
|
||||||
"minSdkVersion" : 21
|
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ]
|
||||||
},
|
},
|
||||||
/* ios打包配置 */
|
/* ios打包配置 */
|
||||||
"ios" : {
|
"ios" : {
|
||||||
"appid" : "uni.app.UNIA21EF43",
|
"dSYMs" : false,
|
||||||
"privacyDescription" : {
|
"privacyDescription" : {
|
||||||
"NSBluetoothPeripheralUsageDescription" : "需要蓝牙访问权限,用于设备通信",
|
|
||||||
"NSBluetoothAlwaysUsageDescription" : "需要蓝牙访问权限,用于设备通信",
|
|
||||||
"NSLocationWhenInUseUsageDescription" : "App需要您的同意,才能在使用期间访问位置",
|
"NSLocationWhenInUseUsageDescription" : "App需要您的同意,才能在使用期间访问位置",
|
||||||
"NSLocationAlwaysUsageDescription" : "App需要您的同意,才能始终访问位置",
|
"NSLocationAlwaysUsageDescription" : "App需要您的同意,才能始终访问位置",
|
||||||
"NSLocationAlwaysAndWhenInUseUsageDescription" : "App需要您的同意,才能始终访问位置"
|
"NSLocationAlwaysAndWhenInUseUsageDescription" : "App需要您的同意,才能始终访问位置",
|
||||||
|
"NSBluetoothPeripheralUsageDescription" : "需要蓝牙访问权限,用于设备通信",
|
||||||
|
"NSBluetoothAlwaysUsageDescription" : "需要蓝牙访问权限,用于设备通信"
|
||||||
},
|
},
|
||||||
"dSYMs" : false,
|
|
||||||
"idfa" : false
|
"idfa" : false
|
||||||
},
|
},
|
||||||
/* SDK配置 */
|
/* SDK配置 */
|
||||||
@ -80,26 +79,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"maps" : {
|
"maps" : {
|
||||||
"customStyle" : true,
|
|
||||||
"amap" : {
|
"amap" : {
|
||||||
"name" : "amapHG8nIFW5",
|
"name" : "amapHG8nIFW5",
|
||||||
"appkey_ios" : "065c43f02c7b627a74ad7dd23b16bb4f",
|
"appkey_ios" : "065c43f02c7b627a74ad7dd23b16bb4f",
|
||||||
"appkey_android" : "d7d852dbda2b95f6f796fb9a711a9fee"
|
"appkey_android" : "d7d852dbda2b95f6f796fb9a711a9fee"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"oauth" : {},
|
|
||||||
"push" : {},
|
|
||||||
"speech" : {},
|
|
||||||
"ad" : {}
|
|
||||||
},
|
|
||||||
"splashscreen" : {
|
|
||||||
"useOriginalMsgbox" : true,
|
|
||||||
"androidStyle" : "common",
|
|
||||||
"iosStyle" : "common",
|
|
||||||
"android" : {
|
|
||||||
"hdpi" : "static/images/biao.png",
|
|
||||||
"xhdpi" : "static/images/biao.png",
|
|
||||||
"xxhdpi" : "static/images/biao.png"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"icons" : {
|
"icons" : {
|
||||||
@ -133,6 +117,9 @@
|
|||||||
"spotlight@3x" : "unpackage/res/icons/120x120.png"
|
"spotlight@3x" : "unpackage/res/icons/120x120.png"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"splashscreen" : {
|
||||||
|
"useOriginalMsgbox" : true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -162,3 +149,5 @@
|
|||||||
"locale" : "zh-Hans",
|
"locale" : "zh-Hans",
|
||||||
"fallbackLocale" : "zh-Hans"
|
"fallbackLocale" : "zh-Hans"
|
||||||
}
|
}
|
||||||
|
/* 5+App特有相关 */
|
||||||
|
|
||||||
|
|||||||
@ -983,8 +983,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
url: 'http://114.55.111.217/video/upload',
|
// url: 'http://114.55.111.217/video/upload',
|
||||||
// url: baseURL+"app/video/upload",
|
url: baseURL+"app/video/upload",
|
||||||
filePath: videoPath,
|
filePath: videoPath,
|
||||||
name: 'file',
|
name: 'file',
|
||||||
header: {
|
header: {
|
||||||
|
|||||||
@ -1847,8 +1847,8 @@
|
|||||||
}
|
}
|
||||||
console.log("baseURL=", baseURL);
|
console.log("baseURL=", baseURL);
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
url: 'http://114.55.111.217/video/upload',
|
// url: 'http://114.55.111.217/video/upload',
|
||||||
// url: baseURL + "/app/video/upload",
|
url: baseURL + "/app/video/upload",
|
||||||
filePath: videoPath,
|
filePath: videoPath,
|
||||||
name: 'file',
|
name: 'file',
|
||||||
header: {
|
header: {
|
||||||
|
|||||||
@ -111,7 +111,7 @@
|
|||||||
|
|
||||||
onUnload() {
|
onUnload() {
|
||||||
console.log("返回时断开蓝牙连接,取消订阅");
|
console.log("返回时断开蓝牙连接,取消订阅");
|
||||||
ble.disconnectDevice(these.device.deviceId);
|
|
||||||
ble.removeReceiveCallback(pagePath);
|
ble.removeReceiveCallback(pagePath);
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
@ -165,6 +165,7 @@
|
|||||||
if(!these.device.macAddress){
|
if(!these.device.macAddress){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
clearTimeout(this.Statu.timeInteval);
|
clearTimeout(this.Statu.timeInteval);
|
||||||
|
|
||||||
this.Statu.timeInteval = setTimeout(() => {
|
this.Statu.timeInteval = setTimeout(() => {
|
||||||
@ -181,7 +182,7 @@
|
|||||||
}
|
}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
|
||||||
console.log("获取设备信息", res);
|
// console.log("获取设备信息", res);
|
||||||
if (res && res.code == 200) {
|
if (res && res.code == 200) {
|
||||||
let data = res.data;
|
let data = res.data;
|
||||||
this.serverDevice=data;
|
this.serverDevice=data;
|
||||||
@ -207,15 +208,15 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log("device=", these.device);
|
// console.log("device=", these.device);
|
||||||
console.log("LinkedList=", ble.data.LinkedList);
|
// console.log("LinkedList=", ble.data.LinkedList);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}).catch((ex) => {
|
}).catch((ex) => {
|
||||||
console.log("获取设备出现异常:", ex);
|
console.error("获取设备出现异常:", ex);
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.Statu.timeInteval=null;
|
this.Statu.timeInteval=null;
|
||||||
this.Statu.isSearch=false;
|
this.Statu.isSearch=false;
|
||||||
@ -283,7 +284,8 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
ble.removeReceiveCallback(pagePath);
|
ble.removeReceiveCallback(pagePath);
|
||||||
|
clearTimeout(this.Statu.timeInteval);
|
||||||
|
this.Statu.timeInteval=null;
|
||||||
uni.$emit("refreshDeviceList");
|
uni.$emit("refreshDeviceList");
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
|
|||||||
Reference in New Issue
Block a user