Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support 4.2.0 #995

Merged
merged 75 commits into from
May 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
b22ddcc
build: optimize
LichKing-2234 Apr 3, 2023
1db0306
build: update iris to 4.2.0-dev.1
LichKing-2234 Apr 3, 2023
b0c8ffa
build: update iris to 4.2.0-dev.1
LichKing-2234 Apr 3, 2023
1c8cf34
build: update iris to 4.2.0-dev.1
LichKing-2234 Apr 3, 2023
6d0ea53
ci: optimize
LichKing-2234 Apr 3, 2023
9c62272
Merge branch 'main' into dev/4.2.0
LichKing-2234 Apr 3, 2023
a37bae2
[AUTO] Generate code by terra (#967)
LichKing-2234 Apr 3, 2023
514bafc
[AUTO] Generate code by terra (#972)
LichKing-2234 Apr 6, 2023
b81f589
ci: optimize
LichKing-2234 Apr 6, 2023
2ae081b
[AUTO] Generate code by terra (#973)
LichKing-2234 Apr 6, 2023
230e6c2
[AUTO] Generate code by terra (#974)
LichKing-2234 Apr 7, 2023
4304e4c
chore: optimize
LichKing-2234 Apr 7, 2023
8cae5cc
chore: optimize
LichKing-2234 Apr 10, 2023
8f5b7a7
chore: optimize
LichKing-2234 Apr 10, 2023
0d7e043
chore: optimize
LichKing-2234 Apr 12, 2023
661840e
fix: `removeSubscription` not a function
LichKing-2234 Apr 12, 2023
a806482
fix: ProcessVideoRawData not working
LichKing-2234 Apr 12, 2023
882dcf6
chore: optimize examples
LichKing-2234 Apr 13, 2023
9a90af5
chore: optimize examples
LichKing-2234 Apr 13, 2023
6ccbcff
Update package.json
LichKing-2234 Apr 13, 2023
bdcb715
Update eslint-plugin-auto-import+0.1.1.patch
LichKing-2234 Apr 13, 2023
f660939
[AUTO] Generate code by terra (#980)
LichKing-2234 Apr 13, 2023
4b9ba27
chore: optimize examples
LichKing-2234 Apr 14, 2023
8d6a5d4
chore: optimize examples
LichKing-2234 Apr 14, 2023
17e0c4b
chore: optimize examples
LichKing-2234 Apr 14, 2023
4db41e3
[AUTO] Generate code by terra (#982)
LichKing-2234 Apr 17, 2023
5f8b567
chore: optimize examples
LichKing-2234 Apr 18, 2023
44af24f
chore: optimize examples
LichKing-2234 Apr 18, 2023
14bbce6
fix: jira NMS-12422 NMS-12418
LichKing-2234 Apr 18, 2023
48ead15
build: optimize buildJS.js
LichKing-2234 Apr 18, 2023
5b1f0bf
chore: optimize example
LichKing-2234 Apr 18, 2023
8239e09
chore: optimize example
LichKing-2234 Apr 19, 2023
52fbc0a
chore: optimize example
LichKing-2234 Apr 19, 2023
1ce0727
chore: optimize example
LichKing-2234 Apr 19, 2023
71d0262
chore: optimize example
LichKing-2234 Apr 20, 2023
89c2651
feat: support main process
LichKing-2234 Apr 20, 2023
0e6ce64
chore: optimize
LichKing-2234 Apr 21, 2023
1cda85a
chore: optimize
LichKing-2234 May 10, 2023
e8157ce
fix: `removeListener` not working with same callback
LichKing-2234 May 11, 2023
8dd78dd
chore: optimize
LichKing-2234 May 15, 2023
39e4365
chore: optimize
LichKing-2234 May 15, 2023
9ccd3a2
chore: optimize
LichKing-2234 May 15, 2023
3951780
[AUTO] Generate comments by iris-doc (#1001)
LichKing-2234 May 17, 2023
25a10ef
chore: optimize
LichKing-2234 May 18, 2023
f9a3a1a
build: add jest
LichKing-2234 May 19, 2023
99994f9
chore: optimize
LichKing-2234 May 19, 2023
6c84d61
chore: optimize
LichKing-2234 May 19, 2023
ed9f428
chore: optimize
LichKing-2234 May 19, 2023
b8932ed
chore: optimize
LichKing-2234 May 19, 2023
025d68c
[AUTO] Generate code by terra (#1005)
LichKing-2234 May 19, 2023
d7915d1
[AUTO] Generate comments by iris-doc (#1010)
LichKing-2234 May 23, 2023
5d50666
chore: optimize
LichKing-2234 May 23, 2023
fc230b4
[WIP] optimize
LichKing-2234 May 23, 2023
1d3f45a
fix: NMS-13120
LichKing-2234 May 23, 2023
9c5098b
chore: fix `AgoraDropdown` onValueChange type
LichKing-2234 May 23, 2023
a39e6c1
chore: use `startCameraCapture` instead of `startPreview` in LocalVid…
LichKing-2234 May 23, 2023
d7db2d1
ci: optimize build.yml
LichKing-2234 May 24, 2023
16400a0
ci: optimize publish
LichKing-2234 May 24, 2023
0763f2c
ci: optimize publish
LichKing-2234 May 24, 2023
2dab7f6
ci: optimize
LichKing-2234 May 24, 2023
9ecbfed
ci: fix
LichKing-2234 May 24, 2023
70783f1
ci: fix
LichKing-2234 May 24, 2023
29e0e13
ci: fix publish
LichKing-2234 May 24, 2023
b69cd03
ci: fix publish
LichKing-2234 May 24, 2023
e665905
ci: fix publish
LichKing-2234 May 24, 2023
aa49e32
ci: fix publish
LichKing-2234 May 24, 2023
22e67de
ci: fix publish
LichKing-2234 May 24, 2023
b2775a9
ci: fix build
LichKing-2234 May 24, 2023
80e5564
ci: fix publish
LichKing-2234 May 24, 2023
82a24f2
ci: fix build
LichKing-2234 May 24, 2023
9c2ef43
fix: NMS-13148 GetVideoFrameCache crash while setMetadata
LichKing-2234 May 25, 2023
a965996
fix: NMS-13149 removeAllListener issue
LichKing-2234 May 25, 2023
d22ce0b
chore: optimize
LichKing-2234 May 25, 2023
5e1ac16
ci: optimize
LichKing-2234 May 25, 2023
a049fba
chore: update iris 4.2.0-build.3
LichKing-2234 May 25, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# 🎨 editorconfig.org
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true

[*]
charset = utf-8
end_of_line = lf

indent_style = space
indent_size = 2

end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
insert_final_newline = true
6 changes: 6 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
**/node_modules/*
build/
**/dist/*
js/
types/
ts/Private/ti/
147 changes: 147 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
{
"root": true,
"env": {
"es6": true,
"node": true,
"shared-node-browser": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module"
},
"extends": [
"plugin:prettier/recommended",
"prettier"
],
"plugins": [
"@typescript-eslint/eslint-plugin",
"import",
"auto-import",
"react",
"react-hooks",
"jest"
],
"settings": {
"react": {
"version": "detect"
}
},
"overrides": [
{
"files": [
"*.ts",
"*.tsx"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint/eslint-plugin"
],
"rules": {
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_"
}
],
"no-unused-vars": "off",
"no-shadow": "off",
"@typescript-eslint/no-shadow": 1,
"no-undef": "off",
"func-call-spacing": "off",
"@typescript-eslint/func-call-spacing": 1
}
},
{
"files": [
"*.{spec,test}.{js,ts,tsx}",
"**/__{mocks,tests}__/**/*.{js,ts,tsx}"
],
"env": {
"jest": true,
"jest/globals": true
},
"rules": {
"react-native/no-inline-styles": 0,
"quotes": [
1,
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
]
}
}
],
"globals": {
"define": false,
"obj_attrib": false,
"info": false,
"NodeJS": false,
"window": false,
"alert": false,
"document": false,
"HTMLElement": false,
"HTMLDivElement": false,
"WebGL2RenderingContext": false,
"WebGLTexture": false,
"HTMLCanvasElement": false,
"ResizeObserver": false,
"name": false,
"Element": false
},
"rules": {
"prettier/prettier": [
"error",
{
"quoteProps": "consistent",
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false
}
],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "warn",
"auto-import/auto-import": [
"error",
{
"rootPath": "./ts/Private"
}
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"import/order": [
"error",
{
"newlines-between": "always-and-inside-groups",
"pathGroups": [
{
"pattern": "../internal/IrisApiEngine",
"group": "unknown"
},
{
"pattern": "./Private/impl/**",
"group": "unknown"
}
],
"alphabetize": {
"order": "asc",
"orderImportKind": "asc"
}
}
],
"sort-imports": [
"error",
{
"ignoreDeclarationSort": true,
"ignoreMemberSort": false
}
],
"jest/no-disabled-tests": 1,
"jest/no-focused-tests": 1,
"jest/no-identical-title": 1,
"jest/valid-expect": 1
}
}
28 changes: 2 additions & 26 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,27 +1,3 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto

# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
*.c text eol=lf
*.h text eol=lf
*.cpp text eol=lf
*.hpp text eol=lf
*.js text eol=lf
*.ts text eol=lf
*.jsx text eol=lf
*.tsx text eol=lf
*.sh text eol=lf
*.json text eol=lf
*.gyp text eol=lf

# Declare files that will always have CRLF line endings on checkout.
*.sln text eol=crlf
*.pbxproj -text
# specific for windows script files
*.bat text eol=crlf

# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary

package-lock.json -diff
yarn.lock -diff
3 changes: 2 additions & 1 deletion .github/actions/doc/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: doc
name: Doc
description: Generate comments

inputs:
target-path:
description: The path to generate comments, if set, will skip clone & pr
Expand Down
6 changes: 3 additions & 3 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ runs:
with:
path: |
**/node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-yarn-ng-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
${{ runner.os }}-yarn-ng

- name: Install dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: |
yarn config set agora-electron-sdk-pre-built 0
yarn install --frozen-lockfile
yarn patch-package
shell: bash
2 changes: 1 addition & 1 deletion .github/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exemptLabels:
- pinned
- security
# Label to use when marking an issue as stale
staleLabel: wontfix
staleLabel: inactivity
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
Expand Down
62 changes: 27 additions & 35 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,34 @@
name: Build Addon
run-name: ${{ github.actor }} triggered this job
name: Build API Example / Addon

on:
workflow_call:
inputs:
type:
description: 'Build type'
required: true
default: 'sdk'
type: string
workflow_dispatch:
inputs:
type:
description: 'Build type'
required: true
default: 'demo'
type: choice
options:
- demo
- sdk
release:
types: [ published ]
jobs:
build-macos:
strategy:
matrix:
arch: [ x64, arm64 ]
runs-on: macos-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'yarn'
- run: yarn

- name: Prebuild
run: |
yarn prebuild -a ${{ matrix.arch }} -u ${{ secrets.GH_TOKEN }}

build-windows:
strategy:
matrix:
arch: [ x86, x64 ]
runs-on: windows-latest
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'yarn'
- run: yarn

- name: Prebuild
- name: Build
run: |
yarn prebuild -a ${{ matrix.arch }} -u ${{ secrets.GH_TOKEN }}
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}\"}"
41 changes: 38 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
name: CI

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

on:
push:
branches:
- main
pull_request:
branches:
- main
- release/*

jobs:
lint:
Expand All @@ -22,9 +28,7 @@ jobs:

- name: Typecheck files
run: |
set +e
yarn install --cwd example --frozen-lockfile
set -e
yarn example install --frozen-lockfile
yarn typecheck

build:
Expand All @@ -38,3 +42,34 @@ jobs:

- name: Build package
run: yarn prepack

test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup
uses: ./.github/actions/setup

- name: Jest
run: |
mkdir -p build/Release
echo > build/Release/agora_node_ext.node
yarn test

build-os:
strategy:
matrix:
runner: [ windows, macos ]
runs-on: ${{ matrix.runner }}-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup
uses: ./.github/actions/setup

- name: Build
run: |
yarn totalBuild
2 changes: 1 addition & 1 deletion .github/workflows/doc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Generate comments
run-name: ${{ github.actor }} triggered this job

on:
workflow_dispatch:

Expand Down
Loading