Skip to content

Commit

Permalink
feat: support 4.1.0
Browse files Browse the repository at this point in the history
* feat: support 4.1.0 iris

* feat: support 4.1.0 native

* chore: optimize api type

* chore: add `getMusicContentCenter`

* fix: release throw exception & use `NativeEventEmitter` instead of `DeviceEventEmitter` #538 #539

* chore: fix iOS compile error

* chore: fix NativeEventEmitter error

* feat: add `getPlaybackDefaultDevice` and `getRecordingDefaultDevice`

* chore: add `IAgoraMusicContentCenterExtension.ts`

* chore: fix `EventEmitter`

* chore: optimize

* chore: optimize

* chore: optimize

* chore: optimize

* chore: optimize

* chore: optimize

* chore: optimize

* chore: optimize

* build: update to `[email protected]`

* build: optimize

* build: optimize

* build: optimize

* build: optimize

* build: optimize

* docs: optimize

* build: fix error while npm install

* build: migrate to maven & cocoapods

* fix: `onEvent` conflict #554

* docs: update en doc link

* build: optimize `.gitignore`

* build: optimize npm `files`

* chore: release 4.1.0-rc.1

* [AUTO] Update doc (#559)

Co-authored-by: Nero-Hu <[email protected]>

* chore: optimize `addListener`

* test: add `detox`

* build: update native & iris dependencies

Co-authored-by: Littlegnal <[email protected]>
Co-authored-by: Nero-Hu <[email protected]>
  • Loading branch information
3 people authored Dec 20, 2022
1 parent e020e8d commit 35df959
Show file tree
Hide file tree
Showing 187 changed files with 16,845 additions and 10,704 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2.1
executors:
default:
docker:
- image: circleci/node:10
- image: circleci/node:16
working_directory: ~/project

commands:
Expand Down
83 changes: 83 additions & 0 deletions .detoxrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
/** @type {Detox.DetoxConfig} */
module.exports = {
testRunner: {
args: {
'$0': 'jest',
config: 'e2e/jest.config.js'
},
jest: {
setupTimeout: 120000
}
},
apps: {
'ios.debug': {
type: 'ios.app',
binaryPath: 'ios/build/Build/Products/Debug-iphonesimulator/YOUR_APP.app',
build: 'xcodebuild -workspace ios/YOUR_APP.xcworkspace -scheme YOUR_APP -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build'
},
'ios.release': {
type: 'ios.app',
binaryPath: 'ios/build/Build/Products/Release-iphonesimulator/YOUR_APP.app',
build: 'xcodebuild -workspace ios/YOUR_APP.xcworkspace -scheme YOUR_APP -configuration Release -sdk iphonesimulator -derivedDataPath ios/build'
},
'android.debug': {
type: 'android.apk',
binaryPath: 'example/android/app/build/outputs/apk/debug/app-debug.apk',
build: 'cd example/android ; ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug ; cd -',
reversePorts: [
8081
]
},
'android.release': {
type: 'android.apk',
binaryPath: 'example/android/app/build/outputs/apk/release/app-release.apk',
build: 'cd example/android ; ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release ; cd -'
}
},
devices: {
simulator: {
type: 'ios.simulator',
device: {
type: 'iPhone 12'
}
},
attached: {
type: 'android.attached',
device: {
adbName: '.*'
}
},
emulator: {
type: 'android.emulator',
device: {
avdName: 'Resizable_Experimental_API_33'
}
}
},
configurations: {
'ios.sim.debug': {
device: 'simulator',
app: 'ios.debug'
},
'ios.sim.release': {
device: 'simulator',
app: 'ios.release'
},
'android.att.debug': {
device: 'attached',
app: 'android.debug'
},
'android.att.release': {
device: 'attached',
app: 'android.release'
},
'android.emu.debug': {
device: 'emulator',
app: 'android.debug'
},
'android.emu.release': {
device: 'emulator',
app: 'android.release'
}
}
};
37 changes: 37 additions & 0 deletions .githooks/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/sh

if [ "$LEFTHOOK" = "0" ]; then
exit 0
fi

if [ -t 1 ] ; then
exec < /dev/tty ; # <- enables interactive shell
fi

dir="$(git rev-parse --show-toplevel)"

call_lefthook()
{
if lefthook -h >/dev/null 2>&1
then
eval lefthook $@
elif test -f "$dir/node_modules/@arkweid/lefthook/bin/lefthook"
then
eval "$dir/node_modules/@arkweid/lefthook/bin/lefthook $@"
elif bundle exec lefthook -h >/dev/null 2>&1
then
bundle exec lefthook $@
elif npx @arkweid/lefthook -h >/dev/null 2>&1
then
npx @arkweid/lefthook $@
elif yarn lefthook -h >/dev/null 2>&1
then
yarn lefthook $@
else
echo "Can't find lefthook in PATH"
fi
}



call_lefthook "run commit-msg $@"
37 changes: 37 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/sh

if [ "$LEFTHOOK" = "0" ]; then
exit 0
fi

if [ -t 1 ] ; then
exec < /dev/tty ; # <- enables interactive shell
fi

dir="$(git rev-parse --show-toplevel)"

call_lefthook()
{
if lefthook -h >/dev/null 2>&1
then
eval lefthook $@
elif test -f "$dir/node_modules/@arkweid/lefthook/bin/lefthook"
then
eval "$dir/node_modules/@arkweid/lefthook/bin/lefthook $@"
elif bundle exec lefthook -h >/dev/null 2>&1
then
bundle exec lefthook $@
elif npx @arkweid/lefthook -h >/dev/null 2>&1
then
npx @arkweid/lefthook $@
elif yarn lefthook -h >/dev/null 2>&1
then
yarn lefthook $@
else
echo "Can't find lefthook in PATH"
fi
}



call_lefthook "run pre-commit $@"
39 changes: 39 additions & 0 deletions .githooks/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/bin/sh

if [ "$LEFTHOOK" = "0" ]; then
exit 0
fi

if [ -t 1 ] ; then
exec < /dev/tty ; # <- enables interactive shell
fi

dir="$(git rev-parse --show-toplevel)"

call_lefthook()
{
if lefthook -h >/dev/null 2>&1
then
eval lefthook $@
elif test -f "$dir/node_modules/@arkweid/lefthook/bin/lefthook"
then
eval "$dir/node_modules/@arkweid/lefthook/bin/lefthook $@"
elif bundle exec lefthook -h >/dev/null 2>&1
then
bundle exec lefthook $@
elif npx @arkweid/lefthook -h >/dev/null 2>&1
then
npx @arkweid/lefthook $@
elif yarn lefthook -h >/dev/null 2>&1
then
yarn lefthook $@
else
echo "Can't find lefthook in PATH"
fi
}

# lefthook_version: 9df6c1f1f0b607d16db43f25a405e842

call_lefthook "install"

call_lefthook "run prepare-commit-msg $@"
13 changes: 12 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,22 @@ project.xcworkspace

# Android/IJ
#
.idea
.classpath
.cxx
.gradle
.idea
.project
.settings
local.properties
android.iml

# Cocoapods
#
example/ios/Pods

# Ruby
example/vendor/

# node.js
#
node_modules/
Expand All @@ -58,3 +65,7 @@ android/keystores/debug.keystore

# generated by bob
lib/

# Custom
*.xcframework
ios/AgoraRtcWrapper.podspec
1 change: 1 addition & 0 deletions .watchmanconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
21 changes: 20 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@


# [4.1.0-rc.1](https://github.com/AgoraIO-Extensions/react-native-agora/compare/v4.0.0...v4.1.0-rc.1) (2022-11-29)


### Bug Fixes

* `onEvent` conflict [#554](https://github.com/AgoraIO-Extensions/react-native-agora/issues/554) ([8686c55](https://github.com/AgoraIO-Extensions/react-native-agora/commit/8686c55f52271ff8cc87f0a55ce5e977d80aefde))
* add `setDualStreamMode` method ([40faff6](https://github.com/AgoraIO-Extensions/react-native-agora/commit/40faff60a3844f11407682295da50f2996e333ed))
* release throw exception & use `NativeEventEmitter` instead of `DeviceEventEmitter` [#538](https://github.com/AgoraIO-Extensions/react-native-agora/issues/538) [#539](https://github.com/AgoraIO-Extensions/react-native-agora/issues/539) ([52f1471](https://github.com/AgoraIO-Extensions/react-native-agora/commit/52f1471209edba939480a44cf7eefa699ee66710))
* the event which named contains `Ex` not triggered issue (such as `onTokenPrivilegeWillExpire`) ([ad372a6](https://github.com/AgoraIO-Extensions/react-native-agora/commit/ad372a690e5ce8fd989d2e8977a58715f27b745d))


### Features

* add `getPlaybackDefaultDevice` and `getRecordingDefaultDevice` ([22ea54e](https://github.com/AgoraIO-Extensions/react-native-agora/commit/22ea54e33d905b2a40a2a4f10428b1f3ae617fbf))
* support 4.1.0 iris ([aac5174](https://github.com/AgoraIO-Extensions/react-native-agora/commit/aac51740c7f243f9652e177d367bce3b7dc18116))
* support 4.1.0 native ([7498ff9](https://github.com/AgoraIO-Extensions/react-native-agora/commit/7498ff949ba494a044def44cec3a6b9d3f4b7775))

# [4.0.0](https://github.com/AgoraIO-Community/react-native-agora/compare/v4.0.0-rc.1...v4.0.0) (2022-09-28)


Expand Down Expand Up @@ -521,4 +540,4 @@

- add onAudioVolumeIndication

- add zOrderMediaOverlay for android platform, support media overlay
- add zOrderMediaOverlay for android platform, support media overlay
Loading

0 comments on commit 35df959

Please sign in to comment.