From c53a0dd33041f1a21896e47b0a6fa49032f05600 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Mon, 1 Apr 2024 14:58:20 +0100 Subject: fix(mobile): Allow android/ios connections over http. #6 --- apps/mobile/app.json | 14 ++++++++++++++ apps/mobile/package.json | 1 + 2 files changed, 15 insertions(+) (limited to 'apps/mobile') diff --git a/apps/mobile/app.json b/apps/mobile/app.json index fec59de5..7c0f354e 100644 --- a/apps/mobile/app.json +++ b/apps/mobile/app.json @@ -18,6 +18,12 @@ "bundleIdentifier": "app.hoarder.hoardermobile", "config": { "usesNonExemptEncryption": false + }, + "infoPlist": { + "NSAppTransportSecurity": { + "NSAllowsArbitraryLoads": true, + "NSAllowsLocalNetworking": true + } } }, "android": { @@ -48,6 +54,14 @@ { "photosPermission": "The app access your photo gallary on your request to hoard them." } + ], + [ + "expo-build-properties", + { + "android": { + "usesCleartextTraffic": true + } + } ] ], "extra": { diff --git a/apps/mobile/package.json b/apps/mobile/package.json index 04fd8821..6ccd5622 100644 --- a/apps/mobile/package.json +++ b/apps/mobile/package.json @@ -19,6 +19,7 @@ "class-variance-authority": "^0.7.0", "clsx": "^2.1.0", "expo": "~50.0.11", + "expo-build-properties": "^0.11.1", "expo-config-plugin-ios-share-extension": "^0.0.4", "expo-constants": "~15.4.5", "expo-dev-client": "^3.3.9", -- cgit v1.2.3-70-g09d2