From d5bec4ff37fb3423b8f083dd9fe95c066b4cf90e Mon Sep 17 00:00:00 2001 From: Ansh Date: Tue, 16 May 2023 11:14:02 -0700 Subject: [PATCH] Update build instructions (#639) * Create .env.example * Update build.md * Update eas.json * Update build.md * Update build.md * Update build.md * Update docs/build.md Co-authored-by: Caleb Jasik --------- Co-authored-by: Caleb Jasik --- .env.example | 1 + docs/build.md | 3 +++ eas.json | 15 +++------------ 3 files changed, 7 insertions(+), 12 deletions(-) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 00000000..b4213aea --- /dev/null +++ b/.env.example @@ -0,0 +1 @@ +SENTRY_AUTH_TOKEN= diff --git a/docs/build.md b/docs/build.md index efe24976..3fc3b123 100644 --- a/docs/build.md +++ b/docs/build.md @@ -18,6 +18,7 @@ - iOS: `yarn ios` - Android: `yarn android` - Web: `yarn web` +- If you are cloning or forking this repo as an open source developer, please check the tips below as well - Run e2e tests - Start in various console tabs: - `yarn e2e:server` @@ -25,6 +26,8 @@ - Run once: `yarn e2e:build` - Each test run: `yarn e2e:run` - Tips + - Make sure you copy the `.env.example` to `.env` and add the appropiate tokens (e.g. `SENTRY_AUTH_TOKEN` can be created on the Sentry dashboard). If this is not required, you can remove it from `eas.json` and `package.json`, as well as any mentions in the code. + - If you want to use Expo EAS on your own builds without ejecting from Expo, make sure to change the `owner` as well as `extra.eas.projectId` properties. If you do not have an Expo account, you may remove these properties. - `npx react-native info` Checks what has been installed. - The android simulator won't be able to access localhost services unless you run `adb reverse tcp:{PORT} tcp:{PORT}` - For instance, the localhosted dev-wallet will need `adb reverse tcp:3001 tcp:3001` diff --git a/eas.json b/eas.json index 32d5b13d..60c8be37 100644 --- a/eas.json +++ b/eas.json @@ -11,29 +11,20 @@ "simulator": true, "resourceClass": "medium" }, - "channel": "development", - "env": { - "SENTRY_AUTH_TOKEN": "89c975413cd543fbb683b11bec984fc2163d9a77312c41c0b4480a570f3daa65" - } + "channel": "development" }, "preview": { "distribution": "internal", "ios": { "resourceClass": "medium" }, - "channel": "preview", - "env": { - "SENTRY_AUTH_TOKEN": "89c975413cd543fbb683b11bec984fc2163d9a77312c41c0b4480a570f3daa65" - } + "channel": "preview" }, "production": { "ios": { "resourceClass": "medium" }, - "channel": "production", - "env": { - "SENTRY_AUTH_TOKEN": "89c975413cd543fbb683b11bec984fc2163d9a77312c41c0b4480a570f3daa65" - } + "channel": "production" } }, "submit": {