Skip to content

Commit 3f673da

Browse files
authored
chore: update react-native-nitro-modules and documentation
1 parent 94c088a commit 3f673da

142 files changed

Lines changed: 1789 additions & 1836 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Changelog
2+
3+
All notable changes to this project are documented in this file.
4+
5+
## 0.0.15 — 2026-06-30
6+
7+
### Breaking changes
8+
9+
- Regenerated Nitrogen bindings for **react-native-nitro-modules 0.35+** (JavaPart / CxxPart JNI model).
10+
- Peer dependency `react-native-nitro-modules` is now **>= 0.35.0** (was >= 0.31.4).
11+
- **Android minSdkVersion 26+** is required (Nitro Modules prefab / HardwareBuffer).
12+
13+
### Changed
14+
15+
- `NitroPay_minSdkVersion` set to 26; `NitroPay_ndkVersion` updated to 29.0.14206865.
16+
- `nitrogen` devDependency pinned to ^0.35.9; `react-native-nitro-modules` devDependency ^0.35.10.
17+
- Updated `cpp-adapter.cpp` to call `registerAllNatives()` (nitro 0.35 JNI_OnLoad pattern).
18+
19+
### Migration
20+
21+
1. Upgrade `react-native-nitro-modules` to **0.35.10** (or newer 0.35.x).
22+
2. Set Android `minSdkVersion` to **26** in `expo-build-properties` or `build.gradle`.
23+
3. Remove any consumer-side patches for `@gmisoftware/react-native-pay@0.0.14` nitrogen Android codegen.
24+
4. Run `npx expo prebuild --clean` and rebuild.

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ bun add @gmisoftware/react-native-pay
6262
### Prerequisites
6363

6464
- React Native 0.70+
65-
- React Native Nitro Modules 0.31.4+ (required)
65+
- React Native Nitro Modules 0.35.0+ (required)
66+
- Android `minSdkVersion` 26+ (required for Nitro Modules prefab)
6667
- Expo 53+ (if using Expo)
6768

6869
---
@@ -114,6 +115,8 @@ npx expo prebuild --clean
114115

115116
### Android Setup (Google Pay)
116117

118+
**Minimum SDK:** set `minSdkVersion` to **26** or higher (e.g. via `expo-build-properties`). Nitro Modules 0.35 prefab requires API 26+.
119+
117120
#### 1. Configure Expo Config Plugin
118121

119122
Add the Google Pay plugin to your `app.json` or `app.config.js`:

bun.lock

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/docs/compatibility.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ Supported versions and upgrade notes.
66

77
- **react**`*` (compatible with current React 18/19)
88
- **react-native**`*` (0.70+ recommended)
9-
- **react-native-nitro-modules****>= 0.31.4** (required)
9+
- **react-native-nitro-modules****>= 0.35.0** (required)
1010
- **expo****>= 53.0.0** (if using Expo)
11+
- **Android minSdkVersion****26+** (required for Nitro Modules prefab)
1112

1213
Install the correct Nitro version first; the payment library depends on it.
1314

@@ -32,6 +33,13 @@ Use `Platform.OS` (or equivalent) to render the correct button and to pass platf
3233

3334
## Breaking changes and migrations
3435

36+
### 0.0.15
37+
38+
- Regenerated Nitrogen bindings for **react-native-nitro-modules 0.35+** (JavaPart/CxxPart JNI model).
39+
- **Peer dependency** `react-native-nitro-modules` is now **>= 0.35.0** (was >= 0.31.4).
40+
- **Android minSdkVersion 26+** is required (Nitro Modules prefab). Set `minSdkVersion` to at least 26 in `expo-build-properties` or your app's `build.gradle`.
41+
- Consumers on nitro 0.31.x must stay on **0.0.14** or upgrade nitro-modules first.
42+
3543
- Check the package **changelog** or **GitHub releases** for version-specific notes.
3644
- When upgrading, run `npx expo prebuild --clean` and re-test on both platforms.
3745
- If you use TypeScript, run `bun run typecheck` (or your typecheck script) after upgrading.

docs/docs/quick-start.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ This guide does **not** replace platform onboarding (Apple/Google) or gateway-sp
1313
## 1. Prerequisites
1414

1515
- React Native **0.70+**
16-
- **react-native-nitro-modules** **0.31.4+** (required)
16+
- **react-native-nitro-modules** **0.35.0+** (required)
17+
- **Android minSdkVersion** **26+** (required)
1718
- **Expo 53+** if you use Expo
1819

1920
## 2. Install dependencies

docs/docs/setup/installation.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ Install the payment library and its required dependency in your React Native (or
55
## Requirements
66

77
- **React Native** 0.70 or newer
8-
- **react-native-nitro-modules** 0.31.4 or newer (required)
8+
- **react-native-nitro-modules** 0.35.0 or newer (required)
9+
- **Android minSdkVersion** 26 or newer (required for Nitro Modules prefab)
910
- **Expo** 53+ if you use Expo
1011

1112
## Step 1: Install Nitro Modules

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"react": "19.1.0",
2424
"react-dom": "19.1.0",
2525
"react-native": "0.81.4",
26-
"react-native-nitro-modules": "^0.31.9",
26+
"react-native-nitro-modules": "^0.35.10",
2727
"@gmisoftware/react-native-pay": "*",
2828
"react-native-reanimated": "~4.1.1",
2929
"react-native-safe-area-context": "~5.6.0",

package/android/gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
NitroPay_kotlinVersion=2.1.20
2-
NitroPay_minSdkVersion=23
2+
NitroPay_minSdkVersion=26
33
NitroPay_targetSdkVersion=36
44
NitroPay_compileSdkVersion=36
5-
NitroPay_ndkVersion=27.1.12297006
5+
NitroPay_ndkVersion=29.0.14206865
66

77
# Google Pay Environment: TEST or PRODUCTION
88
GOOGLE_PAY_ENVIRONMENT=TEST
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#include <jni.h>
2+
#include <fbjni/fbjni.h>
23
#include "NitroPayOnLoad.hpp"
34

45
JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void*) {
5-
return margelo::nitro::pay::initialize(vm);
6+
return facebook::jni::initialize(vm, []() {
7+
margelo::nitro::pay::registerAllNatives();
8+
});
69
}

package/nitrogen/generated/android/NitroPay+autolinking.cmake

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)