Skip to content

Commit b42ba53

Browse files
committed
feat: added nitrogen
1 parent 97f66a0 commit b42ba53

39 files changed

+28672
-12220
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,9 @@ on:
1010
types:
1111
- checks_requested
1212

13-
concurrency:
14-
group: ${{ github.workflow }}-${{ github.ref }}
15-
cancel-in-progress: true
16-
1713
jobs:
1814
lint:
1915
runs-on: ubuntu-latest
20-
2116
steps:
2217
- name: Checkout
2318
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -26,14 +21,13 @@ jobs:
2621
uses: ./.github/actions/setup
2722

2823
- name: Lint files
29-
run: yarn lint --fix
24+
run: yarn lint
3025

3126
- name: Typecheck files
3227
run: yarn typecheck
3328

3429
test:
3530
runs-on: ubuntu-latest
36-
3731
steps:
3832
- name: Checkout
3933
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -46,7 +40,6 @@ jobs:
4640

4741
build-library:
4842
runs-on: ubuntu-latest
49-
5043
steps:
5144
- name: Checkout
5245
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -59,17 +52,18 @@ jobs:
5952

6053
build-android:
6154
runs-on: ubuntu-latest
62-
6355
env:
6456
TURBO_CACHE_DIR: .turbo/android
65-
6657
steps:
6758
- name: Checkout
6859
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6960

7061
- name: Setup
7162
uses: ./.github/actions/setup
7263

64+
- name: Generate nitrogen code
65+
run: yarn nitrogen
66+
7367
- name: Cache turborepo for Android
7468
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
7569
with:
@@ -111,26 +105,25 @@ jobs:
111105
112106
- name: Build example for Android
113107
env:
114-
JAVA_OPTS: "-XX:MaxHeapSize=6g"
108+
JAVA_OPTS: '-XX:MaxHeapSize=6g'
115109
run: |
116110
yarn turbo run build:android --cache-dir="${{ env.TURBO_CACHE_DIR }}"
117111
118112
build-ios:
119113
runs-on: macos-latest
120-
121114
env:
122-
XCODE_VERSION: 16.3
115+
XCODE_VERSION: 16.2
123116
TURBO_CACHE_DIR: .turbo/ios
124-
RCT_USE_RN_DEP: 1
125-
RCT_USE_PREBUILT_RNCORE: 1
126-
127117
steps:
128118
- name: Checkout
129119
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
130120

131121
- name: Setup
132122
uses: ./.github/actions/setup
133123

124+
- name: Generate nitrogen code
125+
run: yarn nitrogen
126+
134127
- name: Cache turborepo for iOS
135128
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
136129
with:
@@ -163,4 +156,4 @@ jobs:
163156
164157
- name: Build example for iOS
165158
run: |
166-
yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"
159+
yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,4 @@ lib/
8080

8181
# React Native Codegen
8282
ios/generated
83-
android/generated
84-
85-
# React Native Nitro Modules
86-
nitrogen/
83+
android/generated

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Built using the **Nitro Modules** framework by [Margelo](https://nitro.margelo.c
2323
## 📦 Installation
2424

2525
```bash
26-
npm install react-native-play-age-range-declaration
26+
npm install react-native-play-age-range-declaration react-native-nitro-modules
2727
```
2828

2929
### ⚙️ Configuration

example/ios/Podfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2323,7 +2323,7 @@ DEPENDENCIES:
23232323
- fmt (from `../node_modules/react-native/third-party-podspecs/fmt.podspec`)
23242324
- glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
23252325
- hermes-engine (from `../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec`)
2326-
- NitroModules (from `../node_modules/react-native-nitro-modules`)
2326+
- NitroModules (from `../../node_modules/react-native-nitro-modules`)
23272327
- PlayAgeRangeDeclaration (from `../..`)
23282328
- RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`)
23292329
- RCTDeprecation (from `../node_modules/react-native/ReactApple/Libraries/RCTFoundation/RCTDeprecation`)
@@ -2413,7 +2413,7 @@ EXTERNAL SOURCES:
24132413
:podspec: "../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec"
24142414
:tag: hermes-2025-07-07-RNv0.81.0-e0fc67142ec0763c6b6153ca2bf96df815539782
24152415
NitroModules:
2416-
:path: "../node_modules/react-native-nitro-modules"
2416+
:path: "../../node_modules/react-native-nitro-modules"
24172417
PlayAgeRangeDeclaration:
24182418
:path: "../.."
24192419
RCT-Folly:
@@ -2554,7 +2554,7 @@ SPEC CHECKSUMS:
25542554
glog: 5683914934d5b6e4240e497e0f4a3b42d1854183
25552555
hermes-engine: 4f8246b1f6d79f625e0d99472d1f3a71da4d28ca
25562556
NitroModules: 808eee1dfaf75b2c5a63ea3608cb651cc7d13687
2557-
PlayAgeRangeDeclaration: 43b6c095458a64d10e3225188a0fe3637914d6a8
2557+
PlayAgeRangeDeclaration: 08afbf5c4f86c70424332ea9cc3b2c55c8a8b158
25582558
RCT-Folly: 846fda9475e61ec7bcbf8a3fe81edfcaeb090669
25592559
RCTDeprecation: c4b9e2fd0ab200e3af72b013ed6113187c607077
25602560
RCTRequired: e97dd5dafc1db8094e63bc5031e0371f092ae92a

nitrogen/generated/.gitattributes

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

nitrogen/generated/android/c++/JDeclaredAgeRangeResult.hpp

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

nitrogen/generated/android/c++/JHybridPlayAgeRangeDeclarationSpec.cpp

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

nitrogen/generated/android/c++/JHybridPlayAgeRangeDeclarationSpec.hpp

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

0 commit comments

Comments
 (0)