Skip to content

Commit

Permalink
feat: suppot native 4.2.6 (#1104)
Browse files Browse the repository at this point in the history
* chore: upgrade to iris 4.2.6-build.1 (#1102)

* [AUTO] Update dependencies

* chore: wip

* chore: wip

* chore: wip

* chore: wip

* chore: wip

---------

Co-authored-by: LichKing-2234 <[email protected]>

* [AUTO] Update dependencies (#1103)

* [AUTO] Update dependencies

* chore: wip

---------

Co-authored-by: LichKing-2234 <[email protected]>
Co-authored-by: HUI <[email protected]>

* ci: add `if-no-files-found: error`

* chore: wip

* chore: wip

* fix: jira NMS-17313

* fix: jira NMS-17348

* fix: jira NMS-17334

---------

Co-authored-by: LichKing-2234 <[email protected]>
Co-authored-by: sda-rob <[email protected]>
  • Loading branch information
3 people authored Nov 15, 2023
1 parent 0010561 commit e8be60b
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 25 deletions.
5 changes: 5 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ runs:
with:
node-version-file: .nvmrc

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11.5

- name: Cache dependencies
id: yarn-cache
uses: actions/cache@v3
Expand Down
22 changes: 14 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Build API Example / Addon

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
workflow_call:
inputs:
Expand All @@ -20,21 +24,22 @@ on:
- sdk
release:
types: [ published ]
pull_request:
types: [labeled, synchronize]

jobs:
build-jenkins:
if: ${{ inputs.type == 'sdk' || (github.event_name == 'release' && github.event.action == 'published') }}
runs-on: ubuntu-latest
steps:
- name: Build
run: |
type=${{inputs.type}}
type=${type:-"sdk"}
curl -X POST -sS -D- -o/dev/null ${{secrets.JENKINS_BUILD_URL}} \
-H 'Content-Type: application/json' \
-d "{\"branch\": \"${{github.ref_name}}\", \"type\": \"${type}\"}"
-d "{\"branch\": \"${{github.ref_name}}\", \"type\": \"sdk\"}"
build-windows:
if: ${{ inputs.type == 'demo' }}
if: ${{ inputs.type == 'demo' || contains(github.event.pull_request.labels.*.name, 'ci:dep-update') }}
strategy:
matrix:
arch: [ ia32, x64 ]
Expand All @@ -45,7 +50,7 @@ jobs:
npm_config_agora_electron_sdk_arch: ${{ matrix.arch }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
Expand All @@ -69,13 +74,13 @@ jobs:
name: AgoraRtcNgExample-win-${{ matrix.arch }}
path: |
example/dist/Agora-Electron-API-Example-*-win.zip
if-no-files-found: error

build-mac:
if: ${{ inputs.type == 'demo' }}
if: ${{ inputs.type == 'demo' || contains(github.event.pull_request.labels.*.name, 'ci:dep-update') }}
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
Expand All @@ -101,6 +106,7 @@ jobs:
name: AgoraRtcNgExample-mac
path: |
example/dist/Agora-Electron-API-Example-*-mac.zip
if-no-files-found: error

notification:
runs-on: ubuntu-latest
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
Expand All @@ -35,7 +35,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
Expand All @@ -47,7 +47,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
Expand All @@ -65,7 +65,7 @@ jobs:
runs-on: ${{ matrix.runner }}-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gitleaks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
name: gitleaks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: gitleaks/gitleaks-action@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/terra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
Expand All @@ -38,7 +38,7 @@ jobs:
- name: Generate ts interface
run: |
yarn ts_interface_builder
yarn build:ts-interface
- name: Generate comments
uses: ./.github/actions/doc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export default class ChannelMediaRelay
<>
<AgoraTextInput
onChangeText={(text) => {
this.setState({ destChannelNames: text.split(' ') });
this.setState({ destChannelNames: text ? text.split(' ') : [] });
}}
placeholder={'destChannelNames (split by blank)'}
value={destChannelNames.join(' ')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,11 @@ export default class Encryption
<AgoraTextInput
onChangeText={(text) => {
this.setState({
encryptionKdfSalt: text.split(' ').map((value) => +value),
encryptionKdfSalt: text
? text.split(' ').map((value) => +value)
: [],
});
}}
numberKeyboard={true}
placeholder={'encryptionKdfSalt (split by blank)'}
value={encryptionKdfSalt.join(' ')}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export default class RhythmPlayer
beatsPerMeasure,
beatsPerMinute,
});
this.engine?.updateChannelMediaOptions({ publishRhythmPlayerTrack: true });
};

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ export default function TakeSnapshot() {
value={targetUid}
onValueChange={(value) => {
setTargetUid(value);
setTakeSnapshot(false);
}}
/>
{takeSnapshot ? (
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"install": "cross-env-shell gulp NPM_Install \\\"--INIT_CWD=$INIT_CWD\\\"",
"release": "release-it",
"example": "yarn --cwd example",
"bootstrap": "yarn config set agora-electron-sdk-pre-built 0 && yarn example && yarn install && yarn patch-package && yarn ts_interface_builder && yarn totalBuild && yarn link && yarn example link agora-electron-sdk && yarn config delete agora-electron-sdk-pre-built",
"ts_interface_builder": "ts-interface-builder ts/Private/*.ts -o ts/Private/ti/"
"bootstrap": "yarn config set agora-electron-sdk-pre-built 0 && yarn example && yarn install && yarn patch-package && yarn build:ts-interface && yarn totalBuild && yarn link && yarn example link agora-electron-sdk && yarn config delete agora-electron-sdk-pre-built",
"build:ts-interface": "ts-interface-builder ts/Private/*.ts -o ts/Private/ti/"
},
"keywords": [
"electron",
Expand Down Expand Up @@ -135,7 +135,7 @@
"yuv-canvas": "1.2.6"
},
"agora_electron": {
"iris_sdk_win": "https://download.agora.io/sdk/release/iris_4.2.3-build.4_DCG_Windows_Video_20231019_0355.zip",
"iris_sdk_mac": "https://download.agora.io/sdk/release/iris_4.2.3-build.4_DCG_Mac_Video_20231019_0355.zip"
"iris_sdk_win": "https://download.agora.io/sdk/release/iris_4.2.6-build.2_DCG_Windows_Video_20231109_1040.zip",
"iris_sdk_mac": "https://download.agora.io/sdk/release/iris_4.2.6-build.2_DCG_Mac_Video_20231109_1040.zip"
}
}

0 comments on commit e8be60b

Please sign in to comment.