Skip to content

Commit 073e134

Browse files
authored
feat: upgrade react native to latest (#101)
This PR represent the first step towards full new arch adoption. Next PRs will update the native code accordingly to fully abandon the old arch.
1 parent d0fc711 commit 073e134

34 files changed

Lines changed: 9132 additions & 10935 deletions

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Feature Request 💡
4+
url: https://github.com/gladiuscode/react-native-awesome-library/discussions/new?category=ideas
5+
about: If you have a feature request, please create a new discussion on GitHub.
6+
- name: Discussions on GitHub 💬
7+
url: https://github.com/gladiuscode/react-native-awesome-library/discussions
8+
about: If this library works as promised but you need help, please ask questions there.

.github/ISSUE_TEMPLATE/🐛-bug-report.md

Lines changed: 0 additions & 35 deletions
This file was deleted.
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: 🐛 Bug report
2+
description: Report a reproducible bug or regression in this library.
3+
labels: [bug]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
# Bug report
9+
10+
👋 Hi!
11+
12+
**Please fill the following carefully before opening a new issue ❗**
13+
*(Your issue may be closed if it doesn't provide the required pieces of information)*
14+
- type: checkboxes
15+
attributes:
16+
label: Before submitting a new issue
17+
description: Please perform simple checks first.
18+
options:
19+
- label: I tested using the latest version of the library, as the bug might be already fixed.
20+
required: true
21+
- label: I tested using a [supported version](https://github.com/reactwg/react-native-releases/blob/main/docs/support.md) of react native.
22+
required: true
23+
- label: I checked for possible duplicate issues, with possible answers.
24+
required: true
25+
- type: textarea
26+
id: summary
27+
attributes:
28+
label: Bug summary
29+
description: |
30+
Provide a clear and concise description of what the bug is.
31+
If needed, you can also provide other samples: error messages / stack traces, screenshots, gifs, etc.
32+
validations:
33+
required: true
34+
- type: input
35+
id: library-version
36+
attributes:
37+
label: Library version
38+
description: What version of the library are you using?
39+
placeholder: "x.x.x"
40+
validations:
41+
required: true
42+
- type: textarea
43+
id: react-native-info
44+
attributes:
45+
label: Environment info
46+
description: Run `react-native info` in your terminal and paste the results here.
47+
render: shell
48+
validations:
49+
required: true
50+
- type: textarea
51+
id: steps-to-reproduce
52+
attributes:
53+
label: Steps to reproduce
54+
description: |
55+
You must provide a clear list of steps and code to reproduce the problem.
56+
value: |
57+
1. …
58+
2. …
59+
validations:
60+
required: true
61+
- type: input
62+
id: reproducible-example
63+
attributes:
64+
label: Reproducible example repository
65+
description: Please provide a link to a repository on GitHub with a reproducible example.
66+
validations:
67+
required: true

.github/ISSUE_TEMPLATE/🔨-feature-request.md

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

.github/actions/setup/action.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ runs:
55
using: composite
66
steps:
77
- name: Setup Node.js
8-
uses: actions/setup-node@v3
8+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
99
with:
1010
node-version-file: .nvmrc
1111

12-
- name: Cache dependencies
12+
- name: Restore dependencies
1313
id: yarn-cache
14-
uses: actions/cache@v3
14+
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
1515
with:
1616
path: |
1717
**/node_modules
@@ -25,3 +25,12 @@ runs:
2525
if: steps.yarn-cache.outputs.cache-hit != 'true'
2626
run: yarn install --immutable
2727
shell: bash
28+
29+
- name: Cache dependencies
30+
if: steps.yarn-cache.outputs.cache-hit != 'true'
31+
uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
32+
with:
33+
path: |
34+
**/node_modules
35+
.yarn/install-state.gz
36+
key: ${{ steps.yarn-cache.outputs.cache-primary-key }}

.github/workflows/pr.yml

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Checkout
10-
uses: actions/checkout@v3
10+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1111

1212
- name: Setup
1313
uses: ./.github/actions/setup
@@ -28,7 +28,7 @@ jobs:
2828
runs-on: ubuntu-latest
2929
steps:
3030
- name: Checkout
31-
uses: actions/checkout@v3
31+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3232

3333
- name: Setup
3434
uses: ./.github/actions/setup
@@ -40,7 +40,7 @@ jobs:
4040
runs-on: ubuntu-latest
4141
steps:
4242
- name: Checkout
43-
uses: actions/checkout@v3
43+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4444

4545
- name: Setup
4646
uses: ./.github/actions/setup
@@ -50,17 +50,19 @@ jobs:
5050

5151
build-android:
5252
runs-on: ubuntu-latest
53+
5354
env:
5455
TURBO_CACHE_DIR: .turbo/android
56+
5557
steps:
5658
- name: Checkout
57-
uses: actions/checkout@v3
59+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
5860

5961
- name: Setup
6062
uses: ./.github/actions/setup
6163

6264
- name: Cache turborepo for Android
63-
uses: actions/cache@v3
65+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
6466
with:
6567
path: ${{ env.TURBO_CACHE_DIR }}
6668
key: ${{ runner.os }}-turborepo-android-${{ hashFiles('yarn.lock') }}
@@ -77,7 +79,7 @@ jobs:
7779
7880
- name: Install JDK
7981
if: env.turbo_cache_hit != 1
80-
uses: actions/setup-java@v3
82+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
8183
with:
8284
distribution: 'zulu'
8385
java-version: '17'
@@ -89,7 +91,7 @@ jobs:
8991
9092
- name: Cache Gradle
9193
if: env.turbo_cache_hit != 1
92-
uses: actions/cache@v3
94+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
9395
with:
9496
path: |
9597
~/.gradle/wrapper
@@ -105,23 +107,28 @@ jobs:
105107
106108
- name: Build example for Android
107109
env:
108-
JAVA_OPTS: '-XX:MaxHeapSize=6g'
110+
JAVA_OPTS: "-XX:MaxHeapSize=6g"
109111
run: |
110112
yarn turbo run build:android --cache-dir="${{ env.TURBO_CACHE_DIR }}"
111113
112114
build-ios:
113-
runs-on: macos-14
115+
runs-on: macos-latest
116+
114117
env:
118+
XCODE_VERSION: 26
115119
TURBO_CACHE_DIR: .turbo/ios
120+
RCT_USE_RN_DEP: 1
121+
RCT_USE_PREBUILT_RNCORE: 1
122+
116123
steps:
117124
- name: Checkout
118-
uses: actions/checkout@v3
125+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
119126

120127
- name: Setup
121128
uses: ./.github/actions/setup
122129

123130
- name: Cache turborepo for iOS
124-
uses: actions/cache@v3
131+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
125132
with:
126133
path: ${{ env.TURBO_CACHE_DIR }}
127134
key: ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock') }}
@@ -136,25 +143,19 @@ jobs:
136143
echo "turbo_cache_hit=1" >> $GITHUB_ENV
137144
fi
138145
139-
- name: Cache cocoapods
146+
- name: Use appropriate Xcode version
140147
if: env.turbo_cache_hit != 1
141-
id: cocoapods-cache
142-
uses: actions/cache@v3
148+
uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
143149
with:
144-
path: |
145-
**/ios/Pods
146-
key: ${{ runner.os }}-cocoapods-${{ hashFiles('example/ios/Podfile.lock') }}
147-
restore-keys: |
148-
${{ runner.os }}-cocoapods-
150+
xcode-version: ${{ env.XCODE_VERSION }}
149151

150152
- name: Install cocoapods
151153
if: env.turbo_cache_hit != 1 && steps.cocoapods-cache.outputs.cache-hit != 'true'
152154
run: |
153-
cd example/ios
154-
pod install
155-
env:
156-
NO_FLIPPER: 1
157-
RCT_NEW_ARCH_ENABLED: 1
155+
cd example
156+
bundle install
157+
bundle exec pod repo update --verbose
158+
bundle exec pod install --project-directory=ios
158159
159160
- name: Build example for iOS
160161
run: |

0 commit comments

Comments
 (0)