import "dotenv/config";
const GOOGLE_MAPS_API_KEY = process.env.EXPO_PUBLIC_GOOGLE_MAPS_API_KEY || "";
export default {
expo: {
name: "TodoApp",
slug: "todoapp",
version: "1.0.0",
orientation: "portrait",
icon: "./assets/icon.png",
userInterfaceStyle: "automatic",
splash: {
image: "./assets/splash-icon.png",
resizeMode: "contain",
backgroundColor: "#ffffff",
},
assetBundlePatterns: ["**/*"],
ios: {
supportsTablet: true,
bundleIdentifier: "com.kitae.todoapp",
config: {
googleMapsApiKey: GOOGLE_MAPS_API_KEY,
},
},
android: {
package: "com.kitae.todoapp",
adaptiveIcon: {
foregroundImage: "./assets/adaptive-icon.png",
backgroundColor: "#ffffff",
},
config: {
googleMaps: {
apiKey: GOOGLE_MAPS_API_KEY,
},
},
permissions: ["ACCESS_FINE_LOCATION", "ACCESS_COARSE_LOCATION"],
},
web: {
bundler: "metro",
favicon: "./assets/favicon.png",
},
plugins: ["expo-maps"],
extra: {
eas: {
projectId: "YOUR_PROJECT_ID",
},
},
},
};
// ⚠️ 개발 중에는 키가 없어도 경고만 출력
if (!GOOGLE_MAPS_API_KEY) {
console.warn(
"⚠️ Google Maps API 키가 설정되지 않았습니다. " +
"Expo Go에서는 지도 표시가 제한될 수 있으며, " +
"Dev Client / 빌드 시에는 반드시 키를 지정하세요."
);
}