Skip to content

Commit

Permalink
Merge pull request #74 from peterklingelhofer/android-pricing-allowlist
Browse files Browse the repository at this point in the history
fix: android purchases in browser
  • Loading branch information
peterklingelhofer authored Sep 26, 2022
2 parents 98475c4 + 3fea163 commit bcf1a1d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
6 changes: 3 additions & 3 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -21,7 +21,7 @@
"ios": {
"supportsTablet": true,
"bundleIdentifier": "com.resonate.stream-app",
"buildNumber": "1.2.2",
"buildNumber": "1.2.3",
"infoPlist": {
"UIBackgroundModes": [
"audio",
Expand All @@ -35,7 +35,7 @@
"backgroundColor": "#FFFFFF"
},
"package": "com.resonate.streamapp",
"versionCode": 122
"versionCode": 123
},
"web": {
"favicon": "./assets/favicon.png"
Expand Down
22 changes: 15 additions & 7 deletions client/services/originAllowList.ts
Original file line number Diff line number Diff line change
@@ -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,
];
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit bcf1a1d

Please sign in to comment.