From 3fea1638411c85a0e022123a34c55ae5fe334cbd Mon Sep 17 00:00:00 2001 From: Peter Klingelhofer Date: Mon, 26 Sep 2022 16:11:50 -0500 Subject: [PATCH] fix: android purchases in browser --- app.json | 6 +++--- client/services/originAllowList.ts | 22 +++++++++++++++------- package.json | 2 +- 3 files changed, 19 insertions(+), 11 deletions(-) diff --git a/app.json b/app.json index c0cf312..cc0c4b9 100644 --- a/app.json +++ b/app.json @@ -3,7 +3,7 @@ "name": "Resonate", "slug": "stream-app", "privacy": "unlisted", - "version": "1.2.2", + "version": "1.2.3", "orientation": "portrait", "icon": "./assets/icon.png", "userInterfaceStyle": "automatic", @@ -21,7 +21,7 @@ "ios": { "supportsTablet": true, "bundleIdentifier": "com.resonate.stream-app", - "buildNumber": "1.2.2", + "buildNumber": "1.2.3", "infoPlist": { "UIBackgroundModes": [ "audio", @@ -35,7 +35,7 @@ "backgroundColor": "#FFFFFF" }, "package": "com.resonate.streamapp", - "versionCode": 122 + "versionCode": 123 }, "web": { "favicon": "./assets/favicon.png" diff --git a/client/services/originAllowList.ts b/client/services/originAllowList.ts index 33f12b3..b620368 100644 --- a/client/services/originAllowList.ts +++ b/client/services/originAllowList.ts @@ -1,18 +1,26 @@ import { Platform } from "react-native"; -export const originAllowList: string[] = [ +const allDevicesAllowList: string[] = [ "http://localhost:8080", "https://community.resonate.coop", "https://community.resonate.is", "https://id.resonate.coop", - "https://js.stripe.com", - "https://m.stripe.network", "https://offen.resonate.is", "https://offen.stream.resonate.coop", "https://stream.resonate.coop", "https://stream.resonate.ninja", - "https://stripe.com", - ...Platform.OS === "android" - ? [] - : [ "https://resonate.coop" ], + "https://js.stripe.com", + "https://m.stripe.network", +]; + +const iOSAllowList: string[] = Platform.OS === "android" + ? [] + : [ + "https://resonate.coop", + "https://stripe.com", + ]; + +export const originAllowList: string[] = [ + ...allDevicesAllowList, + ...iOSAllowList, ]; diff --git a/package.json b/package.json index bb169dc..0e27806 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stream-app", - "version": "1.2.2", + "version": "1.2.3", "main": "node_modules/expo/AppEntry.js", "scripts": { "start": "expo start",