Repository navigation
docs(readme): try the demo from prebuilt release builds #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,6 +33,27 @@ What can a document contain? Every Remote Compose building block, live with its | |
| /> | ||
| ``` | ||
|
|
||
| ## Try the demo | ||
|
|
||
| The Expo demo app shows host values, JSON documents, documents from the network and performance | ||
| numbers. Prebuilt builds are attached to the GitHub releases since | ||
| [v0.2.0](https://github.com/ardmn/react-native-remote-compose/releases/tag/v0.2.0): | ||
|
|
||
| - **Android 7.0+ (phone or emulator):** download `remote-compose-expo-demo-<version>.apk` and open it | ||
| (allow installing unknown apps), or run `adb install remote-compose-expo-demo-<version>.apk`. | ||
| - **iOS Simulator (a Mac with Xcode):** download `remote-compose-expo-demo-<version>-ios-simulator.tar.gz`, | ||
| then with a simulator booted: | ||
|
|
||
| ```sh | ||
| tar -xzf remote-compose-expo-demo-*-ios-simulator.tar.gz | ||
| xcrun simctl install booted RemoteComposeExpo.app | ||
| xcrun simctl launch booted dev.ardmn.remotecompose.expo | ||
| ``` | ||
|
|
||
| This build runs only in the simulator, not on a real iPhone. | ||
|
|
||
| To build it yourself, see [Development](#development). | ||
|
|
||
| ## Get started | ||
|
|
||
| Five steps from an empty React Native app to a document that reacts to your state and your taps. | ||
|
|
@@ -416,6 +437,11 @@ no npm token exists, and npm attaches a provenance attestation to the release. T | |
| `npm` GitHub environment, which only `v*` tags may deploy to and which waits for a maintainer to | ||
| approve (Actions → the Release run → Review deployments). | ||
|
|
||
| After npm has the version, attach the demo builds to the GitHub release (see [Try the demo](#try-the-demo)): | ||
| `cd example-expo && npx eas-cli build --platform all --profile preview`, then upload the APK as | ||
| `remote-compose-expo-demo-<version>.apk` and the simulator archive as | ||
| `remote-compose-expo-demo-<version>-ios-simulator.tar.gz` with `gh release upload v<version>`. | ||
|
Comment on lines
+440
to
+443
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Document how the GitHub release for the tag is created before the upload. The release section uploads demo assets to a GitHub release, but no step creates that release. The
|
||
|
|
||
| ### Supply chain | ||
|
|
||
| Exact versions everywhere; `yarn.lock` is installed with `--immutable` in Yarn's hardened mode; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use a runnable APK filename in the command.
If a user copies this command, the shell interprets
<version>as redirection. It does not pass the downloaded APK filename toadb. Use the actual version or a wildcard.