Skip to content

Commit 949aad9

Browse files
feat: rn-upgrade to 0.85 (#32)
* feat: rn-upgrade * feat: rn-upgrade
1 parent d4daae2 commit 949aad9

File tree

22 files changed

+1197
-1439
lines changed

22 files changed

+1197
-1439
lines changed

bun.lock

Lines changed: 346 additions & 92 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ gem 'bigdecimal'
1414
gem 'logger'
1515
gem 'benchmark'
1616
gem 'mutex_m'
17+
gem 'nkf'

example/Gemfile.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ DEPENDENCIES
115115
concurrent-ruby (< 1.3.4)
116116
logger
117117
mutex_m
118+
nkf
118119
xcodeproj (< 1.26.0)
119120

120121
RUBY VERSION

example/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ react {
4545

4646
/* Hermes Commands */
4747
// The hermes compiler command to run. By default it is 'hermesc'
48-
// hermesCommand = "$rootDir/my-custom-hermesc/bin/hermesc"
48+
hermesCommand = "$rootDir/../../../node_modules/hermes-compiler/hermesc/%OS-BIN%/hermesc"
4949
//
5050
// The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
5151
// hermesFlags = ["-O", "-output-source-map"]

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

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

example/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"

example/android/app/src/main/java/nitrofetch/example/MainApplication.kt

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,21 @@ import com.facebook.react.PackageList
55
import com.facebook.react.ReactApplication
66
import com.facebook.react.ReactHost
77
import com.facebook.react.ReactNativeApplicationEntryPoint.loadReactNative
8-
import com.facebook.react.ReactNativeHost
9-
import com.facebook.react.ReactPackage
108
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
11-
import com.facebook.react.defaults.DefaultReactNativeHost
129
import com.margelo.nitro.nitrofetch.AutoPrefetcher
1310

1411
class MainApplication : Application(), ReactApplication {
1512

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

3524
override fun onCreate() {
3625
super.onCreate()
1.65 KB
Binary file not shown.

example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

example/android/gradlew

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)