Skip to content

Commit 9c3d593

Browse files
Updated UI library Android quickstart
1 parent b2fcd5a commit 9c3d593

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

articles/communication-services/quickstarts/ui-library/includes/get-started-chat/android.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ In Android Studio, create a new project.
2828

2929
1. On the **File** menu, select **New** > **New Project**.
3030

31-
1. On **New Project**, select the **Empty Activity** project template.
31+
1. On **New Project**, select the **Empty Views Activity** project template.
3232

33-
:::image type="content" source="../../media/composite-android-new-project.png" alt-text="Screenshot that shows the New Project dialog in Android Studio with Empty Activity selected.":::
33+
:::image type="content" source="../../media/chat-composite-android-new-project.png" alt-text="Screenshot that shows the New Project dialog in Android Studio with Empty Views Activity selected.":::
3434

3535
1. Select **Next**.
3636

37-
1. On **Empty Activity**, name the project **UILibraryQuickStart**. For language, select **Java/Kotlin**. For the minimum SDK, select **API 23: Android 6.0 (Marshmallow)** or later.
37+
1. Name the project **UILibraryQuickStart**. For language, select **Java/Kotlin**. For the minimum SDK, select **API 23: Android 6.0 (Marshmallow)** or later.
3838

3939
1. Select **Finish**.
4040

@@ -64,6 +64,7 @@ To add the repository:
6464

6565
1. In your project Gradle scripts, ensure that the following repositories are added. For Android Studio (2020.\*), `repositories` is in `settings.gradle`, under `dependencyResolutionManagement(Gradle version 6.8 or greater)`. For earlier versions of Android Studio (4.\*), `repositories` is in the project-level `build.gradle`, under `allprojects{}`.
6666

67+
#### [Groovy](#tab/groovy)
6768
```groovy
6869
// dependencyResolutionManagement
6970
repositories {
@@ -74,6 +75,15 @@ To add the repository:
7475
...
7576
}
7677
```
78+
#### [Kotlin](#tab/kotlin)
79+
```kotlin
80+
// dependencyResolutionManagement
81+
repositories {
82+
maven {
83+
url = uri("https://pkgs.dev.azure.com/MicrosoftDeviceSDK/DuoSDK-Public/_packaging/Duo-SDK-Feed/maven/v1")
84+
}
85+
}
86+
```
7787

7888
1. Sync your project with the Gradle files. To sync the project, on the **File** menu, select **Sync Project With Gradle Files**.
7989

@@ -336,7 +346,7 @@ public class MainActivity extends AppCompatActivity {
336346

337347
In Android Studio, build and start the application.
338348

339-
1. Select **Start Experience**.
349+
1. Select **Launch**.
340350
1. The chat client joins the chat thread, and you can start typing and sending messages.
341351
1. If the client can't join the thread and you see `chatJoin` failed errors, verify that your user's access token is valid and that the user was added to the chat thread by REST API call or by using the `az` command-line interface.
342352

106 KB
Loading

0 commit comments

Comments
 (0)