Contributing
Bug reports, fixes and documentation improvements are welcome. Report a bug with the bug template.
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-ui-admob/src | The TypeScript API and the Nitro specs (*.nitro.ts). |
packages/nitro-ui-admob/ios | The Swift implementation. |
packages/nitro-ui-admob/android/src/main/java/… | The Kotlin implementation. |
example | A NitroUI app that calls the API, and the native tests. |
website | This documentation site. |
After changing a *.nitro.ts spec or a type it imports, regenerate the bindings with bun run specs. Never edit nitrogen/generated.
Checks
CI runs these on every pull request:
bun run lint
bun run format:check # `bun run format` fixes formatting
bun run typecheck
bun run test
bun run test runs the TypeScript unit tests, src/**/*.test.ts. Native behavior is covered by harness tests in example/__tests__; see example app. Name tests that only apply to one platform *.ios.harness.ts or *.android.harness.ts.
Documentation site
The site lives in website/, outside the Bun workspace, with its own dependencies:
cd website
bun install
bun run start # dev server at http://localhost:3000
bun run typecheck
bun run build # fails on broken links
The changelog page renders packages/nitro-ui-admob/CHANGELOG.md directly.
Pull requests
- Keep the Swift and Kotlin implementations in step. If a behavior differs between platforms, document it in the package README and in platform differences.
- Add an entry under
## [Unreleased]inpackages/nitro-ui-admob/CHANGELOG.mdfor user-visible changes. - Add or update harness tests for native behavior.
License
By contributing, you agree that your contributions are licensed under the MIT License.