From 348ed154dd96f2b89497bed2e57936b4f7b85b61 Mon Sep 17 00:00:00 2001 From: Alex Risch Date: Thu, 24 Oct 2024 20:50:36 -0400 Subject: [PATCH] add platform checks --- eas.json | 12 ++++++++++++ scripts/build/build.js | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/eas.json b/eas.json index 16e3e6e6e..6d00817c6 100644 --- a/eas.json +++ b/eas.json @@ -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, diff --git a/scripts/build/build.js b/scripts/build/build.js index 3bd21f7e8..35844e633 100644 --- a/scripts/build/build.js +++ b/scripts/build/build.js @@ -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",