implement staging workflow
This commit is contained in:
@@ -28,6 +28,8 @@ const LOCALES: Record<string, LocaleMessages> = {
|
||||
|
||||
const SUPPORTED_LOCALES = ['zh', 'en'] as const;
|
||||
const PRIMARY_LOCALE = process.env.EXPO_PUBLIC_PRIMARY_LOCALE ?? 'zh';
|
||||
const API_BASE_URL = process.env.EXPO_PUBLIC_API_URL ?? '';
|
||||
const ALLOW_ANDROID_CLEARTEXT_TRAFFIC = API_BASE_URL.startsWith('http://');
|
||||
|
||||
const PERMISSION_FALLBACKS: Record<PermissionKey, string> = {
|
||||
microphone: 'Allow $(PRODUCT_NAME) to access your microphone.',
|
||||
@@ -149,6 +151,10 @@ export default ({ config }: ConfigContext): ExpoConfig => {
|
||||
plugins: [
|
||||
// CI/local release: android/app/keystore.properties + store file → release signing; -PversionName/-PversionCode
|
||||
'./plugins/withAndroidReleaseSigning',
|
||||
[
|
||||
'./plugins/withAndroidCleartextTraffic',
|
||||
{ enabled: ALLOW_ANDROID_CLEARTEXT_TRAFFIC },
|
||||
],
|
||||
'expo-router',
|
||||
[
|
||||
'expo-splash-screen',
|
||||
|
||||
Reference in New Issue
Block a user