Skip to content

Commit ee1a6c9

Browse files
committed
Bump SDK in Java sample. Resolve TODOs
1 parent 637d8fb commit ee1a6c9

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

samplejava/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'kotlin-android'
44
apply plugin: 'kotlin-android-extensions'
55

66
android {
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

3535
dependencies {
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
}

samplejava/src/main/java/com/example/chattutorialjava/ChannelActivity3.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

samplejava/src/main/java/com/example/chattutorialjava/MainActivity.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)