Contributing
Bug reports, fixes and documentation improvements are welcome. The full guide is CONTRIBUTING.md.
Set up
You need Bun 1.4.4 or newer. iOS work needs Xcode 27; Android work needs the Android SDK and NDK that NitroUI requires.
bun install # links the workspace, generates bindings and prepares the example
| Path | Contents |
|---|---|
packages/nitro-apple-signin/src | The TypeScript API and the AppleSignIn.nitro.ts Nitro spec. |
packages/nitro-apple-signin/ios | The Swift implementation. |
packages/nitro-apple-signin/android/src/main/java/… | The Kotlin implementation, which reports NOT_SUPPORTED. |
example | A NitroUI app that calls every API, and the native tests. |
website | This documentation site. |
After changing AppleSignIn.nitro.ts or a type in src/types, regenerate the bindings with bun run specs. Never edit nitrogen/generated.
Checks
bun run lint
bun run format:check # `bun run format` fixes formatting
bun run typecheck
bun run test # TypeScript unit tests
bun run test:ios --device "<simulator name or UDID>"
bun run test:android --device <adb-serial>
Native tests use nitro-ui-harness and live in example/__tests__. Name platform-only tests *.ios.harness.ts or *.android.harness.ts. Harness tests must not show Apple's sign-in sheet: nothing can dismiss it in CI.
Pull requests
- Keep the Swift and Kotlin implementations in step.
- Every native failure must reject with a
[CODE]-tagged message. Add a new code toappleSignInErrorCodes, the README table, these docs and both native error types. - Add an entry under
## [Unreleased]inpackages/nitro-apple-signin/CHANGELOG.mdfor user-visible changes.
Work on the docs
The site is a standalone Docusaurus project in website/, outside the Bun workspace:
cd website
bun install
bun run start # dev server with live reload
bun run build # production build; fails on broken links