You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: contributingGuides/SETUP_ANDROID.md
+4-36Lines changed: 4 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,43 +76,11 @@ If you haven't done any intentional edits outside of `src/` (like adding new dep
76
76
- To point the **Development Emulator** at your local VM, follow [these steps](https://stackoverflow.com/c/expensify/questions/7699).
77
77
- You must configure the local dev email account; follow [these instructions](https://stackoverflowteams.com/c/expensify/questions/23537/23538#23538).
78
78
79
-
## Enabling Prebuilt React Native Artifacts
79
+
## Prebuilt React Native Artifacts
80
80
81
-
By default, `react-native` is built from source when building the Android app. However, you can enable prebuilt artifacts to speed up the build process:
82
-
83
-
### Disabling Build from Source
84
-
- Open `android/gradle.properties` (for Standalone NewDot) or `Mobile-Expensify/Android/gradle.properties` (for HybridApp)
85
-
- Set `patchedArtifacts.forceBuildFromSource=false`
86
-
87
-
### Configuring GitHub CLI
88
-
89
-
To use prebuilt artifacts, you need to have GitHub CLI installed and configured:
90
-
91
-
1.**Install GitHub CLI**
92
-
- Install GitHub CLI by following the instructions from [cli.github.com](https://cli.github.com/)
93
-
94
-
2.**Create a GitHub Personal Access Token**
95
-
- Go to [GitHub Settings > Developer Settings > Personal Access Tokens](https://github.com/settings/tokens)
96
-
- Click "Generate new token (classic)"
97
-
- Select the following scopes:
98
-
-`repo`
99
-
-`read:org`
100
-
-`gist`
101
-
-`read:packages`
102
-
- Copy the generated token
103
-
104
-
3.**Login to GitHub CLI**
105
-
```bash
106
-
echo"YOUR_TOKEN"| gh auth login --with-token
107
-
```
108
-
109
-
4.**Verify Login**
110
-
```bash
111
-
gh auth status
112
-
```
113
-
You should see a message confirming you are authenticated with your GitHub account.
114
-
115
-
After completing these steps, you should be able to build Android apps with prebuilt `react-native` artifacts.
81
+
Android builds download a prebuilt `react-native` from GitHub Packages instead of compiling it, which
82
+
requires an authenticated GitHub CLI. See [Prebuilt React Native Artifacts](PREBUILT_REACT_NATIVE_ARTIFACTS.md)
83
+
for the setup and for how to compile from source instead.
0 commit comments