Skip to content

Commit c781987

Browse files
authored
Merge pull request #66 from sendbird/feat/migrate-rn-082
chore: update project dependencies and configurations for React Native 0.82.1
2 parents a88f03a + e771563 commit c781987

35 files changed

+1529
-2174
lines changed

.github/actions/setup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ inputs:
44
node-version:
55
description: 'Node.js version to use'
66
required: false
7-
default: '20.9.0'
7+
default: '20.19.4'
88

99
runs:
1010
using: 'composite'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ project.xcworkspace
3939
.settings
4040
local.properties
4141
android.iml
42+
.kotlin/
4243

4344
# Cocoapods
4445
#

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
presets: ['module:metro-react-native-babel-preset'],
2+
presets: ['module:@react-native/babel-preset'],
33
};

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,15 @@
7878
"access": "public"
7979
},
8080
"devDependencies": {
81+
"@babel/core": "^7.28.5",
8182
"@babel/helper-string-parser": "7.25.9",
8283
"@commitlint/config-conventional": "^11.0.0",
8384
"@react-native-community/eslint-config": "^3.2.0",
85+
"@react-native/babel-preset": "0.82.1",
8486
"@release-it/conventional-changelog": "^10.0.1",
8587
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
86-
"@types/jest": "^26.0.0",
87-
"@types/react": "^18.0.12",
88+
"@types/jest": "^29.5.13",
89+
"@types/react": "^19.1.1",
8890
"@types/react-native": "^0.73.0",
8991
"@typescript-eslint/eslint-plugin": "^5.19.0",
9092
"@typescript-eslint/parser": "^5.19.0",
@@ -95,15 +97,14 @@
9597
"eslint-config-prettier": "^7.0.0",
9698
"eslint-plugin-prettier": "^3.1.3",
9799
"jest": "^29.7.0",
98-
"metro-react-native-babel-preset": "^0.76.9",
99100
"pod-install": "^0.1.0",
100101
"prettier": "^3.2.5",
101-
"react": "18.3.1",
102-
"react-native": "0.76.9",
102+
"react": "19.1.1",
103+
"react-native": "0.82.1",
103104
"react-native-builder-bob": "^0.18.2",
104105
"release-it": "^16.3.0",
105106
"typedoc": "^0.28.13",
106-
"typescript": "5.4.5"
107+
"typescript": "^5.8.3"
107108
},
108109
"peerDependencies": {
109110
"react": "*",

sample/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ build/
2929
local.properties
3030
*.iml
3131
*.hprof
32+
.kotlin/
3233

3334
# node.js
3435
#

sample/Gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@ gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
88
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
99
gem 'xcodeproj', '< 1.26.0'
1010
gem 'concurrent-ruby', '< 1.3.4'
11+
12+
# Ruby 3.4.0 has removed some libraries from the standard library.
13+
gem 'bigdecimal'
14+
gem 'logger'
15+
gem 'benchmark'
16+
gem 'mutex_m'

sample/android/app/_BUCK

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

sample/android/app/build.gradle

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ apply plugin: 'com.google.gms.google-services'
33
apply plugin: "org.jetbrains.kotlin.android"
44
apply plugin: "com.facebook.react"
55

6-
import org.apache.tools.ant.taskdefs.condition.Os
7-
86
/**
97
* This is the configuration block to customize your React Native Android app.
108
* By default you don't need to apply any configuration, just uncomment the lines you need.
@@ -67,14 +65,14 @@ def enableProguardInReleaseBuilds = false
6765
* The preferred build flavor of JavaScriptCore (JSC)
6866
*
6967
* For example, to use the international variant, you can use:
70-
* `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
68+
* `def jscFlavor = io.github.react-native-community:jsc-android-intl:2026004.+`
7169
*
7270
* The international variant includes ICU i18n library and necessary data
7371
* allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
7472
* give correct results when using with locales other than en-US. Note that
7573
* this variant is about 6MiB larger per architecture than default.
7674
*/
77-
def jscFlavor = 'org.webkit:android-jsc:+'
75+
def jscFlavor = 'io.github.react-native-community:jsc-android:2026004.+'
7876

7977
android {
8078
ndkVersion rootProject.ext.ndkVersion

sample/android/app/src/debug/AndroidManifest.xml

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

sample/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
android:roundIcon="@mipmap/ic_launcher_round"
1111
android:allowBackup="false"
1212
android:theme="@style/AppTheme"
13+
android:usesCleartextTraffic="${usesCleartextTraffic}"
1314
android:supportsRtl="true">
1415
<activity
1516
android:name=".MainActivity"

0 commit comments

Comments
 (0)