Skip to content

Commit bdadc61

Browse files
Merge pull request #40 from AnkushMalaker/fix-cleartext-issue
fix build
2 parents 585fb73 + d964a85 commit bdadc61

3 files changed

Lines changed: 80 additions & 20 deletions

File tree

app/app.json

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,7 @@
3131
"android.permission.BLUETOOTH_CONNECT",
3232
"android.permission.ACCESS_NETWORK_STATE"
3333
],
34-
"usesCleartextTraffic": true,
35-
"networkSecurityConfig": {
36-
"domainConfig": {
37-
"cleartextTrafficPermitted": true,
38-
"domain": [
39-
{
40-
"includeSubdomains": true,
41-
"name": "localhost"
42-
},
43-
{
44-
"includeSubdomains": true,
45-
"name": "192.168.0.0/16"
46-
},
47-
{
48-
"includeSubdomains": true,
49-
"name": "100.64.0.0/10"
50-
}
51-
]
52-
}
53-
}
34+
"usesCleartextTraffic": true
5435
},
5536
"newArchEnabled": true,
5637
"plugins": [
@@ -63,6 +44,14 @@
6344
],
6445
"bluetoothAlwaysPermission": "This app uses Bluetooth to connect to and interact with nearby BLE devices."
6546
}
47+
],
48+
[
49+
"expo-build-properties",
50+
{
51+
"android": {
52+
"usesCleartextTraffic": true
53+
}
54+
}
6655
]
6756
],
6857
"extra": {

app/package-lock.json

Lines changed: 70 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"@react-native-community/netinfo": "^11.4.1",
1414
"deprecated-react-native-prop-types": "^5.0.0",
1515
"expo": "~53.0.9",
16+
"expo-build-properties": "^0.14.8",
1617
"expo-status-bar": "~2.2.3",
1718
"friend-lite-react-native": "^1.0.2",
1819
"install": "^0.13.0",

0 commit comments

Comments
 (0)