platforms/
swift/ # iOS Swift Package and CocoaPods sources
android/ # Android library and sample apps
react-native/ # React Native wrapper
web/ # Web component package and sample app
protocol/ # cross-platform communication layer and protocol language artifacts based on UCP
e2e/ # cross-platform end-to-end tests
.github/ # workflows, issue templates, CODEOWNERS
AI agents: All commands require the
shadowenv exec --prefix to run inside the shadowenv-managed environment.shadowenv exec --dir <repo_root> -- /opt/dev/bin/dev up shadowenv exec --dir <repo_root> -- /opt/dev/bin/dev test [ARGS]
Run dev commands from the repo root or any platform directory. Use dev up
before running commands when the environment may not be provisioned.
For platform-scoped work, prefer the root dev.yml commands:
- Android:
dev android <command> - Swift:
dev swift <command> - React Native:
dev react-native <command>ordev rn <command> - Web:
dev web <command>
Use dev up for setup and setup recovery.
For protocol schema/model work, use dev protocol <command>.
For cross-platform changes, use the repo-wide aggregates: dev lint,
dev test, dev check, dev format, and dev build. Use
dev <platform> format for formatting; fix remains an alias for existing
workflows.
Prefer the dev swift ... commands for Swift package and sample builds. When
running xcodebuild directly for Swift package, Swift sample, or React Native
iOS sample work, always include -disableAutomaticPackageResolution so Xcode
uses the committed Package.resolved files instead of silently updating package
pins. This prevents sample app dependencies such as Apollo iOS from being
written into the repo-root Swift package lockfile.
Default: do not pass --local, and do not set USE_LOCAL_SDK=1. React Native builds
resolve the published native SDKs from CocoaPods and Maven Central. That is what CI does, and
it is what almost all React Native work needs.
Does the native API you need already exist in the published version pinned at
checkoutKit.nativeSdkVersions in
platforms/react-native/modules/@shopify/checkout-kit-react-native/package.json?
- Yes — do not use
--local. Editing files underplatforms/swift/orplatforms/android/does not on its own require it. - No — you are adding that API in this PR. Only then is
--localcorrect.
--local covers a single case: you changed the Swift or Kotlin public API, and you want to
integrate the React Native side against it now, before that native SDK version ships.
- Make the Swift or Kotlin public API change and submit it in a PR.
- Use
--localto build the React Native side against those in-repo sources.
Expect this state while you do it:
- CI stays red and the PR is not mergeable. CI resolves published artifacts only. It does not
accept a
Podfile.lockor a Maven resolution produced by--local. - The PR becomes mergeable once the native release reaches CocoaPods and Maven Central and
checkoutKit.nativeSdkVersionsis bumped to it.
This is a local development aid for early integration. It is not part of normal development.
--local concerns the native SDK sources:
platforms/swift/— the iOS Swift SDK / CocoaPods sourcesplatforms/android/— the Android SDK / Maven artifact sourcesprotocol/languages/kotlin/— Kotlin protocol artifacts consumed by the Android SDK
It does not concern the React Native wrapper platform folders, which build from source either way:
platforms/react-native/modules/@shopify/checkout-kit-react-native/ios/platforms/react-native/modules/@shopify/checkout-kit-react-native/android/
- iOS: wires CocoaPods to the in-repo
platforms/swift/sources via a local path instead of a released pod version. - Android: publishes the in-repo Android SDK and Kotlin protocol artifacts to Maven Local, then resolves
com.shopify:checkout-kitandcom.shopify:embedded-checkout-protocolfrom there.
dev rn ios --local
dev rn android --local
dev rn test android --localRe-run the relevant command whenever platforms/swift/, platforms/android/, or
protocol/languages/kotlin/ changes, so the build re-resolves those sources.
- Never commit a
Podfile.lockgenerated with--local. It records a local path, andplatforms/react-native/scripts/check_published_podfile_lockfails CI on it. Regenerate withenv -u USE_LOCAL_SDK dev rn pod-install. - Never hardcode
USE_LOCAL_SDK=1into a script,dev.yml, or a workflow. It has to stay an explicit choice made on the command line, or local runs stop matching CI and can resolve a stale artifact from~/.m2.platforms/react-native/scripts/check_no_local_sdk_defaultfails CI on it. - The React Native Android sample uses exclusive Maven Local resolution for those two
com.shopifymodules whenUSE_LOCAL_SDK=1. Keep that filtering in the sample Gradle build; duplicating exclusive repository filters for the same modules elsewhere can break dependency resolution.
Treat storefront environment and generated sample app configuration values as
sensitive. Never print, commit, paste, or document real values from .env,
generated platform config, access tokens, merchant identifiers, shop IDs,
account IDs. Use synthetic placeholders for docs and
verification.