mirror of
https://github.com/mudabbir-ahmad/MAD-Treasure-Hunt.git
synced 2026-10-07 19:00:20 +00:00
Update API base URL for external access; enable cleartext traffic in app configuration and add eas.json for build settings
This commit is contained in:
1 parent
d34bb650f4
commit
c4c8fcf91d
3 files changed
+30
-5
No files matched your search
@@ -18,7 +18,8 @@
|
||||
"NSLocationWhenInUseUsageDescription": "This app needs your location for the treasure hunt."
|
||||
}
|
||||
},
|
||||
"android": {
|
||||
"android": {
|
||||
"usesCleartextTraffic": true,
|
||||
"adaptiveIcon": {
|
||||
"foregroundImage": "./assets/images/android-icon-monochrome.png",
|
||||
"backgroundColor": "#ffffff"
|
||||
@@ -29,8 +30,6 @@
|
||||
}
|
||||
},
|
||||
"permissions": [
|
||||
"ACCESS_FINE_LOCATION",
|
||||
"ACCESS_COARSE_LOCATION",
|
||||
"ACCESS_FINE_LOCATION",
|
||||
"ACCESS_COARSE_LOCATION"
|
||||
],
|
||||
@@ -38,6 +37,11 @@
|
||||
},
|
||||
"web": {
|
||||
"favicon": "./assets/favicon.png"
|
||||
},
|
||||
"extra": {
|
||||
"eas": {
|
||||
"projectId": "c65a2849-f05d-48ef-9e36-950caa214a7d"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"cli": {
|
||||
"version": ">= 18.0.5",
|
||||
"appVersionSource": "remote"
|
||||
},
|
||||
"build": {
|
||||
"development": {
|
||||
"developmentClient": true,
|
||||
"distribution": "internal"
|
||||
},
|
||||
"preview": {
|
||||
"distribution": "internal"
|
||||
},
|
||||
"production": {
|
||||
"autoIncrement": true
|
||||
}
|
||||
},
|
||||
"submit": {
|
||||
"production": {}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
//export const API_BASE_URL = 'http://api.bobby.ip-ddns.com'; //For outside Home network
|
||||
export const API_BASE_URL = 'http://192.168.8.100:3000'; //For when im home (API Endpoint is on my home server...)
|
||||
export const API_BASE_URL = 'http://api.bobby.ip-ddns.com'; //For outside Home network
|
||||
//export const API_BASE_URL = 'http://192.168.8.100:3000'; //For when im home (API Endpoint is on my home server...)
|
||||
const API = {};
|
||||
|
||||
API.get = (endpoint) => callFetch(endpoint, 'GET');
|
||||
|
||||
Reference in new issue
Block a user