// app.config.js require("dotenv").config(); // const isDev = process.env.NODE_ENV === "development"; // const isStaging = process.env.NEXT_PUBLIC_ENV === "staging"; // const isProd = process.env.NEXT_PUBLIC_ENV === "production"; // Domain berdasarkan environment // const domain = isDev // ? "localhost:3000" // : isStaging // ? "cld-dkr-hipmi-stg.wibudev.com" // : "hipmi.muku.id"; // Production domain export default { name: "HIPMI Badung Connect", slug: "hipmi-mobile", version: "1.0.2", orientation: "portrait", icon: "./assets/images/icon.png", scheme: "hipmimobile", userInterfaceStyle: "automatic", newArchEnabled: true, ios: { supportsTablet: true, bundleIdentifier: "com.anonymous.hipmi-mobile", googleServicesFile: "./secrets/GoogleService-Info.plist", infoPlist: { ITSAppUsesNonExemptEncryption: false, NSLocationWhenInUseUsageDescription: "Aplikasi membutuhkan akses lokasi untuk menampilkan peta.", }, associatedDomains: [ "applinks:hipmi.muku.id", ], buildNumber: "7", }, android: { googleServicesFile: "./secrets/google-services.json", adaptiveIcon: { foregroundImage: "./assets/images/splash-icon.png", backgroundColor: "#ffffff", }, edgeToEdgeEnabled: true, package: "com.bip.hipmimobileapp", versionCode: 5, // softwareKeyboardLayoutMode: 'resize', // option: untuk mengatur keyboard pada room chst collaboration intentFilters: [ { action: "VIEW", autoVerify: true, // wajib untuk App Links data: [ { scheme: "https", host: "hipmi.muku.id", pathPrefix: "/", }, ], category: ["BROWSABLE", "DEFAULT"], }, ], }, web: { bundler: "metro", output: "static", favicon: "./assets/images/favicon.png", }, plugins: [ "./plugins/withCustomConfig", "expo-router", "expo-web-browser", [ "expo-splash-screen", { image: "./assets/images/splash-icon.png", imageWidth: 200, resizeMode: "contain", backgroundColor: "#ffffff", }, ], [ "expo-camera", { cameraPermission: "Allow $(PRODUCT_NAME) to access your camera", microphonePermission: "Allow $(PRODUCT_NAME) to access your microphone", recordAudioAndroid: true, }, ], "expo-font", "@react-native-firebase/app", [ "expo-notifications", { icon: "./assets/images/icon.png", color: "#ffffff", iosDisplayInForeground: true, }, ], "@maplibre/maplibre-react-native", ], experiments: { typedRoutes: true, }, extra: { router: {}, eas: { projectId: "5cf15964-4889-4755-b8ed-b99c61d614d1", }, // Tambahkan environment variables ke sini API_BASE_URL: process.env.API_BASE_URL, BASE_URL: process.env.BASE_URL, DEEP_LINK_URL: process.env.DEEP_LINK_URL, }, };