Skip to content

Commit 0010561

Browse files
ci: support update dependencies (#1098)
* ci: support update dependencies * [AUTO] Generate codes by terra (#1100) Co-authored-by: LichKing-2234 <[email protected]> --------- Co-authored-by: sda-rob <[email protected]> Co-authored-by: LichKing-2234 <[email protected]>
1 parent 9df0579 commit 0010561

File tree

7 files changed

+77
-54
lines changed

7 files changed

+77
-54
lines changed

.github/actions/doc/action.yml

+15-9
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,31 @@
11
name: Doc
2-
description: Generate comments
2+
description: Generate comments.
33

44
inputs:
5-
target-path:
6-
description: The path to generate comments, if set, will skip clone & pr
7-
default: ""
85
github-token:
9-
description: The github token
6+
description: >
7+
GITHUB_TOKEN (permissions contents: write and pull-requests: write) or a repo scoped Personal Access Token (PAT).
108
required: true
119

10+
target-repo:
11+
description: Relative path under GITHUB_WORKSPACE to the repository.
12+
13+
target-branch:
14+
description: Sets the pull request base branch.
15+
1216
runs:
1317
using: composite
1418
steps:
1519
- name: Generate comments
1620
uses: AgoraIO-Extensions/actions/.github/actions/doc@main
1721
with:
18-
target-repo: ${{ github.repository }}
19-
target-branch: ${{ github.ref_name }}
20-
target-path: ${{ inputs.target-path }}
22+
github-token: ${{ inputs.github-token }}
23+
target-repo: ${{ inputs.target-repo }}
24+
target-branch: ${{ inputs.target-branch }}
2125
config: fmt_config/fmt_ts.yaml
2226
language: ts
2327
base-template-url: https://github.com/AgoraIO/agora_doc_source/releases/download/master-build/electron_ng_json_template_en.json
2428
export-file-path: ts/AgoraSdk.ts
25-
github-token: ${{ inputs.github-token }}
29+
pre-pr-command: |
30+
rm -rf iris-doc
31+
yarn lint --fix

.github/workflows/dep.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Update dependencies
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
dependencies-content:
7+
description: The content of dependencies
8+
required: true
9+
type: string
10+
11+
jobs:
12+
update-dependencies:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
18+
- name: Setup
19+
uses: ./.github/actions/setup
20+
21+
- name: Update dependencies
22+
id: dep
23+
uses: AgoraIO-Extensions/actions/.github/actions/dep@main
24+
with:
25+
github-token: ${{ secrets.GH_TOKEN }}
26+
target-branch: ${{ github.ref_name }}
27+
dependencies-content: ${{ inputs.dependencies-content }}
28+
target-files: |
29+
package.json

.github/workflows/doc.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ jobs:
99
steps:
1010
- name: Checkout
1111
uses: actions/checkout@v3
12-
12+
13+
- name: Setup
14+
uses: ./.github/actions/setup
15+
1316
- name: Generate comments
1417
uses: ./.github/actions/doc
1518
with:
1619
github-token: ${{ secrets.GH_TOKEN }}
20+
target-branch: ${{ github.ref_name }}

.github/workflows/terra.yml

+10-7
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ jobs:
1919
uses: ./.github/actions/setup
2020

2121
- name: Generate codes
22+
id: terra
2223
uses: AgoraIO-Extensions/actions/.github/actions/terra@main
2324
env:
2425
LLVM_DOWNLOAD_URL: |
2526
https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.6/clang+llvm-15.0.6-x86_64-linux-gnu-ubuntu-18.04.tar.xz
2627
with:
28+
github-token: ${{ secrets.GH_TOKEN }}
2729
terra-ref: ${{ inputs.terra-ref }}
28-
target-path: ${{ github.workspace }}
2930
config: ci/config/terra_config.yaml
3031
output-dir: ts/Private
3132
export-file-path: ts/AgoraSdk.ts
32-
github-token: ${{ secrets.GH_TOKEN }}
3333

3434
- name: Format codes
3535
run: |
@@ -43,17 +43,20 @@ jobs:
4343
- name: Generate comments
4444
uses: ./.github/actions/doc
4545
with:
46-
target-path: ${{ github.workspace }}
4746
github-token: ${{ secrets.GH_TOKEN }}
47+
target-path: ${{ github.workspace }}
4848

4949
- name: Create pull request
5050
uses: AgoraIO-Extensions/actions/.github/actions/pr@main
5151
with:
52+
github-token: ${{ secrets.GH_TOKEN }}
5253
target-repo: ${{ github.workspace }}
5354
target-branch: ${{ github.ref_name }}
54-
target-branch-name-surffix: |
55-
terra-update
55+
target-branch-name-surffix: terra-update
5656
pull-request-title: |
57-
[AUTO] Generate code by terra
57+
[AUTO] Generate codes by terra
58+
pull-request-body: |
59+
Terra configuration:
60+
61+
${{ steps.terra.outputs.configuration }}
5862
add-paths: ts
59-
github-token: ${{ secrets.GH_TOKEN }}

ts/Private/AgoraBase.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1365,7 +1365,7 @@ export class VideoEncoderConfiguration {
13651365
*/
13661366
export class DataStreamConfig {
13671367
/**
1368-
* Whether to synchronize the data packet with the published audio packet. true : Synchronize the data packet with the audio packet. false : Do not synchronize the data packet with the audio packet. When you set the data packet to synchronize with the audio, then if the data packet delay is within the audio delay, the SDK triggers the onStreamMessage callback when the synchronized audio packet is played out. Do not set this parameter as true if you need the receiver to receive the data packet immediately. Agora recommends that you set this parameter to true only when you need to implement specific functions, for example, lyric synchronization.
1368+
* Whether to synchronize the data packet with the published audio packet. true : Synchronize the data packet with the audio packet. This setting is suitable for special scenarios such as lyrics synchronization. false : Do not synchronize the data packet with the audio packet. This setting is suitable for scenarios where data packets need to arrive at the receiving end immediately. When you set the data packet to synchronize with the audio, then if the data packet delay is within the audio delay, the SDK triggers the onStreamMessage callback when the synchronized audio packet is played out.
13691369
*/
13701370
syncWithAudio?: boolean;
13711371
/**

ts/Private/IAgoraMediaPlayer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export abstract class IMediaPlayer {
2323
* Gets the ID of the media player.
2424
*
2525
* @returns
26-
* ≥ 0: Success. The ID of the media player.
26+
* Success. The ID of the media player.
2727
* < 0: Failure.
2828
*/
2929
abstract getMediaPlayerId(): number;

ts/Private/IAgoraRtcEngine.ts

+16-35
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ export enum PriorityType {
374374
*/
375375
export class LocalVideoStats {
376376
/**
377-
* The user ID of the local user.
377+
* The ID of the local user.
378378
*/
379379
uid?: number;
380380
/**
@@ -1402,7 +1402,7 @@ export interface IRtcEngineEventHandler {
14021402
/**
14031403
* Occurs when the playback of the local music file finishes.
14041404
*
1405-
* Deprecated: Please use onAudioMixingStateChanged instead. After you call startAudioMixing to play a local music file, this callback occurs when the playback finishes. If the call startAudioMixing fails, the error code WARN_AUDIO_MIXING_OPEN_ERROR is returned.
1405+
* Deprecated: Use onAudioMixingStateChanged instead. After you call startAudioMixing to play a local music file, this callback occurs when the playback finishes. If the call of startAudioMixing fails, the error code WARN_AUDIO_MIXING_OPEN_ERROR is returned.
14061406
*/
14071407
onAudioMixingFinished?(): void;
14081408

@@ -1411,7 +1411,7 @@ export interface IRtcEngineEventHandler {
14111411
*
14121412
* This callback occurs when the local audio effect file finishes playing.
14131413
*
1414-
* @param soundId The audio effect ID. The ID of each audio effect file is unique.
1414+
* @param soundId The ID of the audio effect. The ID of each audio effect file is unique.
14151415
*/
14161416
onAudioEffectFinished?(soundId: number): void;
14171417

@@ -1753,7 +1753,7 @@ export interface IRtcEngineEventHandler {
17531753
/**
17541754
* Occurs when the camera turns on and is ready to capture the video.
17551755
*
1756-
* Deprecated: Please use LocalVideoStreamStateCapturing (1) in onLocalVideoStateChanged instead. This callback indicates that the camera has been successfully turned on and you can start to capture video.
1756+
* Deprecated: Use LocalVideoStreamStateCapturing (1) in onLocalVideoStateChanged instead. This callback indicates that the camera has been successfully turned on and you can start to capture video.
17571757
*/
17581758
onCameraReady?(): void;
17591759

@@ -2328,9 +2328,9 @@ export interface IRtcEngineEventHandler {
23282328
* Occurs when the video subscribing state changes.
23292329
*
23302330
* @param channel The channel name.
2331-
* @param uid The ID of the remote user.
2332-
* @param oldState The previous subscribing status, see StreamSubscribeState for details.
2333-
* @param newState The current subscribing status, see StreamSubscribeState for details.
2331+
* @param uid The user ID of the remote user.
2332+
* @param oldState The previous subscribing status. See StreamSubscribeState.
2333+
* @param newState The current subscribing status. See StreamSubscribeState.
23342334
* @param elapseSinceLastState The time elapsed (ms) from the previous state to the current state.
23352335
*/
23362336
onVideoSubscribeStateChanged?(
@@ -2640,16 +2640,16 @@ export enum MaxMetadataSizeType {
26402640
export class Metadata {
26412641
/**
26422642
* The user ID.
2643-
* For the recipient:the ID of the remote user who sent the Metadata.
2644-
* Ignore it for sender.
2643+
* For the recipient: The ID of the remote user who sent the Metadata.
2644+
* For the sender: Ignore it.
26452645
*/
26462646
uid?: number;
26472647
/**
2648-
* Buffer size for received or sent Metadata.
2648+
* The buffer size of the sent or received Metadata.
26492649
*/
26502650
size?: number;
26512651
/**
2652-
* The buffer address of the received or sent Metadata.
2652+
* The buffer address of the sent or received Metadata.
26532653
*/
26542654
buffer?: Uint8Array;
26552655
/**
@@ -3140,28 +3140,7 @@ export abstract class IRtcEngine {
31403140
abstract stopEchoTest(): number;
31413141

31423142
/**
3143-
* Enables or disables multi-camera capture.
3144-
*
3145-
* In scenarios where there are existing cameras to capture video, Agora recommends that you use the following steps to capture and publish video with multiple cameras:
3146-
* Call this method to enable multi-channel camera capture.
3147-
* Call startPreview to start the local video preview.
3148-
* Call startCameraCapture, and set sourceType to start video capture with the second camera.
3149-
* Call joinChannelEx, and set publishSecondaryCameraTrack to true to publish the video stream captured by the second camera in the channel. If you want to disable multi-channel camera capture, use the following steps:
3150-
* Call stopCameraCapture.
3151-
* Call this method with enabled set to false. You can call this method before and after startPreview to enable multi-camera capture:
3152-
* If it is enabled before startPreview, the local video preview shows the image captured by the two cameras at the same time.
3153-
* If it is enabled after startPreview, the SDK stops the current camera capture first, and then enables the primary camera and the second camera. The local video preview appears black for a short time, and then automatically returns to normal. When using this function, ensure that the system version is 13.0 or later. The minimum iOS device types that support multi-camera capture are as follows:
3154-
* iPhone XR
3155-
* iPhone XS
3156-
* iPhone XS Max
3157-
* iPad Pro 3rd generation and later
3158-
*
3159-
* @param enabled Whether to enable multi-camera video capture mode: true : Enable multi-camera capture mode; the SDK uses multiple cameras to capture video. false : Disable multi-camera capture mode; the SDK uses a single camera to capture video.
3160-
* @param config Capture configuration for the second camera. See CameraCapturerConfiguration.
3161-
*
3162-
* @returns
3163-
* 0: Success.
3164-
* < 0: Failure.
3143+
* @ignore
31653144
*/
31663145
abstract enableMultiCamera(
31673146
enabled: boolean,
@@ -4328,7 +4307,7 @@ export abstract class IRtcEngine {
43284307
/**
43294308
* Retrieves the playback position of the audio effect file.
43304309
*
4331-
* Call this method after the playEffect method.
4310+
* Call this method after playEffect.
43324311
*
43334312
* @param soundId The audio effect ID. The ID of each audio effect file is unique.
43344313
*
@@ -5586,6 +5565,8 @@ export abstract class IRtcEngine {
55865565
/**
55875566
* Stops screen capture.
55885567
*
5568+
* After calling startScreenCaptureByWindowId or startScreenCaptureByDisplayId to start screen capture, call this method to stop screen capture.
5569+
*
55895570
* @returns
55905571
* 0: Success.
55915572
* < 0: Failure.
@@ -6680,7 +6661,7 @@ export abstract class IRtcEngine {
66806661
*
66816662
* If the metadata is sent successfully, the SDK triggers the onMetadataReceived callback on the receiver.
66826663
*
6683-
* @param metadata Media metadata See Metadata.
6664+
* @param metadata Media metadata. See Metadata.
66846665
* @param sourceType The type of the video source. See VideoSourceType.
66856666
*
66866667
* @returns

0 commit comments

Comments
 (0)