Skip to content

Commit 7881e22

Browse files
build: ⬆️ upgrade react native to 0.82.1
1 parent e980fbb commit 7881e22

File tree

11 files changed

+41439
-631
lines changed

11 files changed

+41439
-631
lines changed

android/app/src/main/java/com/rnstartermedusa/MainApplication.kt

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,20 @@ 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
10-
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
118
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
12-
import com.facebook.react.defaults.DefaultReactNativeHost
13-
import com.facebook.react.soloader.OpenSourceMergedSoMapping
14-
import com.facebook.soloader.SoLoader
159

1610
class MainApplication : Application(), ReactApplication {
1711

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

3723
override fun onCreate() {
3824
super.onCreate()

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.0.0-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

android/gradlew

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
#
4-
# Copyright © 2015-2021 the original authors.
4+
# Copyright © 2015 the original authors.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

android/hs_err_pid22264.log

Lines changed: 3050 additions & 0 deletions
Large diffs are not rendered by default.

android/replay_pid22264.log

Lines changed: 38030 additions & 0 deletions
Large diffs are not rendered by default.

app/data/cart-context.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ export const CartProvider = ({ children }: CartProviderProps) => {
228228
return true;
229229
}
230230
return false;
231-
} catch (err) {
231+
} catch {
232232
return false;
233233
}
234234
};

app/data/customer-context.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const CustomerProvider = ({ children }: CustomerProviderProps) => {
3737
const { customer: existingCustomer } =
3838
await apiClient.store.customer.retrieve();
3939
setCustomer(existingCustomer);
40-
} catch (error) {
40+
} catch {
4141
// Customer isn't logged in
4242
setCustomer(undefined);
4343
}

ios/Podfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ target 'RnStarterMedusa' do
2424
)
2525

2626
post_install do |installer|
27-
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
2827
react_native_post_install(
2928
installer,
3029
config[:reactNativePath],

ios/RnStarterMedusa/info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5+
<key>CADisableMinimumFrameDurationOnPhone</key>
6+
<true/>
57
<key>CFBundleDevelopmentRegion</key>
68
<string>en</string>
79
<key>CFBundleDisplayName</key>

0 commit comments

Comments
 (0)