File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
samplejava/src/main/java/com/example/chattutorial
samplekotlin/src/main/java/com/example/chattutorial Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 66import androidx .lifecycle .ViewModelProvider ;
77
88import com .example .chattutorial .databinding .ActivityMainBinding ;
9- import com .getstream .sdk .chat .ChatUI ;
109
1110import org .jetbrains .annotations .Nullable ;
1211
@@ -30,11 +29,9 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
3029 ActivityMainBinding binding = ActivityMainBinding .inflate (getLayoutInflater ());
3130 setContentView (binding .getRoot ());
3231
33- // Step 1 - Set up the client for API calls, the domain for offline storage
34- // and the UI components
32+ // Step 1 - Set up the client for API calls and the domain for offline storage
3533 ChatClient client = new ChatClient .Builder ("b67pax5b2wdq" , getApplicationContext ()).build ();
3634 new ChatDomain .Builder (client , getApplicationContext ()).build ();
37- new ChatUI .Builder (getApplicationContext ()).build ();
3835
3936 // Step 2 - Authenticate and connect the user
4037 User user = new User ();
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import android.os.Bundle
44import androidx.activity.viewModels
55import androidx.appcompat.app.AppCompatActivity
66import com.example.chattutorial.databinding.ActivityMainBinding
7- import com.getstream.sdk.chat.ChatUI
87import io.getstream.chat.android.client.ChatClient
98import io.getstream.chat.android.client.models.Filters
109import io.getstream.chat.android.client.models.User
@@ -24,11 +23,9 @@ class MainActivity : AppCompatActivity() {
2423 binding = ActivityMainBinding .inflate(layoutInflater)
2524 setContentView(binding.root)
2625
27- // Step 1 - Set up the client for API calls, the domain for offline storage
28- // and the UI components
26+ // Step 1 - Set up the client for API calls and the domain for offline storage
2927 val client = ChatClient .Builder (" b67pax5b2wdq" , applicationContext).build()
3028 ChatDomain .Builder (client, applicationContext).build()
31- ChatUI .Builder (applicationContext).build()
3229
3330 // Step 2 - Authenticate and connect the user
3431 val user = User (
You can’t perform that action at this time.
0 commit comments