Skip to content

Commit 1fef809

Browse files
authored
Merge pull request #449 from mCodex/feat/v6
Feat/v6
2 parents 495dd7f + 2ff5a86 commit 1fef809

File tree

229 files changed

+22251
-25197
lines changed

Some content is hidden

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

229 files changed

+22251
-25197
lines changed

.all-contributorsrc

Lines changed: 0 additions & 38 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 57 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
version: 2
2+
enable-beta-ecosystems: true
3+
updates:
4+
- package-ecosystem: 'github-actions'
5+
directory: '/'
6+
schedule:
7+
interval: 'daily'
8+
labels:
9+
- 'dependencies'
10+
11+
- package-ecosystem: 'gradle'
12+
directories:
13+
- '/android/'
14+
- '/example/android/'
15+
schedule:
16+
interval: 'daily'
17+
labels:
18+
- 'nitro-core'
19+
- 'nitrogen'
20+
- 'dependencies'
21+
- 'kotlin'
22+
23+
- package-ecosystem: 'bundler'
24+
directory: '/example/'
25+
schedule:
26+
interval: 'daily'
27+
labels:
28+
- 'dependencies'
29+
- 'ruby'
30+
31+
- package-ecosystem: 'npm'
32+
directories:
33+
- '/example/'
34+
- '/'
35+
schedule:
36+
interval: 'daily'
37+
labels:
38+
- 'nitro-core'
39+
- 'dependencies'
40+
- 'typescript'
41+
- 'nitrogen'
42+
43+
groups:
44+
react-native-cli:
45+
patterns:
46+
- '@react-native-community/cli*'
47+
babel:
48+
patterns:
49+
- '@babel/*'
50+
react-native:
51+
patterns:
52+
- '@react-native/*'
53+
nitro:
54+
patterns:
55+
- 'nitrogen'
56+
- 'react-native-nitro-modules'

.github/stale.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: Build Android
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
paths:
11+
- '.github/workflows/android-build.yml'
12+
- 'example/android/**'
13+
- 'nitrogen/generated/shared/**'
14+
- 'nitrogen/generated/android/**'
15+
- 'cpp/**'
16+
- 'android/**'
17+
- '**/bun.lock'
18+
- '**/react-native.config.js'
19+
- '**/nitro.json'
20+
pull_request:
21+
paths:
22+
- '.github/workflows/android-build.yml'
23+
- 'example/android/**'
24+
- '**/nitrogen/generated/shared/**'
25+
- '**/nitrogen/generated/android/**'
26+
- 'cpp/**'
27+
- 'android/**'
28+
- '**/bun.lock'
29+
- '**/react-native.config.js'
30+
- '**/nitro.json'
31+
workflow_dispatch:
32+
33+
concurrency:
34+
group: ${{ github.workflow }}-${{ github.ref }}
35+
cancel-in-progress: true
36+
37+
jobs:
38+
build:
39+
name: Build Android Example App (${{ matrix.arch }})
40+
runs-on: ubuntu-latest
41+
strategy:
42+
fail-fast: false
43+
matrix:
44+
arch: [new, old]
45+
steps:
46+
- uses: actions/checkout@v4
47+
- uses: oven-sh/setup-bun@v2
48+
49+
- name: Install dependencies (bun)
50+
run: bun install
51+
52+
- name: Disable new architecture in gradle.properties
53+
if: matrix.arch == 'old'
54+
run: sed -i "s/newArchEnabled=true/newArchEnabled=false/g" example/android/gradle.properties
55+
56+
- name: Setup JDK 17
57+
uses: actions/setup-java@v5
58+
with:
59+
distribution: 'zulu'
60+
java-version: '17'
61+
cache: 'gradle'
62+
63+
- name: Cache Gradle
64+
uses: actions/cache@v4
65+
with:
66+
path: |
67+
~/.gradle/caches
68+
~/.gradle/wrapper
69+
key: ${{ runner.os }}-gradle-${{ hashFiles('example/android/**/*.gradle*') }}
70+
restore-keys: |
71+
${{ runner.os }}-gradle-
72+
73+
- name: Run Gradle build
74+
working-directory: example/android
75+
run: ./gradlew assembleDebug --no-daemon --build-cache
76+
77+
- name: Stop Gradle daemon
78+
working-directory: example/android
79+
run: ./gradlew --stop

.github/workflows/ios-build.yml

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
name: Build iOS
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
paths:
11+
- '.github/workflows/ios-build.yml'
12+
- 'example/ios/**'
13+
- 'example/Gemfile'
14+
- 'example/Gemfile.lock'
15+
- '**/nitrogen/generated/shared/**'
16+
- '**/nitrogen/generated/ios/**'
17+
- 'cpp/**'
18+
- 'ios/**'
19+
- '**/Podfile.lock'
20+
- '**/bun.lock'
21+
- '**/*.podspec'
22+
- '**/react-native.config.js'
23+
- '**/nitro.json'
24+
pull_request:
25+
paths:
26+
- '.github/workflows/ios-build.yml'
27+
- 'example/ios/**'
28+
- 'example/Gemfile'
29+
- 'example/Gemfile.lock'
30+
- '**/nitrogen/generated/shared/**'
31+
- '**/nitrogen/generated/ios/**'
32+
- 'cpp/**'
33+
- 'ios/**'
34+
- '**/Podfile.lock'
35+
- '**/bun.lock'
36+
- '**/*.podspec'
37+
- '**/react-native.config.js'
38+
- '**/nitro.json'
39+
workflow_dispatch:
40+
41+
env:
42+
USE_CCACHE: 1
43+
44+
concurrency:
45+
group: ${{ github.workflow }}-${{ github.ref }}
46+
cancel-in-progress: true
47+
48+
jobs:
49+
build:
50+
name: Build iOS Example App (${{ matrix.arch }})
51+
runs-on: macOS-15
52+
strategy:
53+
fail-fast: false
54+
matrix:
55+
arch: [new, old]
56+
steps:
57+
- uses: actions/checkout@v4
58+
- uses: oven-sh/setup-bun@v2
59+
- name: Setup Xcode
60+
uses: maxim-lobanov/setup-xcode@v1
61+
with:
62+
xcode-version: 16.4
63+
64+
- name: Install dependencies (bun)
65+
run: bun install
66+
67+
- name: Disable new architecture in Podfile
68+
if: matrix.arch == 'old'
69+
run: sed -i "" "s/ENV\['RCT_NEW_ARCH_ENABLED'\] = '1'/ENV['RCT_NEW_ARCH_ENABLED'] = '0'/g" example/ios/Podfile
70+
71+
- name: Setup Ruby (bundle)
72+
uses: ruby/setup-ruby@v1
73+
with:
74+
ruby-version: '3.2'
75+
bundler-cache: true
76+
working-directory: example/ios
77+
78+
- name: Install xcpretty
79+
run: gem install xcpretty
80+
81+
- name: Cache CocoaPods
82+
uses: actions/cache@v4
83+
with:
84+
path: |
85+
~/.cocoapods/repos
86+
example/ios/Pods
87+
key: ${{ runner.os }}-pods-${{ hashFiles('example/ios/Podfile.lock') }}
88+
restore-keys: |
89+
${{ runner.os }}-pods-
90+
91+
- name: Install Pods
92+
working-directory: example/ios
93+
run: pod install
94+
95+
- name: Build App
96+
working-directory: example/ios
97+
run: |
98+
set -o pipefail && xcodebuild \
99+
CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ \
100+
-derivedDataPath build -UseModernBuildSystem=YES \
101+
-workspace SensitiveInfoExample.xcworkspace \
102+
-scheme SensitiveInfoExample \
103+
-sdk iphonesimulator \
104+
-configuration Debug \
105+
-destination 'platform=iOS Simulator,name=iPhone 16' \
106+
build \
107+
CODE_SIGNING_ALLOWED=NO | xcpretty

0 commit comments

Comments
 (0)