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: .github/CONTRIBUTING.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,11 @@ dev check
50
50
51
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`.
52
52
53
+
Sample app storefront configuration is generated from the repo-root `.env`.
54
+
Shopify employees get this through `dev up`. External contributors can copy
55
+
`.env.example` to `.env`, fill in local storefront values, then run
56
+
`scripts/setup_storefront_env` from the repo root.
The setup script generates this sample's local `.env`.
95
+
94
96
Open the project in Android Studio, sync Gradle, then build and run.
95
97
96
98
## Updating the Storefront API version
97
99
98
-
1. Update `API_VERSION` in `.env`.
99
-
2. Download the schema with Rover. This introspects your store's Storefront API and writes `schema.graphqls` into `app/src/main/graphql/`.
100
+
1. Update `API_VERSION` in the repo-root `.env`.
101
+
2. Run `scripts/setup_storefront_env` from the repo root.
102
+
3. Download the schema with Rover. This introspects your store's Storefront API and writes `schema.graphqls` into `app/src/main/graphql/`.
100
103
101
104
```sh
102
105
rover graph introspect \
@@ -105,7 +108,7 @@ Open the project in Android Studio, sync Gradle, then build and run.
105
108
--output "app/src/main/graphql/schema.graphqls"
106
109
```
107
110
108
-
3. Update GraphQL operations in `app/src/main/graphql/` if the schema changed. For example, add a product field to `FetchProducts.graphql` before regenerating types:
111
+
4. Update GraphQL operations in `app/src/main/graphql/` if the schema changed. For example, add a product field to `FetchProducts.graphql` before regenerating types:
0 commit comments