File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed
src/main/java/com/example/chattutorialjava Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ apply plugin: 'kotlin-android'
44apply plugin : ' kotlin-android-extensions'
55
66android {
7- compileSdkVersion 29
7+ compileSdkVersion 30
88 defaultConfig {
99 applicationId " com.example.chattutorial"
1010 minSdkVersion 21
@@ -23,8 +23,8 @@ android {
2323 }
2424
2525 compileOptions {
26- sourceCompatibility = JavaVersion . VERSION_1_8
27- targetCompatibility = JavaVersion . VERSION_1_8
26+ sourceCompatibility JavaVersion . VERSION_1_8
27+ targetCompatibility JavaVersion . VERSION_1_8
2828 }
2929
3030 packagingOptions {
@@ -34,11 +34,11 @@ android {
3434
3535dependencies {
3636 implementation " org.jetbrains.kotlin:kotlin-stdlib:1.4.10"
37- implementation " com.github.getstream:stream-chat-android:4.3 .1-beta-3 "
37+ implementation " com.github.getstream:stream-chat-android:4.4 .1-alpha "
3838 implementation " io.coil-kt:coil:1.0.0"
3939
4040 implementation " androidx.lifecycle:lifecycle-viewmodel:2.3.0-beta1"
4141 implementation " androidx.appcompat:appcompat:1.2.0"
42- implementation " androidx.constraintlayout:constraintlayout:2.0.2 "
42+ implementation " androidx.constraintlayout:constraintlayout:2.0.4 "
4343 implementation ' androidx.activity:activity-ktx:1.1.0'
4444}
Original file line number Diff line number Diff line change @@ -111,10 +111,9 @@ public void handleOnBackPressed() {
111111 typingHeader .setText (nobodyTyping );
112112
113113 // Obtain a ChannelController
114- // TODO replace getWatchChannel with getChannelController
115114 ChannelController channelController =
116115 ChatDomain .instance ().getUseCases ()
117- .getWatchChannel ().invoke (cid , 0 )
116+ .getGetChannelController ().invoke (cid )
118117 .execute ().data ();
119118
120119 // Observe typing users
Original file line number Diff line number Diff line change @@ -54,8 +54,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
5454 );
5555 ChannelsViewModelFactory factory = new ChannelsViewModelFactory (
5656 filter ,
57- ChannelsViewModel .DEFAULT_SORT ,
58- 30 // TODO remove
57+ ChannelsViewModel .DEFAULT_SORT
5958 );
6059 ChannelsViewModel channelsViewModel = new ViewModelProvider (this , factory ).get (ChannelsViewModel .class );
6160
You can’t perform that action at this time.
0 commit comments