stream-chat-react-native 9.8.3-beta.1 → 9.8.3-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -79,16 +79,13 @@ android {
79
79
  }
80
80
 
81
81
  compileOptions {
82
- // Must match the Kotlin jvmTarget below. AGP 9 (React Native 0.87) fails the build on an
83
- // inconsistent JVM-target between the Java and Kotlin compilation tasks.
82
+ // Must match the Kotlin jvmTarget set on the KotlinCompile tasks below: an inconsistent
83
+ // JVM-target between the Java and Kotlin compilation tasks fails the build. On AGP 9 this
84
+ // is also what AGP's built-in Kotlin derives the Kotlin jvmTarget from.
84
85
  sourceCompatibility JavaVersion.VERSION_17
85
86
  targetCompatibility JavaVersion.VERSION_17
86
87
  }
87
88
 
88
- kotlinOptions {
89
- jvmTarget = "17"
90
- }
91
-
92
89
  sourceSets {
93
90
  main {
94
91
  if (isNewArchitectureEnabled()) {
@@ -141,6 +138,12 @@ tasks.matching { it.name == "preBuild" }.configureEach {
141
138
 
142
139
  tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
143
140
  dependsOn("syncSharedShimmerSources")
141
+ // Set here rather than via `android.kotlinOptions`: that DSL is contributed by the Kotlin
142
+ // Gradle plugin, which is deliberately not applied when AGP registers the `kotlin`
143
+ // extension itself (see the guard at the top of this file). This form works either way.
144
+ compilerOptions {
145
+ jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17
146
+ }
144
147
  }
145
148
 
146
149
  repositories {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stream-chat-react-native",
3
3
  "description": "The official React Native SDK for Stream Chat, a service for building chat applications",
4
- "version": "9.8.3-beta.1",
4
+ "version": "9.8.3-beta.2",
5
5
  "homepage": "https://www.npmjs.com/package/stream-chat-react-native",
6
6
  "author": {
7
7
  "company": "Stream.io Inc",
@@ -30,7 +30,7 @@
30
30
  "dependencies": {
31
31
  "es6-symbol": "^3.1.3",
32
32
  "mime": "^4.0.7",
33
- "stream-chat-react-native-core": "9.8.3-beta.1"
33
+ "stream-chat-react-native-core": "9.8.3-beta.2"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@react-native-camera-roll/camera-roll": ">=7.9.0",