Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"@sentry/react-native/expo",
{
"url": "https://sentry.io/",
"organization": "sentry org slug, or use the `SENTRY_ORG` environment variable",
"project": "sentry project name, or use the `SENTRY_PROJECT` environment variable"
"organization": "CHANGE THIS: sentry org slug, or use the `SENTRY_ORG` environment variable",
"project": "CHANGE THIS: sentry project name, or use the `SENTRY_PROJECT` environment variable"
}
]
]
Expand Down
7 changes: 5 additions & 2 deletions eas.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
{
"cli": {
"version": ">= 3.13.3",
"promptToConfigurePushNotifications": false
"promptToConfigurePushNotifications": false,
"appVersionSource": "remote"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"distribution": "internal"
"distribution": "store",
"autoIncrement": true
},
"production": {
"autoIncrement": true,
"android": {
"image": "latest"
},
Expand Down
7 changes: 4 additions & 3 deletions env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ const env = createEnv({
},

/**
* What object holds the environment variables at runtime. This is usually
* `process.env` or `import.meta.env`.
* What object holds the environment variables at runtime. Map these manually like below.
*/
runtimeEnv: process.env,
runtimeEnv: {
EXPO_PUBLIC_API_URL: process.env.EXPO_PUBLIC_API_URL,
},
});

export default env;
5 changes: 4 additions & 1 deletion scripts/infisical.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@ if [ "$EAS_BUILD_PROFILE" = "production" ]; then
fi
echo "Using environment: $ENVIRONMENT"

SECRET_PATH="/native"
WORKSPACE_ID="650c0ca916f6d380e9193251"

# Fetch secrets and create .env file
echo "Fetching secrets and creating .env file..."
curl "https://app.infisical.com/api/v3/secrets/raw?environment=$ENVIRONMENT&secretPath=/native&workspaceId=650c0ca916f6d380e9193251" \
curl "https://app.infisical.com/api/v3/secrets/raw?environment=$ENVIRONMENT&secretPath=$SECRET_PATH&workspaceId=$WORKSPACE_ID" \
--header "Authorization: Bearer $INFISICAL_TOKEN" | \
use_jq -r '.secrets[] | "\(.secretKey)=\(.secretValue)"' > .env

Expand Down