Skip to content

Commit 8289f36

Browse files
committed
Update reproducer to latest React Native version
1 parent ef765d7 commit 8289f36

File tree

10 files changed

+474
-429
lines changed

10 files changed

+474
-429
lines changed

ReproducerApp/android/app/src/main/java/com/reproducerapp/MainApplication.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import com.facebook.react.ReactPackage
99
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
1010
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
1111
import com.facebook.react.defaults.DefaultReactNativeHost
12+
import com.facebook.react.soloader.OpenSourceMergedSoMapping
1213
import com.facebook.soloader.SoLoader
1314

1415
class MainApplication : Application(), ReactApplication {
@@ -34,7 +35,7 @@ class MainApplication : Application(), ReactApplication {
3435

3536
override fun onCreate() {
3637
super.onCreate()
37-
SoLoader.init(this, false)
38+
SoLoader.init(this, OpenSourceMergedSoMapping)
3839
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
3940
// If you opted-in for the New Architecture, we load the native entry point for this app.
4041
load()

ReproducerApp/android/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
buildscript {
22
ext {
3-
buildToolsVersion = "34.0.0"
4-
minSdkVersion = 23
5-
compileSdkVersion = 34
3+
buildToolsVersion = "35.0.0"
4+
minSdkVersion = 24
5+
compileSdkVersion = 35
66
targetSdkVersion = 34
77
ndkVersion = "26.1.10909125"
88
kotlinVersion = "1.9.24"

ReproducerApp/android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
3232
# your application. You should enable this flag either if you want
3333
# to write custom TurboModules/Fabric components OR use libraries that
3434
# are providing them.
35-
newArchEnabled=false
35+
newArchEnabled=true
3636

3737
# Use this property to enable or disable the Hermes JS engine.
3838
# If set to false, you will be using JSC instead.
Binary file not shown.

ReproducerApp/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.8-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

ReproducerApp/android/gradlew

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717
#
18+
# SPDX-License-Identifier: Apache-2.0
19+
#
1820

1921
##############################################################################
2022
#
@@ -84,7 +86,8 @@ done
8486
# shellcheck disable=SC2034
8587
APP_BASE_NAME=${0##*/}
8688
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87-
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
89+
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
90+
' "$PWD" ) || exit
8891

8992
# Use the maximum available, or set MAX_FD != -1 to use that value.
9093
MAX_FD=maximum

ReproducerApp/android/gradlew.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
@rem See the License for the specific language governing permissions and
1414
@rem limitations under the License.
1515
@rem
16+
@rem SPDX-License-Identifier: Apache-2.0
17+
@rem
1618

1719
@if "%DEBUG%"=="" @echo off
1820
@rem ##########################################################################

ReproducerApp/ios/ReproducerApp.xcodeproj/project.pbxproj

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@
420420
"$(inherited)",
421421
);
422422
INFOPLIST_FILE = ReproducerAppTests/Info.plist;
423-
IPHONEOS_DEPLOYMENT_TARGET = 13.4;
423+
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
424424
LD_RUNPATH_SEARCH_PATHS = (
425425
"$(inherited)",
426426
"@executable_path/Frameworks",
@@ -444,7 +444,7 @@
444444
BUNDLE_LOADER = "$(TEST_HOST)";
445445
COPY_PHASE_STRIP = NO;
446446
INFOPLIST_FILE = ReproducerAppTests/Info.plist;
447-
IPHONEOS_DEPLOYMENT_TARGET = 13.4;
447+
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
448448
LD_RUNPATH_SEARCH_PATHS = (
449449
"$(inherited)",
450450
"@executable_path/Frameworks",
@@ -470,6 +470,7 @@
470470
CURRENT_PROJECT_VERSION = 1;
471471
ENABLE_BITCODE = NO;
472472
INFOPLIST_FILE = ReproducerApp/Info.plist;
473+
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
473474
LD_RUNPATH_SEARCH_PATHS = (
474475
"$(inherited)",
475476
"@executable_path/Frameworks",
@@ -496,6 +497,7 @@
496497
CLANG_ENABLE_MODULES = YES;
497498
CURRENT_PROJECT_VERSION = 1;
498499
INFOPLIST_FILE = ReproducerApp/Info.plist;
500+
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
499501
LD_RUNPATH_SEARCH_PATHS = (
500502
"$(inherited)",
501503
"@executable_path/Frameworks",
@@ -562,7 +564,7 @@
562564
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
563565
GCC_WARN_UNUSED_FUNCTION = YES;
564566
GCC_WARN_UNUSED_VARIABLE = YES;
565-
IPHONEOS_DEPLOYMENT_TARGET = 13.4;
567+
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
566568
LD_RUNPATH_SEARCH_PATHS = (
567569
/usr/lib/swift,
568570
"$(inherited)",
@@ -628,7 +630,7 @@
628630
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
629631
GCC_WARN_UNUSED_FUNCTION = YES;
630632
GCC_WARN_UNUSED_VARIABLE = YES;
631-
IPHONEOS_DEPLOYMENT_TARGET = 13.4;
633+
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
632634
LD_RUNPATH_SEARCH_PATHS = (
633635
/usr/lib/swift,
634636
"$(inherited)",

ReproducerApp/package.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,19 @@
1111
},
1212
"dependencies": {
1313
"react": "18.3.1",
14-
"react-native": "0.75.4"
14+
"react-native": "0.76.0"
1515
},
1616
"devDependencies": {
17-
"@babel/core": "^7.20.0",
18-
"@babel/preset-env": "^7.20.0",
19-
"@babel/runtime": "^7.20.0",
20-
"@react-native/babel-preset": "0.75.4",
21-
"@react-native/eslint-config": "0.75.4",
22-
"@react-native/metro-config": "0.75.4",
23-
"@react-native/typescript-config": "0.75.4",
17+
"@babel/core": "^7.25.2",
18+
"@babel/preset-env": "^7.25.3",
19+
"@babel/runtime": "^7.25.0",
20+
"@react-native-community/cli": "15.0.0-alpha.2",
21+
"@react-native-community/cli-platform-android": "15.0.0-alpha.2",
22+
"@react-native-community/cli-platform-ios": "15.0.0-alpha.2",
23+
"@react-native/babel-preset": "0.76.0",
24+
"@react-native/eslint-config": "0.76.0",
25+
"@react-native/metro-config": "0.76.0",
26+
"@react-native/typescript-config": "0.76.0",
2427
"@types/react": "^18.2.6",
2528
"@types/react-test-renderer": "^18.0.0",
2629
"babel-jest": "^29.6.3",

0 commit comments

Comments
 (0)