Skip to content

Commit 8278040

Browse files
committed
Merge branch 'main' into szymonrybczak/feat-add-rnta
2 parents 5a70b27 + 1ff7d0c commit 8278040

File tree

76 files changed

+841
-760
lines changed

Some content is hidden

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

76 files changed

+841
-760
lines changed

.github/workflows/build-templates.yml

Lines changed: 58 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
pull_request:
1212
branches:
1313
- main
14+
merge_group:
15+
types:
16+
- checks_requested
1417

1518
jobs:
1619
build:
@@ -28,41 +31,57 @@ jobs:
2831
- module-legacy
2932
- module-mixed
3033
- module-new
31-
- view-module-legacy
32-
- view-module-mixed
33-
- view-module-new
34+
- view-legacy
35+
- view-mixed
36+
- view-new
3437
language:
38+
- java-objc
39+
- java-swift
3540
- kotlin-objc
36-
- cpp
41+
- kotlin-swift
3742
exclude:
38-
- type: view-module-legacy
39-
language: cpp
40-
- type: view-module-mixed
41-
language: cpp
42-
- type: view-module-new
43-
language: cpp
44-
- type: module-legacy
45-
language: kotlin-objc
46-
- type: module-mixed
43+
- os: macos-14
4744
language: kotlin-objc
45+
- os: macos-14
46+
language: kotlin-swift
47+
- type: module-new
48+
language: java-swift
4849
- type: module-new
49-
language: kotlin-objc
50-
include:
51-
- os: ubuntu-latest
52-
type: view-legacy
5350
language: kotlin-swift
54-
- os: macos-14
55-
type: view-legacy
51+
- type: module-mixed
52+
language: java-swift
53+
- type: module-mixed
5654
language: kotlin-swift
57-
- os: ubuntu-latest
58-
type: module-legacy
55+
- type: view-new
56+
language: java-swift
57+
- type: view-new
5958
language: kotlin-swift
60-
- os: macos-14
61-
type: module-legacy
59+
- type: view-mixed
60+
language: java-swift
61+
- type: view-mixed
6262
language: kotlin-swift
63+
include:
6364
- os: ubuntu-latest
6465
type: library
6566
language: js
67+
- os: ubuntu-latest
68+
type: module-legacy
69+
language: cpp
70+
- os: ubuntu-latest
71+
type: module-mixed
72+
language: cpp
73+
- os: ubuntu-latest
74+
type: module-new
75+
language: cpp
76+
- os: macos-14
77+
type: module-legacy
78+
language: cpp
79+
- os: macos-14
80+
type: module-mixed
81+
language: cpp
82+
- os: macos-14
83+
type: module-new
84+
language: cpp
6685

6786
concurrency:
6887
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.type }}-${{ matrix.language }}
@@ -118,17 +137,30 @@ jobs:
118137
rm -f example/yarn.lock # Workaround for cached yarn.lock from older version
119138
yarn install --no-immutable
120139
140+
- name: Use local version of react-native-builder-bob
141+
run: |
142+
cd packages/react-native-builder-bob
143+
npm pack
144+
tgz=$(ls react-native-builder-bob-*.tgz)
145+
cd -
146+
cd ${{ env.work_dir }}
147+
YARN_CHECKSUM_BEHAVIOR=ignore yarn add --dev ../packages/react-native-builder-bob/$tgz
148+
121149
- name: Get build target
122150
working-directory: ${{ env.work_dir }}
123151
run: |
124152
# Build Android for only some matrices to skip redundant builds
125-
if [[ ${{ matrix.os }} == ubuntu-latest ]] && [[ ${{ matrix.language }} != js ]] ; then
153+
if [[ ${{ matrix.os }} == ubuntu-latest ]]; then
154+
if [[ ${{ matrix.type }} == view-* && ${{ matrix.language }} == *-objc ]] || [[ ${{ matrix.type }} == module-* && ${{ matrix.language }} == *-objc ]] || [[ ${{ matrix.type }} == module-* && ${{ matrix.language }} == cpp ]]; then
126155
echo "android_build=1" >> $GITHUB_ENV
156+
fi
127157
fi
128158
129159
# Build iOS for only some matrices to skip redundant builds
130-
if [[ ${{ matrix.os }} == macos-14 ]] && [[ ${{ matrix.language }} != js ]]; then
160+
if [[ ${{ matrix.os }} == macos-14 ]]; then
161+
if [[ ${{ matrix.type }} == view-* && ${{ matrix.language }} == java-* ]] || [[ ${{ matrix.type }} == module-* && ${{ matrix.language }} == java-* ]] || [[ ${{ matrix.type }} == module-* && ${{ matrix.language }} == cpp ]]; then
131162
echo "ios_build=1" >> $GITHUB_ENV
163+
fi
132164
fi
133165
134166
- name: Cache turborepo
@@ -180,7 +212,7 @@ jobs:
180212
working-directory: ${{ env.work_dir }}
181213
if: matrix.language == 'js'
182214
run: |
183-
yarn example expo export:web
215+
yarn example expo export --platform web
184216
185217
- name: Install JDK
186218
if: env.android_build == 1 && env.turbo_cache_hit_android != 1

.github/workflows/check-project.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches:
88
- main
9+
merge_group:
10+
types:
11+
- checks_requested
912

1013
jobs:
1114
check-project:

docs/pages/build.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ By default, the code is compiled to support last 2 versions of modern browsers.
156156

157157
In addition, the following options are supported:
158158

159-
- `configFile` & `babelrc` (`boolean`): To customize the babel config used, you can pass the [`configFile`](https://babeljs.io/docs/en/options#configfile) option as `true` if you have a `babel.config.js` or [`babelrc`](https://babeljs.io/docs/en/options#babelrc) option if you have a `.babelrc`. This may break the default configuration, so use these options only if you know what you're doing.
159+
- `configFile` (`boolean` | `string`): To customize the babel config used, you can pass the [`configFile`](https://babeljs.io/docs/en/options#configfile) option as `true` if you have a `babel.config.js` or a path to a custom config file. This will override the default configuration. You can extend the default configuration by using the [`react-native-builder-bob/babel-preset`](https://github.com/callstack/react-native-builder-bob/blob/main/packages/react-native-builder-bob/babel-preset.js) preset.
160+
161+
- `babelrc` (`boolean`): You can set the [`babelrc`](https://babeljs.io/docs/en/options#babelrc) option to `true` to enable using `.babelrc` files.
160162

161163
- `copyFlow` (`boolean`): If your source code is written in [Flow](http://www.typescriptlang.org/), You can specify the `copyFlow` option to copy the source files as `.js.flow` to the output folder. If the `main` entry in `package.json` points to the `index` file in the output folder, the flow type checker will pick these files up to use for type definitions.
162164

0 commit comments

Comments
 (0)