From c4c8fcf91d1d69eec92ba98cc0c12d64a5523cc8 Mon Sep 17 00:00:00 2001 From: mudabbir-ahmad Date: Tue, 7 Apr 2026 15:56:20 +0100 Subject: [PATCH] Update API base URL for external access; enable cleartext traffic in app configuration and add eas.json for build settings --- app.json | 10 +++++++--- eas.json | 21 +++++++++++++++++++++ src/components/API/API.js | 4 ++-- 3 files changed, 30 insertions(+), 5 deletions(-) create mode 100644 eas.json diff --git a/app.json b/app.json index fa76814..4f79077 100644 --- a/app.json +++ b/app.json @@ -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" + } } } } diff --git a/eas.json b/eas.json new file mode 100644 index 0000000..7754482 --- /dev/null +++ b/eas.json @@ -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": {} + } +} diff --git a/src/components/API/API.js b/src/components/API/API.js index fa6cf6e..7b10cc3 100644 --- a/src/components/API/API.js +++ b/src/components/API/API.js @@ -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');