From f29687c15fcb972686e529aeda0f484cecf9fd23 Mon Sep 17 00:00:00 2001 From: G Date: Fri, 6 Sep 2024 12:37:54 +0000 Subject: [PATCH] expo build properties to allow clear text traffic since we do not yet support https --- app.json | 8 ++++++++ package.json | 1 + yarn.lock | 23 +++++++++++++++++++++++ 3 files changed, 32 insertions(+) diff --git a/app.json b/app.json index cd1a9b9..8fbd0c1 100644 --- a/app.json +++ b/app.json @@ -42,6 +42,14 @@ { "launchMode": "most-recent" } + ], + [ + "expo-build-properties", + { + "android": { + "usesCleartextTraffic": true + } + } ] ], "extra": { diff --git a/package.json b/package.json index cf82c8a..d84a69a 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "@tanstack/react-query": "^5.35.1", "axios": "^1.6.8", "expo": "~51.0.31", + "expo-build-properties": "~0.12.5", "expo-dev-client": "~4.0.25", "expo-local-authentication": "~14.0.1", "expo-status-bar": "~1.12.1", diff --git a/yarn.lock b/yarn.lock index 4cd1e37..14cdbeb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2399,6 +2399,16 @@ ajv@8.11.0: require-from-string "^2.0.2" uri-js "^4.2.2" +ajv@^8.11.0: + version "8.17.1" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.17.1.tgz#37d9a5c776af6bc92d7f4f9510eba4c0a60d11a6" + integrity sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g== + dependencies: + fast-deep-equal "^3.1.3" + fast-uri "^3.0.1" + json-schema-traverse "^1.0.0" + require-from-string "^2.0.2" + anser@^1.4.9: version "1.4.10" resolved "https://registry.npmjs.org/anser/-/anser-1.4.10.tgz" @@ -3712,6 +3722,14 @@ expo-asset@~10.0.10: invariant "^2.2.4" md5-file "^3.2.3" +expo-build-properties@~0.12.5: + version "0.12.5" + resolved "https://registry.yarnpkg.com/expo-build-properties/-/expo-build-properties-0.12.5.tgz#4d6232389f00c846ba37ca5df2c0b5527c2d94ca" + integrity sha512-donC1le0PYfLKCPKRMGQoixuWuwDWCngzXSoQXUPsgHTDHQUKr8aw+lcWkTwZcItgNovcnk784I0dyfYDcxybA== + dependencies: + ajv "^8.11.0" + semver "^7.6.0" + expo-constants@~16.0.0: version "16.0.1" resolved "https://registry.npmjs.org/expo-constants/-/expo-constants-16.0.1.tgz" @@ -3863,6 +3881,11 @@ fast-glob@^3.2.5, fast-glob@^3.2.9, fast-glob@^3.3.2: merge2 "^1.3.0" micromatch "^4.0.4" +fast-uri@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/fast-uri/-/fast-uri-3.0.1.tgz#cddd2eecfc83a71c1be2cc2ef2061331be8a7134" + integrity sha512-MWipKbbYiYI0UC7cl8m/i/IWTqfC8YXsqjzybjddLsFjStroQzsHXkc73JutMvBiXmOvapk+axIl79ig5t55Bw== + fast-xml-parser@^4.0.12, fast-xml-parser@^4.2.4: version "4.3.6" resolved "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.3.6.tgz" -- libgit2 0.27.1