Align workspace dev commands in root dev.yml#69
Conversation
7077869 to
c4188d2
Compare
c4188d2 to
cf8541b
Compare
f9cf466 to
79b74a1
Compare
79b74a1 to
fa6fa57
Compare
cf27458 to
ea11c12
Compare
fa6fa57 to
87da5c4
Compare
| supported_exts = %w[.swift .h .mm .java .js .ts .tsx] | ||
|
|
||
| Find.find(dir) do |path| | ||
| next if path.include?('/build/generated/') |
There was a problem hiding this comment.
This keeps the RN license check focused on source-controlled files. Generated Android build output can exist locally after builds/codegen and does not reliably include our license header, which made dev check depend on local build state
| @@ -292,7 +292,7 @@ class RCTShopifyCheckoutSheetKit: RCTEventEmitter, CheckoutDelegate { | |||
| return NSNumber(value: available) | |||
| } | |||
|
|
|||
| @objc func initiateGeolocationRequest(_ allow: Bool) { | |||
| @objc func initiateGeolocationRequest(_: Bool) { | |||
There was a problem hiding this comment.
Root dev check surfaced an existing SwiftFormat issue. The parameter is intentionally unused, so _ is the correct shape here.
ea11c12 to
f46976e
Compare
87da5c4 to
3604836
Compare
2b1514e to
9514af8
Compare
9514af8 to
de4dcf6
Compare
|
|
||
| ## Dev workflow | ||
|
|
||
| Run `dev` commands from the repo root. Use `dev up` before running commands when |
There was a problem hiding this comment.
Not sure if you've had success with this locally but I think telling it to use shadoenv and where to get dev from helped with certain ai sandboxing
All commands require `shadowenv exec --` prefix.
shadowenv exec --dir DIR -- /opt/dev/bin/dev up
shadowenv exec --dir DIR -- /opt/dev/bin/dev test [ARGS]
| - [Privacy compliance](https://shopify.dev/docs/storefronts/mobile/checkout-kit/privacy-compliance) - pass GDPR, CCPA, and ATT consent through to Shopify. | ||
| - [Accelerated checkouts](https://shopify.dev/docs/storefronts/mobile/checkout-kit/accelerated-checkouts?extension=react-native) - Shop Pay and Apple Pay buttons for one-tap purchase on product and cart pages. | ||
|
|
||
| ## Development |
There was a problem hiding this comment.
I think we can move this section into the CONTRIBUTING.md to help keep the readme slim
| run: cd platforms/swift && ./Scripts/lint fix | ||
| clean: | ||
| desc: Clean Swift package build artifacts | ||
| run: cd platforms/swift && ./Scripts/xcode_run clean ShopifyCheckoutKit-Package |
There was a problem hiding this comment.
I think it'd make sense to add in a clean on the sample app and the ShopifyAcceleratedCheckouts package here too
| run: | | ||
| echo "Usage: dev swift build {packages|samples}" | ||
| desc: Build the Swift package | ||
| run: cd platforms/swift && ./Scripts/xcode_run build ShopifyCheckoutKit-Package |
There was a problem hiding this comment.
similar to above, I think we should build the main package (which you're doing), the AcceleratedCheckouts package, as well as the sample app (sample app acts as an integration compilation check)
Closes issue #908.
What changes
Adds repo-wide commands (
build,test,lint,format,check) to the rootdev.yml. Makesformatcanonical withfixaliased. AddsAGENTS.mdguidance.Audit follow-ups in the same diff:
dev android checkdelegates tolint+check license-headers(was inline gradle)dev android apiexits 1 on missing subcommanddev swift build packagesdev react-native formatdesc clarifies Swift bridge only scopeHow to test
From the repo root:
dev build,dev test,dev lint,dev format,dev checkrun across all platformsdev android clean,dev swift clean,dev react-native cleanclean build artifactsdev protocol build,dev protocol test,dev protocol checkdev <platform> formatworks;fixalias preserveddev android apiwith no subcommand prints usage and exits 1dev android checkruns license-headers + lint via delegationBefore you merge
Important
platforms/swift/README.mdand/orplatforms/android/README.md)Releasing a new Swift version?
platforms/swift/ShopifyCheckoutKit.podspecplatforms/swift/Sources/ShopifyCheckoutKit/ShopifyCheckoutKit.swiftplatforms/swift/CHANGELOG.mdplatforms/swift/README.md(major version only)Releasing a new Android version?
versionNameinplatforms/android/lib/build.gradleplatforms/android/CHANGELOG.mdplatforms/android/README.mdTip
See the Contributing documentation for the full release process per platform.