expo-ble模块测试demo
This commit is contained in:
33
app.json
33
app.json
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"expo": {
|
||||
"name": "expo-ble-app",
|
||||
"owner": "bowong",
|
||||
"slug": "expo-ble-app",
|
||||
"version": "1.0.0",
|
||||
"orientation": "portrait",
|
||||
@@ -19,7 +20,14 @@
|
||||
"monochromeImage": "./assets/images/android-icon-monochrome.png"
|
||||
},
|
||||
"edgeToEdgeEnabled": true,
|
||||
"predictiveBackGestureEnabled": false
|
||||
"predictiveBackGestureEnabled": false,
|
||||
"permissions": [
|
||||
"android.permission.BLUETOOTH",
|
||||
"android.permission.BLUETOOTH_ADMIN",
|
||||
"android.permission.BLUETOOTH_CONNECT",
|
||||
"android.permission.RECORD_AUDIO"
|
||||
],
|
||||
"package": "com.shuohigh.expobleapp"
|
||||
},
|
||||
"web": {
|
||||
"output": "static",
|
||||
@@ -38,11 +46,34 @@
|
||||
"backgroundColor": "#000000"
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
"react-native-ble-plx",
|
||||
{
|
||||
"isBackgroundEnabled": true,
|
||||
"modes": [
|
||||
"peripheral",
|
||||
"central"
|
||||
],
|
||||
"bluetoothAlwaysPermission": "Allow $(PRODUCT_NAME) to connect to bluetooth devices"
|
||||
}
|
||||
],
|
||||
[
|
||||
"expo-image-picker",
|
||||
{
|
||||
"photosPermission": "The app accesses your photos to let you share them with your friends."
|
||||
}
|
||||
]
|
||||
],
|
||||
"experiments": {
|
||||
"typedRoutes": true,
|
||||
"reactCompiler": true
|
||||
},
|
||||
"extra": {
|
||||
"router": {},
|
||||
"eas": {
|
||||
"projectId": "9adec1c5-cf51-4d78-8d4c-ca38a80334e1"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user