|
| 1 | +import "dotenv/config"; |
| 2 | + |
| 3 | +const ENV = process.env.APP_ENV ?? "development"; |
| 4 | + |
| 5 | +const envFiles = { |
| 6 | + development: ".env.development", |
| 7 | + preview: ".env.preview", |
| 8 | + production: ".env.production", |
| 9 | +}; |
| 10 | + |
| 11 | +require("dotenv").config({ path: envFiles[ENV] }); |
| 12 | + |
| 13 | +const appName = |
| 14 | + ENV === "production" ? "CrimelinkAnalyzer" : `CrimelinkAnalyzer (${ENV})`; |
| 15 | + |
| 16 | +export default { |
| 17 | + expo: { |
| 18 | + name: appName, |
| 19 | + slug: "CrimelinkAnalyzer_app", |
| 20 | + version: "1.0.0", |
| 21 | + orientation: "portrait", |
| 22 | + icon: "./assets/images/logo.png", |
| 23 | + scheme: "crimelinkanalyzerapp", |
| 24 | + userInterfaceStyle: "automatic", |
| 25 | + newArchEnabled: true, |
| 26 | + |
| 27 | + ios: { |
| 28 | + supportsTablet: true, |
| 29 | + infoPlist: { |
| 30 | + NSLocationWhenInUseUsageDescription: |
| 31 | + "This app uses your location to show nearby places and reports.", |
| 32 | + NSFaceIDUsageDescription: |
| 33 | + "Allow Crime Link Analyzer to use Face ID to authenticate you.", |
| 34 | + }, |
| 35 | + }, |
| 36 | + |
| 37 | + android: { |
| 38 | + adaptiveIcon: { |
| 39 | + backgroundColor: "#E6F4FE", |
| 40 | + foregroundImage: "./assets/images/logo.png", |
| 41 | + backgroundImage: "./assets/images/logo.png", |
| 42 | + monochromeImage: "./assets/images/logo.png", |
| 43 | + }, |
| 44 | + edgeToEdgeEnabled: true, |
| 45 | + predictiveBackGestureEnabled: false, |
| 46 | + permissions: ["ACCESS_FINE_LOCATION"], |
| 47 | + package: "com.anonymous.CrimelinkAnalyzer_app", |
| 48 | + jsEngine: "jsc", |
| 49 | + }, |
| 50 | + |
| 51 | + web: { |
| 52 | + output: "static", |
| 53 | + favicon: "./assets/images/logo.png", |
| 54 | + }, |
| 55 | + |
| 56 | + plugins: [ |
| 57 | + "expo-router", |
| 58 | + [ |
| 59 | + "expo-splash-screen", |
| 60 | + { |
| 61 | + image: "./assets/images/logo.png", |
| 62 | + imageWidth: 200, |
| 63 | + resizeMode: "contain", |
| 64 | + backgroundColor: "#ffffff", |
| 65 | + dark: { |
| 66 | + backgroundColor: "#000000", |
| 67 | + }, |
| 68 | + }, |
| 69 | + ], |
| 70 | + "expo-secure-store", |
| 71 | + "expo-sqlite", |
| 72 | + ], |
| 73 | + |
| 74 | + experiments: { |
| 75 | + typedRoutes: true, |
| 76 | + reactCompiler: true, |
| 77 | + }, |
| 78 | + |
| 79 | + extra: { |
| 80 | + router: {}, |
| 81 | + eas: { |
| 82 | + projectId: "ab5e7b7b-eb2e-49f5-9a61-01529d4cae27", |
| 83 | + }, |
| 84 | + appEnv: ENV, |
| 85 | + apiUrl: process.env.API_URL, |
| 86 | + googleMapsApiKey: process.env.GOOGLE_MAPS_API_KEY, |
| 87 | + firebaseApiKey: process.env.FIREBASE_API_KEY, |
| 88 | + firebaseAuthDomain: process.env.FIREBASE_AUTH_DOMAIN, |
| 89 | + firebaseProjectId: process.env.FIREBASE_PROJECT_ID, |
| 90 | + firebaseStorageBucket: process.env.FIREBASE_STORAGE_BUCKET, |
| 91 | + firebaseMessagingSenderId: process.env.FIREBASE_MESSAGING_SENDER_ID, |
| 92 | + firebaseAppId: process.env.FIREBASE_APP_ID, |
| 93 | + }, |
| 94 | + }, |
| 95 | +}; |
0 commit comments