Skip to content

Commit 387b041

Browse files
authored
Merge pull request #3788 from GetStream/develop
Next Release
2 parents 675b4fc + 824818b commit 387b041

73 files changed

Lines changed: 2147 additions & 1470 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎examples/ExpoMessaging/tsconfig.json‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@
22
"extends": ["expo/tsconfig.base", "@stream-io/typescript-config/base.json"],
33
"compilerOptions": {
44
"paths": {
5-
"@/*": ["./*"]
5+
"@/*": ["./*"],
6+
// This workspace keeps its own React Native (Expo 57 -> RN 0.86) while the SDK workspace is on
7+
// RN 0.87, and `nmHoistingLimits: workspaces` means both copies exist. Without this, the SDK's
8+
// declarations resolve React Native relative to themselves, so `ColorValue` from the SDK's
9+
// theme and `ColorValue` in this app's `ViewStyle` are two different nominal types. Pinning
10+
// the whole program to this workspace's copy models what a real consumer sees (exactly one
11+
// react-native) and, usefully, type-checks the SDK against RN 0.86.
12+
"react-native": ["./node_modules/react-native"],
13+
"react-native/*": ["./node_modules/react-native/*"]
614
}
715
},
816
"include": ["**/*.ts", "**/*.tsx"]

‎examples/SampleApp/android/app/build.gradle‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,10 @@ android {
120120
// see https://reactnative.dev/docs/signed-apk-android.
121121
signingConfig signingConfigs.debug
122122
minifyEnabled enableProguardInReleaseBuilds
123-
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
123+
// AGP 9 (React Native 0.87) rejects "proguard-android.txt" because it bundles
124+
// -dontoptimize, which blocks most R8 optimisations. The optimizing variant is the
125+
// supported replacement.
126+
proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
124127
}
125128
}
126129
}

‎examples/SampleApp/android/build.gradle‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import org.apache.tools.ant.taskdefs.condition.Os
33

44
buildscript {
55
ext {
6-
buildToolsVersion = "36.0.0"
6+
buildToolsVersion = "37.0.0"
77
minSdkVersion = 24
8-
compileSdkVersion = 36
8+
compileSdkVersion = 37
99
targetSdkVersion = 36
1010
ndkVersion = "27.1.12297006"
11-
kotlinVersion = "2.1.20"
11+
kotlinVersion = "2.2.0"
1212
androidXCore = "1.0.2"
1313
}
1414
repositories {

‎examples/SampleApp/android/gradle.properties‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ hermesEnabled=true
4343
# Note: Only works with ReactActivity and should not be used with custom Activity.
4444
edgeToEdgeEnabled=true
4545

46+
# Opt out of the built-in Kotlin support and the new DSL that ship with AGP 9, which React Native
47+
# 0.87 adopts in a transitional configuration. Starting with AGP 10.x these opt-outs are removed.
48+
android.builtInKotlin=false
49+
android.newDsl=false
50+
4651
# disables the check for multiple instances for gesture handler
4752
# this is needed for react-native-gesture-handler to be both a devDep of core and be a dep on the expo sample app
4853
disableMultipleInstancesCheck=true

‎examples/SampleApp/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

0 commit comments

Comments
 (0)