Skip to content

Commit ded8617

Browse files
authored
Merge pull request #302921 from vhuseinova-msft/vhuseinova/ui-library-quickstarts-updates
UI library quickstarts updates
2 parents 8e3e58c + f05100e commit ded8617

File tree

7 files changed

+37
-22
lines changed

7 files changed

+37
-22
lines changed

articles/communication-services/concepts/ui-library/includes/web-ui-library.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ UI Components support customization to give the components the right feel and lo
5555
| Chat | [Message Thread](https://azure.github.io/communication-ui-library/?path=/docs/components-message-thread--docs) | Container that renders chat messages, system messages, and custom messages |
5656
| | [Send Box](https://azure.github.io/communication-ui-library/?path=/docs/components-sendbox-send-box--docs) | Text input component with a discrete send button |
5757
| | [Rich Text Send Box](https://azure.github.io/communication-ui-library/?path=/docs/components-sendbox-rich-text-send-box--docs) | Rich text input component with formatting options and a discrete send button |
58-
| | [Message Status Indicator](https://azure.github.io/communication-ui-library/?path=/story/components-message-status-indicator--message-status-indicator) | Multi-state read receipt component to show state of sent message |
58+
| | [Message Status Indicator](https://azure.github.io/communication-ui-library/?path=/docs/components-message-status-indicator--docs) | Multi-state read receipt component to show state of sent message |
5959
| | [Typing indicator](https://azure.github.io/communication-ui-library/?path=/docs/components-typing-indicator--docs) | Text component to render the participants who are actively typing on a thread |
6060
| Common | [Participant Item](https://azure.github.io/communication-ui-library/?path=/docs/components-participant-item--docs) | Common component to render a call or chat participant including avatar and display name |
6161
| | [Participant List](https://azure.github.io/communication-ui-library/?path=/docs/components-participant-list--docs) | Common component to render a call or chat participant list including avatar and display name |

articles/communication-services/quickstarts/ui-library/get-started-chat-adaptive-card.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This article shows you how to integrate Adaptive Cards into your chat applicatio
2323

2424
## Explore Adaptive Card examples in Storybook
2525

26-
For more information about adding Adaptive Cards in chat, see [Messages with Adaptive Card](https://aka.ms/acsstorybook).
26+
For more information about adding Adaptive Cards in chat, see [Messages with Adaptive Card](https://azure.github.io/communication-ui-library/?path=/docs/components-message-thread-messagethread-with-adaptive-card-message--docs).
2727

2828

2929
## Clean up resources

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

Lines changed: 16 additions & 6 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,7 +64,8 @@ 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
67+
#### [Groovy](#tab/groovy)
68+
```groovy
6869
// dependencyResolutionManagement
6970
repositories {
7071
...
@@ -73,7 +74,16 @@ To add the repository:
7374
}
7475
...
7576
}
76-
```
77+
```
78+
#### [Kotlin](#tab/kotlin-maven)
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

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,19 @@ In Xcode, create a new project.
4949

5050
target 'UILibraryQuickStart' do
5151
use_frameworks!
52-
pod 'AzureCommunicationUIChat', '1.0.0-beta.4'
52+
pod 'AzureCommunicationUIChat', '1.0.0-beta.5'
5353
end
5454
```
5555

5656
1. Run `pod install --repo-update`.
5757

5858
1. In Xcode, open the generated *xcworkspace* file.
5959

60-
### Turn off Bitcode
60+
### Turn off User Script Sandboxing
6161

62-
In the Xcode project, under **Build Settings**, set the **Enable Bitcode** option to **No**. To find the setting, change the filter from **Basic** to **All** or use the search bar.
62+
In the Xcode project, under **Build Settings**, set the **User Script Sandboxing** option to **No**. To find the setting, change the filter from **Basic** to **All** or use the search bar.
6363

64-
:::image type="content" source="../../media/xcode-bitcode-option.png" alt-text="Screenshot that shows the Build Settings option to turn off Bitcode.":::
64+
:::image type="content" source="../../media/xcode-sandbox-option.png" alt-text="Screenshot that shows the Build Settings option to turn off User Script Sandboxing.":::
6565

6666
## Initialize the composite
6767

@@ -83,9 +83,11 @@ To initialize the composite:
8383
super.viewDidLoad()
8484
8585
let button = UIButton()
86-
button.contentEdgeInsets = UIEdgeInsets(top: 10.0, left: 20.0, bottom: 10.0, right: 20.0)
86+
var configuration = UIButton.Configuration.filled()
87+
configuration.contentInsets = NSDirectionalEdgeInsets(top: 10.0, leading: 20.0, bottom: 10.0, trailing: 20.0)
88+
configuration.baseBackgroundColor = .systemBlue
89+
button.configuration = configuration
8790
button.layer.cornerRadius = 10
88-
button.backgroundColor = .systemBlue
8991
button.setTitle("Start Experience", for: .normal)
9092
button.addTarget(self, action: #selector(startChatComposite), for: .touchUpInside)
9193
106 KB
Loading
45.7 KB
Loading

articles/communication-services/tutorials/file-sharing-tutorial-acs-chat.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ For this quickstart, we're modifying files inside of the `src` folder.
8787

8888
### Install the package
8989

90-
Use the `npm install` command to install the beta Azure Communication Services UI Library for JavaScript.
90+
Use the `npm install` command to install the latest beta Azure Communication Services UI Library for JavaScript.
9191

9292
```bash
9393

94-
npm install @azure/communication-react@1.16.0-beta.1
94+
npm install @azure/communication-react@1.28.0-beta.2
9595

9696
```
9797

@@ -100,8 +100,8 @@ you can most consistently use the API from the core libraries in your applicatio
100100

101101
```bash
102102

103-
npm install @azure/communication-calling@1.24.1-beta.2
104-
npm install @azure/[email protected].1
103+
npm install @azure/communication-calling@1.36.1-beta.1
104+
npm install @azure/[email protected].7
105105

106106
```
107107

@@ -133,9 +133,9 @@ import {
133133
} from '@azure/communication-react';
134134
import React, { useMemo } from 'react';
135135

136-
initializeFileTypeIcons();
137-
138136
function App(): JSX.Element {
137+
initializeFileTypeIcons();
138+
139139
// Common variables
140140
const endpointUrl = 'INSERT_ENDPOINT_URL';
141141
const userId = ' INSERT_USER_ID';
@@ -167,7 +167,7 @@ function App(): JSX.Element {
167167
);
168168
const chatAdapter = useAzureCommunicationChatAdapter(chatAdapterArgs);
169169

170-
if (!!chatAdapter) {
170+
if (chatAdapter) {
171171
return (
172172
<>
173173
<div style={containerStyle}>
@@ -219,6 +219,7 @@ const uploadFileToAzureBlob = async (uploadTask: AttachmentUploadTask) => {
219219
return {
220220
url: 'https://sample.com/sample.jpg', // Download URL of the file.
221221
};
222+
}
222223

223224
```
224225

@@ -290,6 +291,7 @@ const attachmentSelectionHandler: AttachmentSelectionHandler = async (uploadTask
290291
// Allows you to provide a custom error message.
291292
task.notifyUploadFailed('File too big. Select a file under 99 MB.');
292293
}
294+
...
293295
}
294296
}
295297

@@ -318,7 +320,8 @@ const handler = async (attachment: AttachmentMetadata, message?: ChatMessage) =>
318320
};
319321

320322
const customHandler = = async (attachment: AttachmentMetadata, message?: ChatMessage) => {
321-
if (attachment.extension === "pdf") {
323+
const extension = attachment.name.split(".").pop() || "";
324+
if (extension === "pdf") {
322325
return [
323326
{
324327
title: "Custom button",

0 commit comments

Comments
 (0)