Skip to content

Commit 3033e52

Browse files
authored
Merge pull request #30 from patrickkabwe/next
Next
2 parents 930d2ca + 6183ab4 commit 3033e52

107 files changed

Lines changed: 2299 additions & 2703 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.

.github/dependabot.yml

Lines changed: 32 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,52 @@
11
version: 2
2-
2+
enable-beta-ecosystems: true
33
updates:
4-
- package-ecosystem: "github-actions"
5-
directory: "/"
4+
- package-ecosystem: 'github-actions'
5+
directory: '/'
66
schedule:
7-
interval: "daily"
7+
interval: 'daily'
88
labels:
9-
- "dependencies"
9+
- 'dependencies'
1010

11-
- package-ecosystem: "gradle"
11+
- package-ecosystem: 'gradle'
1212
directories:
13-
- "/package/android/"
14-
- "/example/android/"
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/'
1525
schedule:
16-
interval: "daily"
26+
interval: 'daily'
1727
labels:
18-
- "nitro-core"
19-
- "nitrogen"
20-
- "dependencies"
21-
- "kotlin"
28+
- 'dependencies'
29+
- 'ruby'
2230

23-
- package-ecosystem: "npm"
31+
- package-ecosystem: 'npm'
2432
directories:
25-
- "/package/"
26-
- "/example/"
33+
- '/example/'
34+
- '/'
2735
schedule:
28-
interval: "daily"
36+
interval: 'daily'
2937
labels:
30-
- "nitro-core"
31-
- "dependencies"
32-
- "typescript"
33-
- "nitrogen"
38+
- 'nitro-core'
39+
- 'dependencies'
40+
- 'typescript'
41+
- 'nitrogen'
3442

3543
groups:
3644
react-native-cli:
3745
patterns:
38-
- "@react-native-community/cli*"
46+
- '@react-native-community/cli*'
3947
babel:
4048
patterns:
41-
- "@babel/*"
49+
- '@babel/*'
4250
react-native:
4351
patterns:
44-
- "@react-native/*"
52+
- '@react-native/*'

.github/workflows/android-build.yml

Lines changed: 15 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ on:
77
paths:
88
- '.github/workflows/android-build.yml'
99
- 'example/android/**'
10-
- '**/nitrogen/generated/shared/**'
11-
- '**/nitrogen/generated/android/**'
12-
- 'react-native-nitro-in-app-browser/cpp/**'
13-
- 'react-native-nitro-in-app-browser/android/**'
14-
- '**/bun.lockb'
10+
- 'nitrogen/generated/shared/**'
11+
- 'nitrogen/generated/android/**'
12+
- 'cpp/**'
13+
- 'android/**'
14+
- '**/bun.lock'
1515
- '**/react-native.config.js'
1616
- '**/nitro.json'
1717
pull_request:
@@ -20,12 +20,16 @@ on:
2020
- 'example/android/**'
2121
- '**/nitrogen/generated/shared/**'
2222
- '**/nitrogen/generated/android/**'
23-
- 'react-native-nitro-in-app-browser/cpp/**'
24-
- 'react-native-nitro-in-app-browser/android/**'
25-
- '**/bun.lockb'
23+
- 'cpp/**'
24+
- 'android/**'
25+
- '**/bun.lock'
2626
- '**/react-native.config.js'
2727
- '**/nitro.json'
2828

29+
concurrency:
30+
group: ${{ github.workflow }}-${{ github.ref }}
31+
cancel-in-progress: true
32+
2933
jobs:
3034
build_new:
3135
name: Build Android Example App (new architecture)
@@ -43,20 +47,12 @@ jobs:
4347
distribution: 'zulu'
4448
java-version: 17
4549
java-package: jdk
50+
cache: gradle
4651

47-
- name: Restore Gradle cache
48-
uses: actions/cache@v4
49-
with:
50-
path: |
51-
~/.gradle/caches
52-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
53-
restore-keys: |
54-
${{ runner.os }}-gradle-
5552
- name: Run Gradle Build for example/android/
5653
working-directory: example/android
5754
run: ./gradlew assembleDebug --no-daemon --build-cache
5855

59-
# Gradle cache doesn't like daemons
6056
- name: Stop Gradle Daemon
6157
working-directory: example/android
6258
run: ./gradlew --stop
@@ -80,20 +76,12 @@ jobs:
8076
distribution: 'zulu'
8177
java-version: 17
8278
java-package: jdk
79+
cache: gradle
8380

84-
- name: Restore Gradle cache
85-
uses: actions/cache@v4
86-
with:
87-
path: |
88-
~/.gradle/caches
89-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
90-
restore-keys: |
91-
${{ runner.os }}-gradle-
9281
- name: Run Gradle Build for example/android/
9382
working-directory: example/android
9483
run: ./gradlew assembleDebug --no-daemon --build-cache
9584

96-
# Gradle cache doesn't like daemons
9785
- name: Stop Gradle Daemon
9886
working-directory: example/android
99-
run: ./gradlew --stop
87+
run: ./gradlew --stop

.github/workflows/ios-build.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,40 @@ on:
77
paths:
88
- '.github/workflows/ios-build.yml'
99
- 'example/ios/**'
10+
- 'example/Gemfile'
11+
- 'example/Gemfile.lock'
1012
- '**/nitrogen/generated/shared/**'
1113
- '**/nitrogen/generated/ios/**'
12-
- 'react-native-nitro-in-app-browser/cpp/**'
13-
- 'react-native-nitro-in-app-browser/ios/**'
14+
- 'cpp/**'
15+
- 'ios/**'
1416
- '**/Podfile.lock'
17+
- '**/bun.lock'
1518
- '**/*.podspec'
1619
- '**/react-native.config.js'
1720
- '**/nitro.json'
1821
pull_request:
1922
paths:
2023
- '.github/workflows/ios-build.yml'
2124
- 'example/ios/**'
25+
- 'example/Gemfile'
26+
- 'example/Gemfile.lock'
2227
- '**/nitrogen/generated/shared/**'
2328
- '**/nitrogen/generated/ios/**'
24-
- 'react-native-nitro-in-app-browser/cpp/**'
25-
- 'react-native-nitro-in-app-browser/ios/**'
29+
- 'cpp/**'
30+
- 'ios/**'
2631
- '**/Podfile.lock'
32+
- '**/bun.lock'
2733
- '**/*.podspec'
2834
- '**/react-native.config.js'
2935
- '**/nitro.json'
3036

3137
env:
3238
USE_CCACHE: 1
3339

40+
concurrency:
41+
group: ${{ github.workflow }}-${{ github.ref }}
42+
cancel-in-progress: true
43+
3444
jobs:
3545
build_new:
3646
name: Build iOS Example App (new architecture)
@@ -42,9 +52,6 @@ jobs:
4252
- name: Install npm dependencies (bun)
4353
run: bun install
4454

45-
- name: Restore ccache
46-
uses: hendrikmuhs/ccache-action@v1.2
47-
4855
- name: Setup Ruby (bundle)
4956
uses: ruby/setup-ruby@v1
5057
with:
@@ -70,8 +77,8 @@ jobs:
7077
run: "set -o pipefail && xcodebuild \
7178
CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ \
7279
-derivedDataPath build -UseModernBuildSystem=YES \
73-
-workspace ExampleApp.xcworkspace \
74-
-scheme ExampleApp \
80+
-workspace NitroInAppBrowserExample.xcworkspace \
81+
-scheme NitroInAppBrowserExample \
7582
-sdk iphonesimulator \
7683
-configuration Debug \
7784
-destination 'platform=iOS Simulator,name=iPhone 16' \
@@ -120,8 +127,8 @@ jobs:
120127
run: "set -o pipefail && xcodebuild \
121128
CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ \
122129
-derivedDataPath build -UseModernBuildSystem=YES \
123-
-workspace ExampleApp.xcworkspace \
124-
-scheme ExampleApp \
130+
-workspace NitroInAppBrowserExample.xcworkspace \
131+
-scheme NitroInAppBrowserExample \
125132
-sdk iphonesimulator \
126133
-configuration Debug \
127134
-destination 'platform=iOS Simulator,name=iPhone 16' \

.github/workflows/release-android.yml

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

.github/workflows/release.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- next
8+
9+
permissions:
10+
contents: read
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
release:
18+
name: Release
19+
runs-on: ubuntu-latest
20+
permissions:
21+
contents: write
22+
issues: write
23+
pull-requests: write
24+
id-token: write
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
with:
29+
fetch-depth: 0
30+
- name: Setup Bun.js
31+
uses: oven-sh/setup-bun@v2
32+
with:
33+
bun-version: latest
34+
- name: Cache bun dependencies
35+
id: bun-cache
36+
uses: actions/cache@v4
37+
with:
38+
path: ~/.bun/install/cache
39+
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
40+
restore-keys: |
41+
${{ runner.os }}-bun-
42+
43+
- name: Install npm dependencies (bun)
44+
run: bun install
45+
- name: Release
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
49+
NPM_CONFIG_PROVENANCE: true
50+
run: bun release

.gitignore

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
#
33
.DS_Store
44

5-
**/.xcode.env.local
6-
75
# XDE
86
.expo/
97

@@ -56,10 +54,6 @@ npm-debug.log
5654
yarn-debug.log
5755
yarn-error.log
5856

59-
# Bun
60-
package-lock.json
61-
**/*.bun
62-
6357
# BUCK
6458
buck-out/
6559
\.buckd/
@@ -73,15 +67,11 @@ android/keystores/debug.keystore
7367
!.yarn/releases
7468
!.yarn/sdks
7569
!.yarn/versions
70+
.kotlin
7671

7772
# Expo
7873
.expo/
7974

80-
# Turborepo
81-
.turbo/
82-
8375
# generated by bob
8476
lib/
85-
86-
# TypeScript
8777
tsconfig.tsbuildinfo

react-native-nitro-in-app-browser/.watchmanconfig renamed to .watchmanconfig

File renamed without changes.

0 commit comments

Comments
 (0)