Skip to content

Commit e981b83

Browse files
author
PetarVelikov
committed
[AND-400] Update Chat SDK to latest version.
1 parent 4e4dfd4 commit e981b83

File tree

5 files changed

+13
-18
lines changed

5 files changed

+13
-18
lines changed

app/build.gradle

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
plugins {
22
id 'com.android.application'
33
id 'kotlin-android'
4+
id 'org.jetbrains.kotlin.plugin.compose'
45
}
56

67
android {
7-
compileSdk 34
8+
compileSdk 35
89
namespace "com.example.chattutorial"
910

1011
defaultConfig {
@@ -36,9 +37,6 @@ android {
3637
buildFeatures {
3738
compose true
3839
}
39-
composeOptions {
40-
kotlinCompilerExtensionVersion compose_compiler_version
41-
}
4240
packagingOptions {
4341
resources {
4442
excludes += '/META-INF/{AL2.0,LGPL2.1}'
@@ -47,11 +45,11 @@ android {
4745
}
4846

4947
dependencies {
50-
implementation "io.getstream:stream-chat-android-compose:6.4.3"
51-
implementation "io.getstream:stream-chat-android-offline:6.4.3"
48+
implementation "io.getstream:stream-chat-android-compose:6.12.1"
49+
implementation "io.getstream:stream-chat-android-offline:6.12.1"
5250

5351
implementation(platform("androidx.compose:compose-bom:2024.06.00"))
54-
implementation("androidx.activity:activity-compose:1.7.2")
52+
implementation("androidx.activity:activity-compose:1.10.1")
5553
implementation("androidx.compose.ui:ui")
5654
implementation("androidx.compose.ui:ui-tooling")
5755
implementation("androidx.compose.runtime:runtime")

app/src/main/java/com/example/chattutorial/MessagesActivity3.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ class MessagesActivity3 : ComponentActivity() {
126126
onDismiss = {
127127
attachmentsPickerViewModel.changeAttachmentState(false)
128128
attachmentsPickerViewModel.dismissAttachments()
129-
}
129+
},
130+
onTabClick = { _, _ -> /* Not needed for this example */ }
130131
)
131132
}
132133

@@ -143,7 +144,6 @@ class MessagesActivity3 : ComponentActivity() {
143144
messageOptions = defaultMessageOptionsState(
144145
selectedMessage,
145146
user,
146-
listViewModel.isInThread,
147147
selectedMessageState.ownCapabilities
148148
),
149149
message = selectedMessage,

app/src/main/java/com/example/chattutorial/MessagesActivity4.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ class MessagesActivity4 : ComponentActivity() {
130130
onDismiss = {
131131
attachmentsPickerViewModel.changeAttachmentState(false)
132132
attachmentsPickerViewModel.dismissAttachments()
133-
}
133+
},
134+
onTabClick = { _, _ -> /* Not needed for this example */ }
134135
)
135136
}
136137

@@ -147,7 +148,6 @@ class MessagesActivity4 : ComponentActivity() {
147148
messageOptions = defaultMessageOptionsState(
148149
selectedMessage,
149150
user,
150-
listViewModel.isInThread,
151151
selectedMessageState.ownCapabilities
152152
),
153153
message = selectedMessage,

build.gradle

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
buildscript {
2-
ext {
3-
compose_version = '1.5.1'
4-
compose_compiler_version = '1.5.3'
5-
}
62
repositories {
73
google()
84
mavenCentral()
95
}
106
dependencies {
11-
classpath "com.android.tools.build:gradle:8.1.1"
12-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.10"
7+
classpath "com.android.tools.build:gradle:8.8.2"
8+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:2.0.21"
9+
classpath "org.jetbrains.kotlin:compose-compiler-gradle-plugin:2.0.21"
1310
}
1411
}
1512

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Fri Sep 15 12:53:53 KST 2023
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)