From c4fd5bfc77b8633cc806c9db3e8bab3e18d2dc1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoni=20Nu=C3=B1ez=20Romeu?= Date: Mon, 6 Jul 2026 12:09:41 +0200 Subject: [PATCH] feat: configure EAS Build for production and add env example --- frontend-mobile/.env.example | 8 ++++++++ frontend-mobile/app.json | 15 ++++++++++++--- frontend-mobile/eas.json | 25 ++++++++++++++++++++++--- 3 files changed, 42 insertions(+), 6 deletions(-) create mode 100644 frontend-mobile/.env.example diff --git a/frontend-mobile/.env.example b/frontend-mobile/.env.example new file mode 100644 index 0000000..b544ae9 --- /dev/null +++ b/frontend-mobile/.env.example @@ -0,0 +1,8 @@ +# FarmaFinder Mobile - Environment Variables + +# API Configuration +# Change this to your production API URL +EXPO_PUBLIC_API_URL=http://localhost:3001/api + +# For production builds, update this to: +# EXPO_PUBLIC_API_URL=https://api.yourdomain.com/api diff --git a/frontend-mobile/app.json b/frontend-mobile/app.json index 0bdacea..b1f6c5b 100644 --- a/frontend-mobile/app.json +++ b/frontend-mobile/app.json @@ -14,20 +14,29 @@ }, "ios": { "supportsTablet": true, - "bundleIdentifier": "com.farmafinder.app" + "bundleIdentifier": "com.farmafinder.app", + "config": { + "usesNonExemptEncryption": false + } }, "android": { "adaptiveIcon": { "foregroundImage": "./assets/adaptive-icon.png", "backgroundColor": "#007AFF" }, - "package": "com.farmafinder.app" + "package": "com.farmafinder.app", + "googleServicesFile": "./google-services.json" }, "plugins": [ "expo-router", ["expo-camera", {"cameraPermission": "Allow FarmaFinder to access your camera for scanning barcodes"}], ["expo-notifications", {"icon": "./assets/notification-icon.png", "color": "#007AFF"}] ], - "scheme": "farmafinder" + "scheme": "farmafinder", + "extra": { + "eas": { + "projectId": "" + } + } } } diff --git a/frontend-mobile/eas.json b/frontend-mobile/eas.json index b68a6a6..35c8e97 100644 --- a/frontend-mobile/eas.json +++ b/frontend-mobile/eas.json @@ -5,12 +5,31 @@ "build": { "development": { "developmentClient": true, - "distribution": "internal" + "distribution": "internal", + "ios": { + "simulator": true + }, + "android": { + "buildType": "apk" + } }, "preview": { - "distribution": "internal" + "distribution": "internal", + "ios": { + "buildType": "preview" + }, + "android": { + "buildType": "apk" + } }, - "production": {} + "production": { + "ios": { + "buildType": "release" + }, + "android": { + "buildType": "app-bundle" + } + } }, "submit": { "production": {