Skip to content

Commit 75c81da

Browse files
authored
Merge pull request #70 from GetStream/update/4444-switch-to-the-new-environment
[4444] Update the tutorial to use the new environment
2 parents 6e4fb60 + 042c54b commit 75c81da

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
4444
);
4545

4646
// Step 2 - Set up the client for API calls with the plugin for offline storage
47-
ChatClient client = new ChatClient.Builder("b67pax5b2wdq", getApplicationContext())
47+
ChatClient client = new ChatClient.Builder("uun7ywwamhs9", getApplicationContext())
4848
.withPlugin(streamOfflinePluginFactory)
4949
.logLevel(ChatLogLevel.ALL) // Set to NOTHING in prod
5050
.build();
@@ -57,7 +57,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
5757

5858
client.connectUser(
5959
user,
60-
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoidHV0b3JpYWwtZHJvaWQifQ.NhEr0hP9W9nwqV7ZkdShxvi02C5PR7SJE7Cs4y7kyqg"
60+
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoidHV0b3JpYWwtZHJvaWQifQ.WwfBzU1GZr0brt_fXnqKdKhz3oj0rbDUm2DqJO_SS5U"
6161
).enqueue();
6262

6363
// Step 4 - Set the channel list filter and order

samplekotlin/src/main/java/com/example/chattutorial/MainActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class MainActivity : AppCompatActivity() {
3838
)
3939

4040
// Step 2 - Set up the client for API calls with the plugin for offline storage
41-
val client = ChatClient.Builder("b67pax5b2wdq", applicationContext)
41+
val client = ChatClient.Builder("uun7ywwamhs9", applicationContext)
4242
.withPlugin(offlinePluginFactory)
4343
.logLevel(ChatLogLevel.ALL) // Set to NOTHING in prod
4444
.build()
@@ -51,7 +51,7 @@ class MainActivity : AppCompatActivity() {
5151
)
5252
client.connectUser(
5353
user = user,
54-
token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoidHV0b3JpYWwtZHJvaWQifQ.NhEr0hP9W9nwqV7ZkdShxvi02C5PR7SJE7Cs4y7kyqg"
54+
token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoidHV0b3JpYWwtZHJvaWQifQ.WwfBzU1GZr0brt_fXnqKdKhz3oj0rbDUm2DqJO_SS5U"
5555
).enqueue()
5656

5757
// Step 4 - Set the channel list filter and order

0 commit comments

Comments
 (0)