feat: configure EAS Build for production and add env example
This commit is contained in:
@@ -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
|
||||||
@@ -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": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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"
|
||||||
},
|
},
|
||||||
"production": {}
|
"android": {
|
||||||
|
"buildType": "apk"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"production": {
|
||||||
|
"ios": {
|
||||||
|
"buildType": "release"
|
||||||
|
},
|
||||||
|
"android": {
|
||||||
|
"buildType": "app-bundle"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"submit": {
|
"submit": {
|
||||||
"production": {
|
"production": {
|
||||||
|
|||||||
Reference in New Issue
Block a user