|
@@ -3,6 +3,7 @@ import path from 'path';
|
|
|
import dotenv from 'dotenv';
|
|
|
|
|
|
import type { ConfigContext, ExpoConfig } from 'expo/config';
|
|
|
+import { Platform } from 'react-native';
|
|
|
|
|
|
const env = process.env;
|
|
|
|
|
@@ -48,9 +49,16 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
|
|
|
resizeMode: 'cover',
|
|
|
backgroundColor: '#ffffff'
|
|
|
},
|
|
|
- notification: {
|
|
|
- icon: './assets/notification-icon.png'
|
|
|
- },
|
|
|
+ notification: Platform.select({
|
|
|
+ ios: {
|
|
|
+ icon: './assets/notification-icon.png',
|
|
|
+ color: '#FFFFFF'
|
|
|
+ },
|
|
|
+ android: {
|
|
|
+ icon: './assets/notification-android-icon.png',
|
|
|
+ color: '#FFFFFF'
|
|
|
+ }
|
|
|
+ }),
|
|
|
updates: {
|
|
|
url: 'https://u.expo.dev/c31c6828-3c32-4c7a-aabc-f9b8336b3b66'
|
|
|
},
|
|
@@ -72,9 +80,6 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
|
|
|
'Enable NomadMania.com to access your photo library to upload your profile picture. Any violence, excess of nudity, stolen picture, or scam is forbidden',
|
|
|
NSPushNotificationsDescription:
|
|
|
'This will allow NomadMania.com to send you notifications. Also you can disable it in app settings',
|
|
|
-
|
|
|
- NSMicrophoneUsageDescription:
|
|
|
- 'Nomadmania app needs access to the microphone to record audio.',
|
|
|
NSDocumentsFolderUsageDescription:
|
|
|
'Nomadmania app needs access to the documents folder to select files.',
|
|
|
NSCameraUsageDescription: 'Nomadmania app needs access to the camera to record video.',
|
|
@@ -108,7 +113,6 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
|
|
|
'USER_FACING_NOTIFICATIONS',
|
|
|
'INTERNET',
|
|
|
'CAMERA',
|
|
|
- 'RECORD_AUDIO',
|
|
|
'MODIFY_AUDIO_SETTINGS'
|
|
|
],
|
|
|
versionCode: 74 // next version submitted to Google Play needs to be higher than that 2.0.21
|
|
@@ -156,6 +160,5 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
|
|
|
microphonePermission: 'Allow Nomadmania to access your microphone.'
|
|
|
}
|
|
|
],
|
|
|
- ['@react-native-firebase/messaging']
|
|
|
]
|
|
|
});
|