Skip to content

Commit 7e9157d

Browse files
committed
Update README
1 parent 492b480 commit 7e9157d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,19 @@ Once finished, the web app can now be accessed in your browser by visiting the U
2626

2727
### Demo App
2828

29-
This demo app is useful for quickly testing changes made to the editor. By default, the demo app uses a production build of the web app bundled with the GutenbergKit package—i.e., the output of the project's `make build` command. During development, however, it is more useful to run the web app with a server and provide the server URL as an environment variable for the demo app, so that changes are displayed in the app immediately.
29+
This demo app is useful for quickly testing changes made to the editor.
3030

3131
#### iOS
3232

33+
The iOS demo app loads the development server by default.
34+
3335
1. Start the development server by running `make dev-server`.
3436
1. Launch Xcode and open the `ios/Demo-iOS/Gutenberg.xcodeproj` project.
3537
1. Select the `Gutenberg` target.
36-
1. Navigate to _Product__Scheme__Edit Scheme_.
37-
1. Add an environment variable named `GUTENBERG_EDITOR_URL` with the development server URL.
3838
1. Run the app.
3939

40+
Alternatively, you can load a production build of the web app bundled with the GutenbergKit package by running `make build` and disabling the `GUTENBERG_EDITOR_URL` environment variable by navigating to _Product__Scheme__Edit Scheme_ in Xcode.
41+
4042
<details>
4143
<summary>Example Xcode environment variable</summary>
4244

@@ -46,6 +48,8 @@ This demo app is useful for quickly testing changes made to the editor. By defau
4648

4749
#### Android
4850

51+
The Android demo app loads the production build of the web app bundled with the GutenbergKit package by default—i.e., the output of the project's `make build` command). It can be configured to load the development server by setting a `GUTENBERG_EDITOR_URL` environment variable in the `android/local.properties` file.
52+
4953
1. Start the development server by running `make dev-server`.
5054
1. Launch Android Studio and open the `android` project.
5155
1. Modify the `android/local.properties` file to include an environment variable named `GUTENBERG_EDITOR_URL` with the development server URL.

0 commit comments

Comments
 (0)