Skip to content

Commit 08f6e2c

Browse files
committed
chore: update project dependencies and configurations for React Native 0.82.1
1 parent a88f03a commit 08f6e2c

File tree

31 files changed

+1328
-2104
lines changed

31 files changed

+1328
-2104
lines changed

.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
#

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@
8383
"@react-native-community/eslint-config": "^3.2.0",
8484
"@release-it/conventional-changelog": "^10.0.1",
8585
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
86-
"@types/jest": "^26.0.0",
87-
"@types/react": "^18.0.12",
86+
"@types/jest": "^29.5.13",
87+
"@types/react": "^19.1.1",
8888
"@types/react-native": "^0.73.0",
8989
"@typescript-eslint/eslint-plugin": "^5.19.0",
9090
"@typescript-eslint/parser": "^5.19.0",
@@ -98,12 +98,12 @@
9898
"metro-react-native-babel-preset": "^0.76.9",
9999
"pod-install": "^0.1.0",
100100
"prettier": "^3.2.5",
101-
"react": "18.3.1",
102-
"react-native": "0.76.9",
101+
"react": "19.1.1",
102+
"react-native": "0.82.1",
103103
"react-native-builder-bob": "^0.18.2",
104104
"release-it": "^16.3.0",
105105
"typedoc": "^0.28.13",
106-
"typescript": "5.4.5"
106+
"typescript": "^5.8.3"
107107
},
108108
"peerDependencies": {
109109
"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"

sample/android/app/src/main/java/com/sendbirdcallsrnsample/MainApplication.kt

Lines changed: 9 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,41 +4,24 @@ import android.app.Application
44
import com.facebook.react.PackageList
55
import com.facebook.react.ReactApplication
66
import com.facebook.react.ReactHost
7-
import com.facebook.react.ReactNativeHost
8-
import com.facebook.react.ReactPackage
9-
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
7+
import com.facebook.react.ReactNativeApplicationEntryPoint.loadReactNative
108
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
11-
import com.facebook.react.defaults.DefaultReactNativeHost
12-
import com.facebook.react.soloader.OpenSourceMergedSoMapping
13-
import com.facebook.soloader.SoLoader
149

1510
class MainApplication : Application(), ReactApplication {
1611

17-
override val reactNativeHost: ReactNativeHost =
18-
object : DefaultReactNativeHost(this) {
19-
override fun getPackages(): List<ReactPackage> =
12+
override val reactHost: ReactHost by lazy {
13+
getDefaultReactHost(
14+
context = applicationContext,
15+
packageList =
2016
PackageList(this).packages.apply {
2117
// Packages that cannot be autolinked yet can be added manually here, for example:
2218
// add(MyReactNativePackage())
23-
}
24-
25-
override fun getJSMainModuleName(): String = "index"
26-
27-
override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
28-
29-
override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
30-
override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
31-
}
32-
33-
override val reactHost: ReactHost
34-
get() = getDefaultReactHost(applicationContext, reactNativeHost)
19+
},
20+
)
21+
}
3522

3623
override fun onCreate() {
3724
super.onCreate()
38-
SoLoader.init(this, OpenSourceMergedSoMapping)
39-
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
40-
// If you opted-in for the New Architecture, we load the native entry point for this app.
41-
load()
42-
}
25+
loadReactNative(this)
4326
}
4427
}

sample/android/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
buildscript {
44
ext {
5-
buildToolsVersion = "35.0.0"
5+
buildToolsVersion = "36.0.0"
66
minSdkVersion = 24
7-
compileSdkVersion = 35
8-
targetSdkVersion = 34
9-
ndkVersion = "26.1.10909125"
10-
kotlinVersion = "1.9.25"
7+
compileSdkVersion = 36
8+
targetSdkVersion = 36
9+
ndkVersion = "27.1.12297006"
10+
kotlinVersion = "2.1.20"
1111
}
1212
repositories {
1313
google()

0 commit comments

Comments
 (0)