Skip to content

Commit de2b085

Browse files
authored
Merge pull request #422 from dyte-io/chore/prettier
chore: run prettier
2 parents d909cd2 + 5f66c77 commit de2b085

File tree

390 files changed

+5426
-4601
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

390 files changed

+5426
-4601
lines changed

Diff for: .github/ISSUE_TEMPLATE/feature-request.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ body:
1818
attributes:
1919
label: Proposed solution (optional)
2020
description: |
21-
e.g. propose how the configuration of the new feature could look
21+
e.g. propose how the configuration of the new feature could look

Diff for: .github/PULL_REQUEST_TEMPLATE.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Describe your PR here.
77
Closes #1
88

99
### Before submitting the PR, please take the following into consideration
10+
1011
- [ ] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. If you don't have an issue, please create one.
1112
- [ ] Prefix your PR title with `feat: `, `fix: `, `chore: `, `docs:`, or `refactor:`.
1213
- [ ] The description should clearly illustrate what problems it solves.

Diff for: .github/workflows/lint.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ jobs:
99
lint:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
13-
- uses: actions/setup-node@v2
14-
with:
15-
node-version: 16
16-
registry-url: https://registry.npmjs.org/
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-node@v2
14+
with:
15+
node-version: 16
16+
registry-url: https://registry.npmjs.org/
1717

18-
- name: npm install, lint
19-
run: |
20-
npm install
21-
npm run lint
18+
- name: npm install, lint
19+
run: |
20+
npm install
21+
npm run lint

Diff for: CHANGELOG.md

+494-557
Large diffs are not rendered by default.

Diff for: CODE_OF_CONDUCT.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Code of Conduct
22

3-
All Dyte repos are governed by our Community Participation Guidelines, available at: https://dyte.notion.site/dyte/Dyte-Community-Participation-Guidelines-CPG-4b3af58fdf3545c2a3065773a9154728
3+
All Dyte repos are governed by our Community Participation Guidelines, available at: https://dyte.notion.site/dyte/Dyte-Community-Participation-Guidelines-CPG-4b3af58fdf3545c2a3065773a9154728

Diff for: bin/ui-kit/component-docs.cjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ for (const component of components) {
100100

101101
writeMDXFile(
102102
`${basePaths.react}/${tag}.mdx`,
103-
generateFile(component, 'react')
103+
generateFile(component, 'react'),
104104
);
105105

106106
writeMDXFile(
107107
`${basePaths.angular}/${tag}.mdx`,
108-
generateFile(component, 'angular')
108+
generateFile(component, 'angular'),
109109
);
110110
}

Diff for: bin/ui-kit/utils.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const { prettier: prettierConfig } = require('../../package.json');
1010
function writeMDXFile(path, text) {
1111
return fs.writeFileSync(
1212
path,
13-
prettier.format(text, { ...prettierConfig, parser: 'mdx' })
13+
prettier.format(text, { ...prettierConfig, parser: 'mdx' }),
1414
);
1515
}
1616

Diff for: bin/update-metadata.cjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ for (const section of Object.keys(prefixes)) {
4242
const headingMatch = content.match(/^# (.*)/m);
4343
if (!headingMatch && !existingTitle) {
4444
console.log(
45-
`File ${filePath} does not have an H1 heading. Skipping...`
45+
`File ${filePath} does not have an H1 heading. Skipping...`,
4646
);
4747
continue;
4848
}
@@ -66,7 +66,7 @@ for (const section of Object.keys(prefixes)) {
6666

6767
const updatedFileContent = grayMatter.stringify(
6868
content + updatedContent.join('\n'),
69-
data
69+
data,
7070
);
7171
fs.writeFileSync(filePath, updatedFileContent);
7272

Diff for: cspell.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
"waitlisted",
2222
"htmlui"
2323
]
24-
}
24+
}

Diff for: docs/android-core/Introduction.mdx

+16-16
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,33 @@ import ProductSection from '/docs/partials/_product-section.mdx';
88

99
# Introduction
1010

11-
The Dyte Core SDK is designed to provide you with an easy way to incorporate live video, voice, livestream and chat capabilities
12-
into your Android apps. The Core SDK acts as a data-only layer. It provides simple APIs offering high-level primitives and
11+
The Dyte Core SDK is designed to provide you with an easy way to incorporate live video, voice, livestream and chat capabilities
12+
into your Android apps. The Core SDK acts as a data-only layer. It provides simple APIs offering high-level primitives and
1313
abstracting away complex media and networking optimizations.
1414

1515
## Why Core SDK?
1616

17-
The Core SDK was developed with a user-friendly approach to eliminate the complexity of managing streams. Unlike traditional
18-
SDKs that require knowledge of WebRTC functioning, Dyte's Core SDK provides a simple API that abstracts out the complexity,
19-
making it easier for developers to use. For instance, enabling video with Dyte's Core SDK is as easy as calling
17+
The Core SDK was developed with a user-friendly approach to eliminate the complexity of managing streams. Unlike traditional
18+
SDKs that require knowledge of WebRTC functioning, Dyte's Core SDK provides a simple API that abstracts out the complexity,
19+
making it easier for developers to use. For instance, enabling video with Dyte's Core SDK is as easy as calling
2020
`meeting.localUser.enableVideo()`.
2121

2222
## Utility Modules
2323

24-
The Core SDK includes various modules for in-call utilities like chat, polls, and recording that enable building a UI on top of
24+
The Core SDK includes various modules for in-call utilities like chat, polls, and recording that enable building a UI on top of
2525
it. The following are the core SDK modules:
2626

27-
- **meeting.localUser**: This consists of properties and methods corresponding to the current (local) user, such as enabling or
28-
disabling their audio and video, getting a list of media devices or changing the device, or sharing your mobile screen.
29-
- **meeting.participants**: Use this module to get useful information about the other participants that are present in the
30-
meeting. A host can use this module for access control. For example, the host can mute or kick a participant.
27+
- **meeting.localUser**: This consists of properties and methods corresponding to the current (local) user, such as enabling or
28+
disabling their audio and video, getting a list of media devices or changing the device, or sharing your mobile screen.
29+
- **meeting.participants**: Use this module to get useful information about the other participants that are present in the
30+
meeting. A host can use this module for access control. For example, the host can mute or kick a participant.
3131
- **meeting.chat**: It provides the methods to integrate chat features such as sending/receiving text, images, and files.
32-
- **meeting.polls**: Meetings can have polls. This module lets you perform actions related to polls, that is create and manage
33-
a poll within a meeting.
34-
- **meeting.recording**: When a meeting needs to be recorded, this module can be used. It lets you start or stop a recording,
35-
and get the current status of an ongoing recording.
36-
- **meeting.meta**: This object consists of all the metadata related to the current meeting, such as the title, the timestamp
37-
of when it started, and more.
32+
- **meeting.polls**: Meetings can have polls. This module lets you perform actions related to polls, that is create and manage
33+
a poll within a meeting.
34+
- **meeting.recording**: When a meeting needs to be recorded, this module can be used. It lets you start or stop a recording,
35+
and get the current status of an ongoing recording.
36+
- **meeting.meta**: This object consists of all the metadata related to the current meeting, such as the title, the timestamp
37+
of when it started, and more.
3838
- **meeting.plugins**: Provides the list of available plugins and active plugins. Use this module to enable or disable plugins as needed.
3939

4040
<head>

Diff for: docs/android-core/chat/introduction.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ variables.
7171

7272
<head>
7373
<title>Android Core Introducing chat</title>
74-
</head>
74+
</head>

Diff for: docs/android-core/chat/receiving-chat-messages.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ The `onMessageRateLimitReset()` method will be called when the rate limit for se
4141

4242
<head>
4343
<title>Android Core Receiving chat</title>
44-
</head>
44+
</head>

Diff for: docs/android-core/chat/sending-a-chat-message.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@ when (err) {
7777

7878
<head>
7979
<title>Android Core Sending chat</title>
80-
</head>
80+
</head>

Diff for: docs/android-core/livestream/dyte-livestream-listener.mdx

+4-1
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,8 @@ This event is triggered when a stage request is rejected. The `peer` object cont
116116

117117
<head>
118118
<title>Android Core Livestream Event Listeners</title>
119-
<meta name="description" content="Explore the functionalities and implementation of the Android Livestream Listener in Dyte documentation."/>
119+
<meta
120+
name="description"
121+
content="Explore the functionalities and implementation of the Android Livestream Listener in Dyte documentation."
122+
/>
120123
</head>

Diff for: docs/android-core/livestream/dyte-livestream-object.mdx

+4-1
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,8 @@ dyteMobileClient.livestream.rejectAll();
7878

7979
<head>
8080
<title>Android Core Livestream Objects and Methods</title>
81-
<meta name="description" content="Learn about the Android Livestream Object and its usage for effective livestream integration in your Android applications."/>
81+
<meta
82+
name="description"
83+
content="Learn about the Android Livestream Object and its usage for effective livestream integration in your Android applications."
84+
/>
8285
</head>

Diff for: docs/android-core/livestream/introduction.mdx

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,8 @@ The foundation of Dyte's livestreaming is based on a stage, which can be accesse
1717

1818
<head>
1919
<title>Android Core Introduction</title>
20-
<meta name="description" content="Get started with Android Livestreaming through this comprehensive introduction guide in Dyte Docs."/>
20+
<meta
21+
name="description"
22+
content="Get started with Android Livestreaming through this comprehensive introduction guide in Dyte Docs."
23+
/>
2124
</head>

Diff for: docs/android-core/local-user/events.mdx

-3
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ meeting.addSelfEventsListener(object : DyteSelfEventsListener {
7474
})
7575
```
7676

77-
7877
</TabItem>
7978

8079
<TabItem value="java" label="Java" default>
@@ -91,7 +90,6 @@ meeting.addSelfEventsListener(new DyteSelfEventsListener() {
9190
});
9291
```
9392

94-
9593
</TabItem>
9694
</Tabs>
9795

@@ -119,7 +117,6 @@ WaitListStatus waitListStatus = meeting.localUser.getWaitListStatus();
119117
</TabItem>
120118
</Tabs>
121119

122-
123120
You can listen to those changes in `onWaitListStatusUpdate()` callbacks
124121

125122
<Tabs groupId="android-core-local-user">

Diff for: docs/android-core/local-user/introduction.mdx

-4
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ DyteMeetingInfoV2 meetingInfo = new DyteMeetingInfoV2(
6363
</TabItem>
6464
</Tabs>
6565

66-
6766
## Get local user video view
6867

6968
To display the `localUser` preview in a view, utilize the `getSelfPreview()` method on `localUser`. This method provides a View that can be added to any `ViewGroup` in Android.
@@ -141,7 +140,6 @@ meeting.localUser.enableAudio(error -> null);
141140
</TabItem>
142141
</Tabs>
143142

144-
145143
## Enable/disable camera
146144

147145
Enable/disable your camera in the meeting using `disableVideo()` and `enableVideo()` methods, and check the current status with `videoEnabled`.
@@ -177,13 +175,11 @@ meeting.localUser.enableVideo(error -> null);
177175
</TabItem>
178176
</Tabs>
179177

180-
181178
## Enable / Disable Screen share
182179

183180
:::tip Note
184181
To use screenshare on Android devices running Android API 14 and above, you will need to declare the following permission in your app's AndroidManifest.xml.
185182

186-
187183
`<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />`
188184

189185
Adding above permission will require you to do extra steps on Google Play Console while submitting the app. For more information please refer [this](https://support.google.com/googleplay/android-developer/answer/13392821?hl=en#declare).

Diff for: docs/android-core/local-user/manage-media-devices.mdx

+4-1
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,8 @@ meeting.getLocalUser().setVideoDevice(device);
8989

9090
<head>
9191
<title>Android Core Manage Media Devices</title>
92-
<meta name="description" content="Effectively manage media devices on Android using Dyte's documentation, ensuring seamless user experiences."/>
92+
<meta
93+
name="description"
94+
content="Effectively manage media devices on Android using Dyte's documentation, ensuring seamless user experiences."
95+
/>
9396
</head>

Diff for: docs/android-core/local-user/manage-permissions.mdx

+4-1
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,8 @@ meeting.addSelfEventsListener(new : DyteSelfEventsListener() {
7676

7777
<head>
7878
<title>Android Core Media Permissions</title>
79-
<meta name="description" content="Learn how to manage permissions in your Android application for a secure and controlled user experience with Dyte Docs."/>
79+
<meta
80+
name="description"
81+
content="Learn how to manage permissions in your Android application for a secure and controlled user experience with Dyte Docs."
82+
/>
8083
</head>

Diff for: docs/android-core/participants/events.mdx

+22-31
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ Triggers an event when any participant leaves the meeting.
6161
}
6262
```
6363

64-
6564
</TabItem>
6665

6766
<TabItem value="java" label="Java" default>
@@ -74,11 +73,9 @@ Triggers an event when any participant leaves the meeting.
7473
};
7574
```
7675

77-
7876
</TabItem>
7977
</Tabs>
8078

81-
8279
### Participants update
8380

8481
Triggers an event whenever there is any change in the `meeting.participants` object. This includes any updates to participant lists or changes in individual participant within those lists.
@@ -117,13 +114,13 @@ Triggers an event when any participant starts / stops video.
117114
<Tabs groupId="android-core-participants">
118115
<TabItem value="kotlin" label="Kotlin" default>
119116

120-
```kotlin
121-
private val participantEventsListener = object : DyteParticipantsEventListener {
122-
override fun onVideoUpdate(participant: DyteRemoteParticipant, isEnabled: Boolean) {
123-
// your code here to handle participant video toggle update
124-
}
125-
}
126-
```
117+
```kotlin
118+
private val participantEventsListener = object : DyteParticipantsEventListener {
119+
override fun onVideoUpdate(participant: DyteRemoteParticipant, isEnabled: Boolean) {
120+
// your code here to handle participant video toggle update
121+
}
122+
}
123+
```
127124

128125
</TabItem>
129126

@@ -141,7 +138,6 @@ Triggers an event when any participant starts / stops video.
141138
</TabItem>
142139
</Tabs>
143140

144-
145141
### Audio update
146142

147143
Triggers an event when any participant starts / stops audio.
@@ -254,7 +250,6 @@ Triggers an event when there is any change in pinned participant in the meeting.
254250
}
255251
```
256252

257-
258253
</TabItem>
259254

260255
<TabItem value="java" label="Java" default>
@@ -316,26 +311,26 @@ Triggers an event whenever there is any change in participant.
316311
<Tabs groupId="android-core-participants">
317312
<TabItem value="kotlin" label="Kotlin" default>
318313

319-
```kotlin
320-
private val participantUpdateListener = object : DyteParticipantUpdateListener {
321-
override fun onUpdate(participant: DyteRemoteParticipant) {
322-
// your code here to handle participant update
323-
}
324-
}
325-
```
314+
```kotlin
315+
private val participantUpdateListener = object : DyteParticipantUpdateListener {
316+
override fun onUpdate(participant: DyteRemoteParticipant) {
317+
// your code here to handle participant update
318+
}
319+
}
320+
```
326321

327322
</TabItem>
328323

329324
<TabItem value="java" label="Java" default>
330325

331-
```java
332-
DyteParticipantUpdateListener participantUpdateListener = new DyteParticipantUpdateListener() {
333-
@Override
334-
public void onUpdate(DyteRemoteParticipant participant) {
335-
// your code here to handle participant update
336-
}
337-
}
338-
```
326+
```java
327+
DyteParticipantUpdateListener participantUpdateListener = new DyteParticipantUpdateListener() {
328+
@Override
329+
public void onUpdate(DyteRemoteParticipant participant) {
330+
// your code here to handle participant update
331+
}
332+
}
333+
```
339334

340335
</TabItem>
341336
</Tabs>
@@ -369,8 +364,6 @@ Triggers an event when the participant starts / stops video.
369364
</TabItem>
370365
</Tabs>
371366

372-
373-
374367
### Audio update
375368

376369
Triggers an event when the participant starts / stops audio.
@@ -402,7 +395,6 @@ Triggers an event when the participant starts / stops audio.
402395
</TabItem>
403396
</Tabs>
404397

405-
406398
### Pinned & Unpinned participant
407399

408400
Triggers an event when the participant is pinned / unpinned.
@@ -443,7 +435,6 @@ Triggers an event when the participant is pinned / unpinned.
443435
</TabItem>
444436
</Tabs>
445437

446-
447438
### Screen share started & ended
448439

449440
Triggers an event when the participant starts / stops screen sharing.

Diff for: docs/android-core/participants/participant-object.mdx

-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ participant.ifPresent(pcpt -> {
138138
You can also `pin` or `unpin` a participant in the meeting. All "pinned"
139139
participants are added to the `meeting.participants.pinned` list.
140140

141-
142141
<Tabs groupId="android-core-participants">
143142
<TabItem value="kotlin" label="Kotlin" default>
144143

0 commit comments

Comments
 (0)