Skip to content

Commit 5b0d483

Browse files
committed
Upgrade Expo SDK to v51
1 parent 3498c59 commit 5b0d483

File tree

15 files changed

+2987
-5154
lines changed

15 files changed

+2987
-5154
lines changed

android/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ build/
1010
local.properties
1111
*.iml
1212
*.hprof
13+
.cxx/
1314

1415
# Bundle artifacts
1516
*.jsbundle

android/app/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ dependencies {
221221
implementation("androidx.core:core-splashscreen:1.0.0")
222222
// implementation 'org.web3j:core:4.8.8-android'
223223

224-
implementation("com.facebook.react:flipper-integration")
225224
if (hermesEnabled.toBoolean()) {
226225
implementation("com.facebook.react:hermes-android")
227226
} else {

android/app/src/main/java/com/converse/dev/MainApplication.kt

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,14 @@ package com.converse.dev
22

33
import android.app.Application
44
import android.content.res.Configuration
5-
import androidx.annotation.NonNull
65

76
import com.facebook.react.PackageList
87
import com.facebook.react.ReactApplication
98
import com.facebook.react.ReactNativeHost
109
import com.facebook.react.ReactPackage
1110
import com.facebook.react.ReactHost
12-
import com.facebook.react.config.ReactFeatureFlags
1311
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
14-
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
1512
import com.facebook.react.defaults.DefaultReactNativeHost
16-
import com.facebook.react.flipper.ReactNativeFlipper
1713
import com.facebook.soloader.SoLoader
1814

1915
import expo.modules.ApplicationLifecycleDispatcher
@@ -40,21 +36,15 @@ class MainApplication : Application(), ReactApplication {
4036
)
4137

4238
override val reactHost: ReactHost
43-
get() = getDefaultReactHost(this.applicationContext, reactNativeHost)
39+
get() = ReactNativeHostWrapper.createReactHost(applicationContext, reactNativeHost)
4440

4541
override fun onCreate() {
4642
super.onCreate()
4743
SoLoader.init(this, false)
48-
// if (!BuildConfig.REACT_NATIVE_UNSTABLE_USE_RUNTIME_SCHEDULER_ALWAYS) {
49-
// ReactFeatureFlags.unstable_useRuntimeSchedulerAlways = false
50-
// }
5144
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
5245
// If you opted-in for the New Architecture, we load the native entry point for this app.
5346
load()
5447
}
55-
if (BuildConfig.DEBUG) {
56-
ReactNativeFlipper.initializeFlipper(this, reactNativeHost.reactInstanceManager)
57-
}
5848
ApplicationLifecycleDispatcher.onApplicationCreate(this)
5949
}
6050

android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ buildscript {
66
minSdkVersion = Integer.parseInt(findProperty('android.minSdkVersion') ?: '23')
77
compileSdkVersion = 34
88
targetSdkVersion = 34
9-
kotlinVersion = "1.8.0"
9+
kotlinVersion = "1.9.23"
1010

11-
ndkVersion = "25.1.8937393"
11+
ndkVersion = "26.1.10909125"
1212
}
1313
repositories {
1414
google()

android/gradlew.bat

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ set JAVA_EXE=java.exe
4343
%JAVA_EXE% -version >NUL 2>&1
4444
if %ERRORLEVEL% equ 0 goto execute
4545

46-
echo.
47-
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48-
echo.
49-
echo Please set the JAVA_HOME variable in your environment to match the
50-
echo location of your Java installation.
46+
echo. 1>&2
47+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
48+
echo. 1>&2
49+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
50+
echo location of your Java installation. 1>&2
5151

5252
goto fail
5353

@@ -57,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
5757

5858
if exist "%JAVA_EXE%" goto execute
5959

60-
echo.
61-
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
62-
echo.
63-
echo Please set the JAVA_HOME variable in your environment to match the
64-
echo location of your Java installation.
60+
echo. 1>&2
61+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
62+
echo. 1>&2
63+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
64+
echo location of your Java installation. 1>&2
6565

6666
goto fail
6767

ios/Converse.xcodeproj/project.pbxproj

Lines changed: 110 additions & 106 deletions
Large diffs are not rendered by default.

ios/Converse.xcworkspace/xcshareddata/swiftpm/Package.resolved

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

ios/Converse/AppDelegate.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
1818

1919
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
2020
{
21-
return [self getBundleURL];
21+
return [self bundleURL];
2222
}
2323

24-
- (NSURL *)getBundleURL
24+
- (NSURL *)bundleURL
2525
{
2626
#if DEBUG
2727
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];

ios/Converse/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
<string>SplashScreen</string>
8585
<key>UIRequiredDeviceCapabilities</key>
8686
<array>
87-
<string>armv7</string>
87+
<string>arm64</string>
8888
</array>
8989
<key>UIRequiresFullScreen</key>
9090
<false/>

ios/Podfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,9 @@ target 'Converse' do
3838
:hermes_enabled => true,
3939
# An absolute path to your application root.
4040
:app_path => "#{Pod::Config.instance.installation_root}/..",
41-
#
42-
# Uncomment to opt-in to using Flipper
43-
# Note that if you have use_frameworks! enabled, Flipper will not work
44-
# :flipper_configuration => !ENV['CI'] ? FlipperConfiguration.enabled : FlipperConfiguration.disabled,
41+
# Temporarily disable privacy file aggregation by default, until React
42+
# Native 0.74.2 is released with fixes.
43+
:privacy_file_aggregation_enabled => podfile_properties['apple.privacyManifestAggregationEnabled'] == 'true',
4544
)
4645

4746
pre_install do |installer|
@@ -59,7 +58,8 @@ target 'Converse' do
5958
react_native_post_install(
6059
installer,
6160
config[:reactNativePath],
62-
:mac_catalyst_enabled => false
61+
:mac_catalyst_enabled => false,
62+
:ccache_enabled => podfile_properties['apple.ccacheEnabled'] == 'true',
6363
)
6464

6565
# Reconfigure the pods, update deployment target and signing settings

0 commit comments

Comments
 (0)