Skip to content

Commit

Permalink
add platform checks
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrisch committed Oct 25, 2024
1 parent b2abce1 commit 348ed15
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions eas.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,18 @@
"resourceClass": "medium"
}
},
"preview-android": {
"extends": "preview",
"env": {
"EXPO_PLATFORM": "android"
}
},
"preview-ios": {
"extends": "preview",
"env": {
"EXPO_PLATFORM": "ios"
}
},
"ios-simulator": {
"extends": "development",
"developmentClient": true,
Expand Down
2 changes: 1 addition & 1 deletion scripts/build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const build = async () => {
const buildCommand = "eas";
const buildProfile =
env === "production" || env === "preview"
? `${env}${buildInternalProduction ? "-internal" : ""}`
? `${env}-${platform}${buildInternalProduction ? "-internal" : ""}`
: env;
const buildArgs = [
"build",
Expand Down

0 comments on commit 348ed15

Please sign in to comment.