|
2 | 2 |
|
3 | 3 | The following is a set of guidelines for contributing to this project. Please take a moment to read through them before submitting your first PR. |
4 | 4 |
|
5 | | -This is a monorepo containing the iOS/Swift, Android, and (forthcoming) React Native implementations of the Shopify Checkout Kit. Each platform has its own conventions, tooling, and release process; the shared guidelines below apply to all of them. |
| 5 | +This is a monorepo containing the Swift, Android, React Native, and Web implementations of the Shopify Checkout Kit. Each platform has its own conventions, tooling, and release process; the shared guidelines below apply to all of them. |
6 | 6 |
|
7 | 7 | ## Code of Conduct |
8 | 8 |
|
@@ -48,7 +48,25 @@ dev up |
48 | 48 | dev check |
49 | 49 | ``` |
50 | 50 |
|
51 | | -Platform-scoped commands are available as `dev android <command>`, `dev swift <command>`, and `dev react-native <command>` (or `dev rn`). Protocol schema/model commands are available as `dev protocol <command>`. For cross-platform changes, use `dev lint`, `dev test`, `dev check`, `dev format`, and `dev build`. |
| 51 | +`dev up` performs full DevHub provisioning, then runs Checkout Kit's repo-owned |
| 52 | +setup steps. Those repo-owned steps are summarized at the end so a Swift, |
| 53 | +Android, React Native, or Web setup failure is visible without hiding later |
| 54 | +platform results. If a platform-specific setup step fails, fix it and rerun that |
| 55 | +platform directly, for example `dev swift setup`. To rerun the repo-owned setup |
| 56 | +summary without DevHub's native provisioning, use `dev bootstrap`. |
| 57 | + |
| 58 | +Setup creates or syncs sample app storefront configuration from the repo-root |
| 59 | +`.env`. If `.env` is missing, setup prompts for required storefront values and |
| 60 | +then generates the Android, Swift, and React Native sample config files. |
| 61 | +Optional Apple Pay and Customer Account API values are preserved if already set, |
| 62 | +but `dev up` leaves missing optional values blank instead of prompting. To fill |
| 63 | +optional values interactively, run `dev storefront-env sync --prompt-optional`. |
| 64 | + |
| 65 | +Platform-scoped commands are available as `dev android <command>`, `dev swift <command>`, `dev react-native <command>` (or `dev rn`), and `dev web <command>`. Each platform also supports `dev <platform> setup` and `dev <platform> up` for platform-local setup when the full repo does not need to be reprovisioned. Protocol schema/model commands are available as `dev protocol <command>`. For cross-platform changes, use `dev lint`, `dev test`, `dev check`, `dev format`, and `dev build`. |
| 66 | + |
| 67 | +React Native sample apps can be run against local in-repo SDK sources with |
| 68 | +`dev rn ios --local` or `dev rn android --local`. The Web sample accepts a |
| 69 | +checkout URL directly and does not use the shared storefront credential files. |
52 | 70 |
|
53 | 71 | --- |
54 | 72 |
|
@@ -121,7 +139,7 @@ If your change intentionally modifies the public API: |
121 | 139 | 2. Review the diff in `platforms/android/lib/api/lib.api` alongside your code changes. |
122 | 140 | 3. Commit the updated `.api` file in the same PR. |
123 | 141 |
|
124 | | -If you did *not* intend to change public API and `apiCheck` is failing, the diff shows what your change inadvertently affected — treat it as a signal that something in your PR has consumer-visible impact. |
| 142 | +If you did _not_ intend to change public API and `apiCheck` is failing, the diff shows what your change inadvertently affected — treat it as a signal that something in your PR has consumer-visible impact. |
125 | 143 |
|
126 | 144 | ### Releasing a new Android version |
127 | 145 |
|
|
0 commit comments