File tree Expand file tree Collapse file tree 5 files changed +13
-18
lines changed
src/main/java/com/example/chattutorial Expand file tree Collapse file tree 5 files changed +13
-18
lines changed Original file line number Diff line number Diff line change 11plugins {
22 id ' com.android.application'
33 id ' kotlin-android'
4+ id ' org.jetbrains.kotlin.plugin.compose'
45}
56
67android {
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
4947dependencies {
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" )
Original file line number Diff line number Diff 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,
Original file line number Diff line number Diff 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,
Original file line number Diff line number Diff line change 11buildscript {
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
Original file line number Diff line number Diff line change 11# Fri Sep 15 12:53:53 KST 2023
22distributionBase =GRADLE_USER_HOME
33distributionPath =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
55zipStoreBase =GRADLE_USER_HOME
66zipStorePath =wrapper/dists
You can’t perform that action at this time.
0 commit comments