File tree Expand file tree Collapse file tree 8 files changed +14
-16
lines changed
java/com/example/chattutorial Expand file tree Collapse file tree 8 files changed +14
-16
lines changed Original file line number Diff line number Diff line change @@ -47,13 +47,11 @@ android {
4747}
4848
4949dependencies {
50- implementation " io.getstream:stream-chat-android-compose:5.0.1 "
50+ implementation " io.getstream:stream-chat-android-compose:5.0.3 "
5151
5252 implementation " androidx.compose.material:material-icons-extended:$compose_version "
5353 implementation " androidx.compose.ui:ui:$compose_version "
5454 implementation " androidx.compose.material:material:$compose_version "
5555 implementation " androidx.compose.ui:ui-tooling-preview:$compose_version "
5656 implementation " androidx.activity:activity-compose:1.4.0"
57-
58- implementation " com.google.android.material:material:1.5.0"
5957}
Original file line number Diff line number Diff line change 11package com.example.chattutorial
22
33import android.os.Bundle
4+ import androidx.activity.ComponentActivity
45import androidx.activity.compose.setContent
5- import androidx.appcompat.app.AppCompatActivity
66import androidx.compose.ui.res.stringResource
77import io.getstream.chat.android.client.ChatClient
88import io.getstream.chat.android.client.logger.ChatLogLevel
@@ -13,7 +13,7 @@ import io.getstream.chat.android.offline.model.message.attachments.UploadAttachm
1313import io.getstream.chat.android.offline.plugin.configuration.Config
1414import io.getstream.chat.android.offline.plugin.factory.StreamOfflinePluginFactory
1515
16- class MainActivity : AppCompatActivity () {
16+ class MainActivity : ComponentActivity () {
1717
1818 override fun onCreate (savedInstanceState : Bundle ? ) {
1919 super .onCreate(savedInstanceState)
Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ package com.example.chattutorial
33import android.content.Context
44import android.content.Intent
55import android.os.Bundle
6+ import androidx.activity.ComponentActivity
67import androidx.activity.compose.setContent
7- import androidx.appcompat.app.AppCompatActivity
88import io.getstream.chat.android.compose.ui.messages.MessagesScreen
99import io.getstream.chat.android.compose.ui.theme.ChatTheme
1010
11- class MessagesActivity : AppCompatActivity () {
11+ class MessagesActivity : ComponentActivity () {
1212
1313 override fun onCreate (savedInstanceState : Bundle ? ) {
1414 super .onCreate(savedInstanceState)
Original file line number Diff line number Diff line change @@ -3,16 +3,16 @@ package com.example.chattutorial
33import android.content.Context
44import android.content.Intent
55import android.os.Bundle
6+ import androidx.activity.ComponentActivity
67import androidx.activity.compose.setContent
7- import androidx.appcompat.app.AppCompatActivity
88import androidx.compose.foundation.shape.RoundedCornerShape
99import androidx.compose.ui.graphics.RectangleShape
1010import androidx.compose.ui.unit.dp
1111import io.getstream.chat.android.compose.ui.messages.MessagesScreen
1212import io.getstream.chat.android.compose.ui.theme.ChatTheme
1313import io.getstream.chat.android.compose.ui.theme.StreamShapes
1414
15- class MessagesActivity2 : AppCompatActivity () {
15+ class MessagesActivity2 : ComponentActivity () {
1616
1717 override fun onCreate (savedInstanceState : Bundle ? ) {
1818 super .onCreate(savedInstanceState)
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ package com.example.chattutorial
33import android.content.Context
44import android.content.Intent
55import android.os.Bundle
6+ import androidx.activity.ComponentActivity
67import androidx.activity.compose.setContent
78import androidx.activity.viewModels
8- import androidx.appcompat.app.AppCompatActivity
99import androidx.compose.foundation.background
1010import androidx.compose.foundation.layout.Box
1111import androidx.compose.foundation.layout.fillMaxSize
@@ -37,7 +37,7 @@ import io.getstream.chat.android.compose.viewmodel.messages.MessageComposerViewM
3737import io.getstream.chat.android.compose.viewmodel.messages.MessageListViewModel
3838import io.getstream.chat.android.compose.viewmodel.messages.MessagesViewModelFactory
3939
40- class MessagesActivity3 : AppCompatActivity () {
40+ class MessagesActivity3 : ComponentActivity () {
4141
4242 // Build the ViewModel factory
4343 private val factory by lazy {
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ package com.example.chattutorial
33import android.content.Context
44import android.content.Intent
55import android.os.Bundle
6+ import androidx.activity.ComponentActivity
67import androidx.activity.compose.setContent
78import androidx.activity.viewModels
8- import androidx.appcompat.app.AppCompatActivity
99import androidx.compose.foundation.background
1010import androidx.compose.foundation.layout.Box
1111import androidx.compose.foundation.layout.Row
@@ -46,7 +46,7 @@ import io.getstream.chat.android.compose.viewmodel.messages.MessageComposerViewM
4646import io.getstream.chat.android.compose.viewmodel.messages.MessageListViewModel
4747import io.getstream.chat.android.compose.viewmodel.messages.MessagesViewModelFactory
4848
49- class MessagesActivity4 : AppCompatActivity () {
49+ class MessagesActivity4 : ComponentActivity () {
5050
5151 // Build the ViewModel factory
5252 private val factory by lazy {
Original file line number Diff line number Diff line change 1919 <item name =" windowNoTitle" >true</item >
2020 </style >
2121
22- <style name =" Theme.ChatTutorial.AppBarOverlay" parent =" ThemeOverlay.AppCompat .Dark.ActionBar" />
22+ <style name =" Theme.ChatTutorial.AppBarOverlay" parent =" ThemeOverlay.MaterialComponents .Dark.ActionBar" />
2323
24- <style name =" Theme.ChatTutorial.PopupOverlay" parent =" ThemeOverlay.AppCompat .Light" />
24+ <style name =" Theme.ChatTutorial.PopupOverlay" parent =" ThemeOverlay.MaterialComponents .Light" />
2525</resources >
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ buildscript {
77 mavenCentral()
88 }
99 dependencies {
10- classpath " com.android.tools.build:gradle:7.1.2 "
10+ classpath " com.android.tools.build:gradle:7.1.3 "
1111 classpath ' org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10'
1212 }
1313}
You can’t perform that action at this time.
0 commit comments