stream-chat-expo 9.8.2 → 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.
@@ -20,7 +20,13 @@ def isNewArchitectureEnabled() {
20
20
  }
21
21
 
22
22
  apply plugin: "com.android.library"
23
- apply plugin: "kotlin-android"
23
+ // AGP 9 ships built-in Kotlin support and registers the `kotlin` extension
24
+ // itself. Applying the Kotlin plugin on top of it fails configuration with
25
+ // "Cannot add extension with name 'kotlin'". Only apply it when nothing has
26
+ // registered that extension yet.
27
+ if (project.extensions.findByName('kotlin') == null) {
28
+ apply plugin: "kotlin-android"
29
+ }
24
30
 
25
31
  if (isNewArchitectureEnabled()) {
26
32
  apply plugin: "com.facebook.react"
@@ -63,16 +69,13 @@ android {
63
69
  }
64
70
 
65
71
  compileOptions {
66
- // Must match the Kotlin jvmTarget below. AGP 9 (React Native 0.87) fails the build on an
67
- // inconsistent JVM-target between the Java and Kotlin compilation tasks.
72
+ // Must match the Kotlin jvmTarget set on the KotlinCompile tasks below: an inconsistent
73
+ // JVM-target between the Java and Kotlin compilation tasks fails the build. On AGP 9 this
74
+ // is also what AGP's built-in Kotlin derives the Kotlin jvmTarget from.
68
75
  sourceCompatibility JavaVersion.VERSION_17
69
76
  targetCompatibility JavaVersion.VERSION_17
70
77
  }
71
78
 
72
- kotlinOptions {
73
- jvmTarget = "17"
74
- }
75
-
76
79
  sourceSets {
77
80
  main {
78
81
  if (isNewArchitectureEnabled()) {
@@ -122,6 +125,12 @@ tasks.matching { it.name == "preBuild" }.configureEach {
122
125
 
123
126
  tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
124
127
  dependsOn("syncSharedShimmerSources")
128
+ // Set here rather than via `android.kotlinOptions`: that DSL is contributed by the Kotlin
129
+ // Gradle plugin, which is deliberately not applied when AGP registers the `kotlin`
130
+ // extension itself (see the guard at the top of this file). This form works either way.
131
+ compilerOptions {
132
+ jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17
133
+ }
125
134
  }
126
135
 
127
136
  repositories {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stream-chat-expo",
3
3
  "description": "The official Expo SDK for Stream Chat, a service for building chat applications",
4
- "version": "9.8.2",
4
+ "version": "9.8.3-beta.2",
5
5
  "author": {
6
6
  "company": "Stream.io Inc",
7
7
  "name": "Stream.io Inc"
@@ -27,7 +27,7 @@
27
27
  "types": "types/index.d.ts",
28
28
  "dependencies": {
29
29
  "mime": "^4.0.7",
30
- "stream-chat-react-native-core": "9.8.2"
30
+ "stream-chat-react-native-core": "9.8.3-beta.2"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "expo": ">=52.0.0",