Skip to content

Commit c27d6bc

Browse files
committed
fix: add environment settings for build configurations in eas.json and update eas-build-pre-install script in package.json
1 parent 5e88b77 commit c27d6bc

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

eas.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
},
66
"build": {
77
"production": {
8+
"environment": "production",
89
"channel": "production",
910
"distribution": "store",
1011
"pnpm": "9.12.3",
@@ -25,6 +26,7 @@
2526
}
2627
},
2728
"staging": {
29+
"environment": "preview",
2830
"channel": "staging",
2931
"distribution": "internal",
3032
"pnpm": "9.12.3",
@@ -42,6 +44,7 @@
4244
}
4345
},
4446
"development": {
47+
"environment": "development",
4548
"developmentClient": false,
4649
"distribution": "internal",
4750
"pnpm": "9.12.3",
@@ -58,6 +61,7 @@
5861
}
5962
},
6063
"simulator": {
64+
"environment": "development",
6165
"pnpm": "9.12.3",
6266
"ios": {
6367
"simulator": true,

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"private": true,
55
"main": "expo-router/entry",
66
"scripts": {
7+
"eas-build-pre-install": "if [ -n \"$GOOGLE_SERVICES_JSON_FILE\" ]; then cp \"$GOOGLE_SERVICES_JSON_FILE\" android/app/google-services.json; fi",
78
"start": "cross-env EXPO_NO_DOTENV=1 expo start",
89
"prebuild": "cross-env EXPO_NO_DOTENV=1 pnpm expo prebuild",
910
"android": "cross-env EXPO_NO_DOTENV=1 expo run:android",

0 commit comments

Comments
 (0)