feat: configure EAS Build for production and add env example

This commit is contained in:
Antoni Nuñez Romeu
2026-07-06 12:09:41 +02:00
parent 454da1416d
commit c4fd5bfc77
3 changed files with 42 additions and 6 deletions
+8
View File
@@ -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
+12 -3
View File
@@ -14,20 +14,29 @@
}, },
"ios": { "ios": {
"supportsTablet": true, "supportsTablet": true,
"bundleIdentifier": "com.farmafinder.app" "bundleIdentifier": "com.farmafinder.app",
"config": {
"usesNonExemptEncryption": false
}
}, },
"android": { "android": {
"adaptiveIcon": { "adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png", "foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#007AFF" "backgroundColor": "#007AFF"
}, },
"package": "com.farmafinder.app" "package": "com.farmafinder.app",
"googleServicesFile": "./google-services.json"
}, },
"plugins": [ "plugins": [
"expo-router", "expo-router",
["expo-camera", {"cameraPermission": "Allow FarmaFinder to access your camera for scanning barcodes"}], ["expo-camera", {"cameraPermission": "Allow FarmaFinder to access your camera for scanning barcodes"}],
["expo-notifications", {"icon": "./assets/notification-icon.png", "color": "#007AFF"}] ["expo-notifications", {"icon": "./assets/notification-icon.png", "color": "#007AFF"}]
], ],
"scheme": "farmafinder" "scheme": "farmafinder",
"extra": {
"eas": {
"projectId": ""
}
}
} }
} }
+22 -3
View File
@@ -5,12 +5,31 @@
"build": { "build": {
"development": { "development": {
"developmentClient": true, "developmentClient": true,
"distribution": "internal" "distribution": "internal",
"ios": {
"simulator": true
},
"android": {
"buildType": "apk"
}
}, },
"preview": { "preview": {
"distribution": "internal" "distribution": "internal",
"ios": {
"buildType": "preview"
},
"android": {
"buildType": "apk"
}
}, },
"production": {} "production": {
"ios": {
"buildType": "release"
},
"android": {
"buildType": "app-bundle"
}
}
}, },
"submit": { "submit": {
"production": { "production": {