-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinjectable.tsx
24 lines (20 loc) · 1.15 KB
/
injectable.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import {
BACKEND_ACCOUNT_API_URL,
BACKEND_QUESTION_API_URL,
BACKEND_GAME_API_URL,
HTTP_BACKEND_ACCOUNT_API_URL,
HTTP_BACKEND_GAME_API_URL,
HTTP_BACKEND_QUESTION_API_URL,
EXPO_GO_ANDROID_GOOGLE_CLIENT_URL_ENV,
NATIVE_ANDROID_GOOGLE_CLIENT_URL_ENV
} from '@env'
import { Platform } from 'react-native'
// Reason for this file is because babel caches react-native-dotenv environmental variables
// Just add some lines here to trigger update on variable until solution is fixed
// LAN HTTPS with self-signed certificates is hard to test with mobile, disable for development
var b = 23
export const EXPO_GO_ANDROID_GOOGLE_CLIENT_URL = EXPO_GO_ANDROID_GOOGLE_CLIENT_URL_ENV
export const NATIVE_ANDROID_GOOGLE_CLIENT_URL = NATIVE_ANDROID_GOOGLE_CLIENT_URL_ENV
export const ACCOUNT_SERVICE_API_URL = __DEV__ && Platform.OS != "web" ? HTTP_BACKEND_ACCOUNT_API_URL : BACKEND_ACCOUNT_API_URL
export const QUESTION_SERVICE_API_URL = __DEV__ && Platform.OS != "web" ? HTTP_BACKEND_QUESTION_API_URL : BACKEND_QUESTION_API_URL
export const GAME_SERVICE_API_URL = __DEV__ && Platform.OS != "web" ? HTTP_BACKEND_GAME_API_URL : BACKEND_GAME_API_URL