Requirements
Nitro UI Brownfield is a preview. It supports one version of Nitro UI, 0.3.0, and its toolchain is the one Nitro UI itself requires. This page lists every tool and version, says where each requirement comes from, and says what is not supported. Nitro UI Brownfield is a third-party library and is not endorsed by the Nitro UI authors.
Installation is covered on the install page.
Who needs what
Section titled “Who needs what”- The React team needs everything on this page. It builds the binary dependency, so it needs Bun, Xcode and the Android toolchain.
- The native team only consumes the artifact. It needs an Xcode project that can add Swift packages, or a Gradle project, and no Bun, JavaScript or NDK. The artifact asks for iOS 16 or later and a
minSdkof 26 or higher.
Toolchain matrix
Section titled “Toolchain matrix”The “Comes from” column says whose requirement it is. Nitro UI means Nitro UI 0.3.0 states or builds with it. This library means Nitro UI Brownfield declares it in its own build files.
| Tool | Required version | Comes from | Notes |
|---|---|---|---|
| Apple silicon Mac | arm64 | Nitro UI | The Nitro UI CLI names Apple silicon Macs and x86-64 Linux as hosts. Linux supports Android builds only. |
| Xcode | 27 | Nitro UI | Needed for iOS only. |
| Swift tools version | 6.4 | This library | The library’s Package.swift declares swift-tools-version: 6.4. |
| iOS deployment target | 16.0 | Nitro UI and this library | The library’s Package.swift declares .iOS(.v16), and the CLI’s floor for brownfield.ios.minimum is 16.0. |
| iOS dependency manager | Swift Package Manager | This library | The artifact is a Swift package. |
| Bun | required | Nitro UI | The Nitro UI CLI and the nuib entry point are Bun scripts. |
| JDK | 17 | Nitro UI | Android builds only. |
| Android SDK platform | 36 (compileSdk) |
Nitro UI and this library | Android builds only. |
Android API level (minSdk) |
26 | Nitro UI and this library | Devices need Android 8.0 (API 26) or newer. |
| Android NDK | 29.0.14206865, exactly | Nitro UI | Pinned as ndkVersion in Nitro UI’s runtime and CLI build files. |
| CMake | 3.22.1 | Nitro UI | Install it from the Android SDK manager. Android builds also need Ninja and Python 3. |
| Gradle | 8.13 | This library’s sample hosts | The Gradle wrapper of the example apps. |
| Android Gradle Plugin | 8.13.2 | This library’s sample hosts | In the example apps. |
| Kotlin | 2.2.0 | This library’s sample hosts | In the example apps. |
Supported Nitro UI version
Section titled “Supported Nitro UI version”Nitro UI Brownfield supports Nitro UI 0.3.0, exactly. Pin it exactly in the React project. A range or a different version is not supported.
Not supported in the preview
Section titled “Not supported in the preview”- CocoaPods. The artifact is a Swift package, and the library ships no podspec.
- Package managers other than Bun. The Nitro UI CLI and
nuibrun on Bun. - Intel Macs. The iOS slices of the artifact are arm64 only; there is no x86_64 simulator slice.
- Windows hosts. iOS builds need Xcode, which runs only on macOS, and the Nitro UI CLI names only Apple silicon Macs and x86-64 Linux as hosts.
- Android ABIs other than
arm64-v8a. The artifact’s own native libraries arearm64-v8aonly. - A Nitro UI version other than 0.3.0.
Check your machine
Section titled “Check your machine”Print each version and compare it with the matrix.
xcodebuild -version # Xcode 27swift --version # Swift tools 6.4 must be supportedbun --versionjava -version # 17python3 --version # Python 3, Android builds onlyninja --version # Ninja, Android builds onlyFor the Android SDK, list the installed packages and look for platforms;android-36, ndk;29.0.14206865 and cmake;3.22.1.
"$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" --list_installedls "$ANDROID_HOME/ndk" "$ANDROID_HOME/cmake"In a Gradle project, print the Gradle version from the wrapper.
./gradlew --versionSet ANDROID_HOME to your Android SDK directory, and add its platform-tools directory to PATH so the command line can find adb.