Skip to content

Commit 0f1b85d

Browse files
authored
feat: upgrade RN App to 0.87.0 (#447)
1 parent 53b616e commit 0f1b85d

8 files changed

Lines changed: 792 additions & 411 deletions

File tree

apps/AndroidApp/app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ configurations.all {
1414
android {
1515
namespace = "com.callstack.brownfield.android.example"
1616
compileSdk {
17-
version = release(36)
17+
version = release(37)
1818
}
1919

2020
defaultConfig {

apps/RNApp/android/BrownfieldLib/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ react {
7171

7272
android {
7373
namespace = "com.rnapp.brownfieldlib"
74-
compileSdk = 36
74+
compileSdk = 37
7575

7676
defaultConfig {
7777
minSdk = 24
@@ -134,6 +134,6 @@ dependencies {
134134
testImplementation("junit:junit:4.13.2")
135135
androidTestImplementation("androidx.test.ext:junit:1.3.0")
136136
androidTestImplementation("androidx.test.espresso:espresso-core:3.7.0")
137-
api("com.facebook.react:react-android:0.85.0")
138-
api("com.facebook.hermes:hermes-android:250829098.0.10")
137+
api("com.facebook.react:react-android:0.87.0")
138+
api("com.facebook.hermes:hermes-android:250829098.0.16")
139139
}

apps/RNApp/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ android {
102102
// see https://reactnative.dev/docs/signed-apk-android.
103103
signingConfig signingConfigs.debug
104104
minifyEnabled enableProguardInReleaseBuilds
105-
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
105+
proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
106106
}
107107
}
108108
flavorDimensions "env"

apps/RNApp/android/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
buildscript {
22
ext {
3-
buildToolsVersion = "36.0.0"
3+
buildToolsVersion = "37.0.0"
44
minSdkVersion = 24
5-
compileSdkVersion = 36
5+
compileSdkVersion = 37
66
targetSdkVersion = 36
77
ndkVersion = "27.1.12297006"
8-
kotlinVersion = "2.1.20"
8+
kotlinVersion = "2.2.0"
99
}
1010
repositories {
1111
mavenLocal()

apps/RNApp/android/gradle.properties

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@ hermesEnabled=true
4141
# Use this property to enable edge-to-edge display support.
4242
# This allows your app to draw behind system bars for an immersive UI.
4343
# Note: Only works with ReactActivity and should not be used with custom Activity.
44-
edgeToEdgeEnabled=false
44+
edgeToEdgeEnabled=true
4545

4646
# Enable Gradle's build cache
4747
org.gradle.caching=true
48+
49+
# Opt out of built-in kotlin and new DSL behavior that ships with AGP 9.
50+
# Starting from AGP 10.x these opt outs will be removed.
51+
android.builtInKotlin=false
52+
android.newDsl=false

apps/RNApp/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-9.3.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

apps/RNApp/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,22 @@
2727
"@react-navigation/native": "^7.1.33",
2828
"@react-navigation/native-stack": "^7.14.5",
2929
"react": "19.2.3",
30-
"react-native": "0.85.0",
31-
"react-native-safe-area-context": "^5.6.2",
32-
"react-native-screens": "^4.23.0"
30+
"react-native": "0.87.0",
31+
"react-native-safe-area-context": "^5.9.1",
32+
"react-native-screens": "^4.27.0"
3333
},
3434
"devDependencies": {
3535
"@babel/core": "^7.29.6",
3636
"@babel/preset-env": "^7.25.3",
3737
"@babel/runtime": "^7.25.0",
38-
"@react-native-community/cli": "20.1.0",
39-
"@react-native-community/cli-platform-android": "20.1.0",
40-
"@react-native-community/cli-platform-ios": "20.1.0",
41-
"@react-native/babel-preset": "0.85.0",
42-
"@react-native/eslint-config": "0.85.0",
43-
"@react-native/jest-preset": "0.85.0",
44-
"@react-native/metro-config": "0.85.0",
45-
"@react-native/typescript-config": "0.85.0",
38+
"@react-native-community/cli": "20.2.0",
39+
"@react-native-community/cli-platform-android": "20.2.0",
40+
"@react-native-community/cli-platform-ios": "20.2.0",
41+
"@react-native/babel-preset": "0.87.0",
42+
"@react-native/eslint-config": "0.87.0",
43+
"@react-native/jest-preset": "0.87.0",
44+
"@react-native/metro-config": "0.87.0",
45+
"@react-native/typescript-config": "0.87.0",
4646
"@testing-library/react-native": "^13.3.3",
4747
"@types/jest": "^30.0.0",
4848
"@types/react": "^19.2.0",

0 commit comments

Comments
 (0)