diff --git a/README.md b/README.md index 1812dae7..bfdd5809 100644 --- a/README.md +++ b/README.md @@ -23,17 +23,18 @@ cp config.template.ios.json config.json You can edit the config file as suited: -| Parameter | Description | -| -------------- | ---------------------------------| -| `baseUrl` | Ylitse API base URL | -| `loginUrl` | Ylitse service login URL | -| `feedBackUrl` | Feedback form URL | -| `termsUrl` | Terms and conditions URL | -| `userGuideUrl` | User's manual URL | -| `apuuUrl` | Apuu-chat URL | -| `sekasinUrl` | Sekasin-chat URL | -| `saferSpaceUrl` | Principals of a safer space URL | -| `messageFetchDelay`| Delay between polling | +| Parameter | Description | +| ----------------- | ---------------------------------------| +| `baseUrl` | Ylitse API base URL | +| `loginUrl` | Ylitse service login URL | +| `feedBackUrl` | Feedback form URL | +| `termsUrl` | Terms and conditions URL | +| `userGuideUrl` | User's manual URL | +| `apuuUrl` | Apuu-chat URL | +| `sekasinUrl` | Sekasin-chat URL | +| `saferSpaceUrl` | Principals of a safer space URL | +| `storeUrl` | App marketplace URL (build specific) | +| `messageFetchDelay`| Delay between polling | ### Running on iOS diff --git a/appcenter-pre-build.sh b/appcenter-pre-build.sh index 76d8e472..8bf5ee48 100644 --- a/appcenter-pre-build.sh +++ b/appcenter-pre-build.sh @@ -12,6 +12,7 @@ tee config.json > /dev/null <; const Main = ({ navigation, route }: Props) => { const dispatch = ReactRedux.useDispatch>(); const initialRouteName = route.params?.initial; + const appClient = getClient(); const isAppVersionBigEnough = ReactRedux.useSelector( - selectIsVersionBigEnough(getClient()), + selectIsVersionBigEnough(appClient), ); const handleRefetchData = () => { @@ -61,6 +65,8 @@ const Main = ({ navigation, route }: Props) => { callback: handleRefetchData, }); + const openStore = () => RN.Linking.openURL(storeUrl); + React.useEffect(() => { navigation.dispatch(state => { const routes = state.routes.filter(r => !r.name.includes('Onboarding')); @@ -77,8 +83,6 @@ const Main = ({ navigation, route }: Props) => { dispatch({ type: 'minimumVersion/get/start', payload: undefined }); }, []); - console.log('is app version is big enough:', isAppVersionBigEnough); - return ( <> { onAnswer={handleAnswer} /> )} + {isAppVersionBigEnough && ( + + )} ); }; diff --git a/src/Screens/components/Modal/index.tsx b/src/Screens/components/Modal/index.tsx index 39a8e4d2..fd0bba4b 100644 --- a/src/Screens/components/Modal/index.tsx +++ b/src/Screens/components/Modal/index.tsx @@ -36,49 +36,44 @@ const Modal: React.FC = props => { } as const; return ( - - - - - - - - + + + + + + + - - - + + + - - {props.onSecondaryPress && ( -