Installation
bun add nitro-apple-signin
bun run nitro-ui prepare
nitro-ui prepare finds the package through its nitro.json, generates its bindings with the app's Nitrogen, and links its Swift package into the iOS build and its Kotlin sources into the Android runtime library. There is no manual Xcode or Gradle step.
Peer dependencies
| Package | Range | Provided by |
|---|---|---|
nitro-ui-renderer | ^0.3.0 | Your app |
nitro-core | 1.0.0-alpha.nightly.137.gd4793c40b8b8 | NitroUI 0.3.x |
nitro-core is a peer dependency so the app keeps a single copy: the app's NitroUI release brings it.
:::warning Pinned nightly
nitro-core is pinned to an exact nightly, the one NitroUI 0.3.0 depends on. If your app resolves a different nitro-core, the generated bindings and the runtime will not match. Stay on NitroUI 0.3.x.
:::
What gets linked
| Platform | Module | Source |
|---|---|---|
| iOS | Swift package NitroAppleSignIn, iOS 16+ | ios/ and the generated Swift bindings |
| Android | Kotlin class HybridAppleSignIn | android/src/main/java/com/margelo/nitro/applesignin |
Next: set up iOS.