Skip to content

Commit 985115a

Browse files
authored
chore: update dev react-native to 0.82 (#299)
1 parent 10d5ed1 commit 985115a

File tree

123 files changed

+14940
-11803
lines changed

Some content is hidden

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

123 files changed

+14940
-11803
lines changed

.github/workflows/native_build.yaml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
java-version: '17'
2222
distribution: 'adopt'
2323

24-
- uses: actions/setup-node@v4
24+
- uses: actions/setup-node@v6
2525
with:
26-
node-version: '18.x'
26+
node-version: 22
2727
cache: 'yarn'
2828
cache-dependency-path: '**/yarn.lock'
2929

@@ -57,9 +57,9 @@ jobs:
5757
steps:
5858
- uses: actions/checkout@v4
5959

60-
- uses: actions/setup-node@v4
60+
- uses: actions/setup-node@v6
6161
with:
62-
node-version: '18.x'
62+
node-version: 22
6363
cache: 'yarn'
6464
cache-dependency-path: '**/yarn.lock'
6565

@@ -74,6 +74,14 @@ jobs:
7474
restore-keys: |
7575
${{ runner.os }}-node-
7676
77+
- name: Cache gem bundle
78+
uses: actions/cache@v4
79+
with:
80+
path: ./ci/vendor
81+
key: ${{ runner.os }}-gembundle-${{ hashFiles('**/Gemfile.lock') }}
82+
restore-keys: |
83+
${{ runner.os }}-gembundle-
84+
7785
- name: Cache cocoapods
7886
uses: actions/cache@v4
7987
with:
@@ -92,8 +100,12 @@ jobs:
92100
yarn install
93101
cd ci/
94102
yarn
95-
cd ios/
96-
pod install
103+
- name: Pods
104+
run: |
105+
cd ci/ios/
106+
bundle install
107+
bundle exec pod update hermes-engine --no-repo-update
108+
bundle exec pod install --verbose
97109
98110
- name: Compile iOS
99111
working-directory: ./ci/ios/
@@ -103,6 +115,7 @@ jobs:
103115
-scheme ci \
104116
-destination generic/platform=iOS \
105117
-configuration Debug \
118+
-verbose \
106119
CODE_SIGN_IDENTITY="" \
107120
CODE_SIGNING_REQUIRED=NO \
108121
CODE_SIGN_ENTITLEMENTS="" \

.github/workflows/test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717

18-
- uses: actions/setup-node@v4
18+
- uses: actions/setup-node@v6
1919
with:
20-
node-version: '18.x'
20+
node-version: 22
2121

2222
- uses: actions/cache@v4
2323
with:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ android.iml
4444
.cxx/
4545
*.keystore
4646
!debug.keystore
47+
.kotlin/
4748

4849
# Cocoapods
4950
#

android/build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ buildscript {
55
repositories {
66
google()
77
mavenCentral()
8-
jcenter()
98
}
109

1110
dependencies {
@@ -53,7 +52,6 @@ android {
5352

5453
repositories {
5554
mavenCentral()
56-
jcenter()
5755
google()
5856
maven { url 'https://jitpack.io' }
5957

@@ -130,7 +128,7 @@ dependencies {
130128
api 'com.facebook.react:react-native:+'
131129
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
132130
api 'com.github.davidliu:audioswitch:89582c47c9a04c62f90aa5e57251af4800a62c9a'
133-
api 'io.github.webrtc-sdk:android:125.6422.02'
131+
api 'io.github.webrtc-sdk:android:137.7151.04'
134132
implementation "io.livekit:noise:2.0.0"
135133
implementation project(':livekit_react-native-webrtc')
136134
implementation "androidx.annotation:annotation:1.9.1"

ci/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ local.properties
3333
.cxx/
3434
*.keystore
3535
!debug.keystore
36+
.kotlin/
3637

3738
# node.js
3839
#

ci/.prettierrc.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
module.exports = {
22
arrowParens: 'avoid',
3-
bracketSameLine: true,
4-
bracketSpacing: false,
53
singleQuote: true,
64
trailingComma: 'all',
75
};

ci/.yarn/releases/yarn-stable-temp.cjs

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

ci/App.tsx

Lines changed: 20 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -5,113 +5,40 @@
55
* @format
66
*/
77

8-
import React from 'react';
9-
import type {PropsWithChildren} from 'react';
8+
import { NewAppScreen } from '@react-native/new-app-screen';
9+
import { StatusBar, StyleSheet, useColorScheme, View } from 'react-native';
1010
import {
11-
SafeAreaView,
12-
ScrollView,
13-
StatusBar,
14-
StyleSheet,
15-
Text,
16-
useColorScheme,
17-
View,
18-
} from 'react-native';
11+
SafeAreaProvider,
12+
useSafeAreaInsets,
13+
} from 'react-native-safe-area-context';
1914

20-
import {
21-
Colors,
22-
DebugInstructions,
23-
Header,
24-
LearnMoreLinks,
25-
ReloadInstructions,
26-
} from 'react-native/Libraries/NewAppScreen';
27-
28-
type SectionProps = PropsWithChildren<{
29-
title: string;
30-
}>;
31-
32-
function Section({children, title}: SectionProps): React.JSX.Element {
15+
function App() {
3316
const isDarkMode = useColorScheme() === 'dark';
17+
3418
return (
35-
<View style={styles.sectionContainer}>
36-
<Text
37-
style={[
38-
styles.sectionTitle,
39-
{
40-
color: isDarkMode ? Colors.white : Colors.black,
41-
},
42-
]}>
43-
{title}
44-
</Text>
45-
<Text
46-
style={[
47-
styles.sectionDescription,
48-
{
49-
color: isDarkMode ? Colors.light : Colors.dark,
50-
},
51-
]}>
52-
{children}
53-
</Text>
54-
</View>
19+
<SafeAreaProvider>
20+
<StatusBar barStyle={isDarkMode ? 'light-content' : 'dark-content'} />
21+
<AppContent />
22+
</SafeAreaProvider>
5523
);
5624
}
5725

58-
function App(): React.JSX.Element {
59-
const isDarkMode = useColorScheme() === 'dark';
60-
61-
const backgroundStyle = {
62-
backgroundColor: isDarkMode ? Colors.darker : Colors.lighter,
63-
};
26+
function AppContent() {
27+
const safeAreaInsets = useSafeAreaInsets();
6428

6529
return (
66-
<SafeAreaView style={backgroundStyle}>
67-
<StatusBar
68-
barStyle={isDarkMode ? 'light-content' : 'dark-content'}
69-
backgroundColor={backgroundStyle.backgroundColor}
30+
<View style={styles.container}>
31+
<NewAppScreen
32+
templateFileName="App.tsx"
33+
safeAreaInsets={safeAreaInsets}
7034
/>
71-
<ScrollView
72-
contentInsetAdjustmentBehavior="automatic"
73-
style={backgroundStyle}>
74-
<Header />
75-
<View
76-
style={{
77-
backgroundColor: isDarkMode ? Colors.black : Colors.white,
78-
}}>
79-
<Section title="Step One">
80-
Edit <Text style={styles.highlight}>App.tsx</Text> to change this
81-
screen and then come back to see your edits.
82-
</Section>
83-
<Section title="See Your Changes">
84-
<ReloadInstructions />
85-
</Section>
86-
<Section title="Debug">
87-
<DebugInstructions />
88-
</Section>
89-
<Section title="Learn More">
90-
Read the docs to discover what to do next:
91-
</Section>
92-
<LearnMoreLinks />
93-
</View>
94-
</ScrollView>
95-
</SafeAreaView>
35+
</View>
9636
);
9737
}
9838

9939
const styles = StyleSheet.create({
100-
sectionContainer: {
101-
marginTop: 32,
102-
paddingHorizontal: 24,
103-
},
104-
sectionTitle: {
105-
fontSize: 24,
106-
fontWeight: '600',
107-
},
108-
sectionDescription: {
109-
marginTop: 8,
110-
fontSize: 18,
111-
fontWeight: '400',
112-
},
113-
highlight: {
114-
fontWeight: '700',
40+
container: {
41+
flex: 1,
11542
},
11643
});
11744

ci/Gemfile

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,16 @@ source 'https://rubygems.org'
33
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
44
ruby ">= 2.6.10"
55

6-
# Cocoapods 1.15 introduced a bug which break the build. We will remove the upper
7-
# bound in the template on Cocoapods with next React Native release.
8-
gem 'cocoapods', '>= 1.13', '< 1.15'
9-
gem 'activesupport', '>= 6.1.7.5', '< 7.1.0'
6+
# Exclude problematic versions of cocoapods and activesupport that causes build failures.
7+
gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
8+
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
9+
gem 'xcodeproj', '< 1.26.0'
10+
gem 'concurrent-ruby', '< 1.3.4'
11+
12+
gem 'xcpretty'
13+
14+
# Ruby 3.4.0 has removed some libraries from the standard library.
15+
gem 'bigdecimal'
16+
gem 'logger'
17+
gem 'benchmark'
18+
gem 'mutex_m'

0 commit comments

Comments
 (0)