Skip to content

Commit

Permalink
Release 2.0.0-alpha: Develop to main (#1235)
Browse files Browse the repository at this point in the history
* updated packages

* updated package version

* released sample app version 2.3.73 (324) ⚛️

* updated SDK versions

* deleted nested `.gitignore` files

* fastlane script run changes

* sample apps changes

* added android hand raise APIs

* added isHandRaise options

* added hand raise APIs on JS

* resolved lint warnings

* feat(sdk): ✨ added raise hand first class apis on ios

* updated parsing

* feat(prebuilt): ✨ added 'hand raise' first class api usage in prebuilt

* resolved lint warnings

* upgraded `android sdk` version

* released sample app version 2.3.73 (324) ⚛️

* release df app changes

* updated gems

* updated script

* released sample app version 2.3.73 (324) ⚛️

* released sample app version 2.3.74 (325) ⚛️

* updated gradle

* Added GitHub actions (#1229)

* added github actions

* updated workflow name

* updated ReadMe

* updated build script

* Update README.md

* Added support for peerListUpdated API (#1228)

* added peer list updated event

* added peer list iterator APIs

* added peer list iterator implementation

* updated check

* feat(sdk): ✨ added `ON_PEER_LIST_UPDATED` event on RN SDK

* fix(sdk): 🐛 added `sdkId` in `ON_PEER_LIST_UPDATED` event payload

* feat(prebuilt): ✨ added `ON_PEER_LIST_UPDATED` event usage

* added iOS implementation for onPeerListUpdate event

* updated example app changelog

* released sample app version 2.3.75 (326) ⚛️

* updated changelog

* converting types to Double before adding to list

* resolved lint warnings

* released sample app version 2.3.77 (328) ⚛️

* fix(sdk): 🐛 `lowerLocalPeerHand` api not working

* refactor(sdk): ♻️ peerlistiterator code refactoring and minor change

---------

Co-authored-by: Jatin Nagar <[email protected]>

* Feature/android auto enter pip support (#1231)

* added peer list updated event

* added peer list iterator APIs

* added peer list iterator implementation

* updated check

* feat(sdk): ✨ added `ON_PEER_LIST_UPDATED` event on RN SDK

* fix(sdk): 🐛 added `sdkId` in `ON_PEER_LIST_UPDATED` event payload

* feat(prebuilt): ✨ added `ON_PEER_LIST_UPDATED` event usage

* added iOS implementation for onPeerListUpdate event

* updated example app changelog

* released sample app version 2.3.75 (326) ⚛️

* updated changelog

* converting types to Double before adding to list

* resolved lint warnings

* released sample app version 2.3.77 (328) ⚛️

* feat(sdk): ✨ added auto enter pip support in android

* refactor(example-app): usage of `enterPipMode` method

* feat(prebuilt): ✨ added auto enter pip support in prebuilt

* feat(example-app): ✨ added auto enter pip support in example app

* updated podfile

* feat(sdk): ✨ added auto enter pip support for android sdk less than 12

* feat(example-app): ✨ added auto enter pip support in example app for android sdk less than 12

* fix(sdk): 🐛 `lowerLocalPeerHand` api not working

* build(prebuilt): removed `react-native-keyboard-controller` lib

it was causing issues with pip window

* released sample app version 2.3.78 (329) and 2.3.80 (331) ⚛️

* refactor(sdk): ♻️ peerlistiterator code refactoring and minor change

---------

Co-authored-by: Yogesh Singh <[email protected]>
Co-authored-by: ygit <[email protected]>

* Fix/light theme issues (#1233)

* added peer list updated event

* added peer list iterator APIs

* added peer list iterator implementation

* updated check

* feat(sdk): ✨ added `ON_PEER_LIST_UPDATED` event on RN SDK

* fix(sdk): 🐛 added `sdkId` in `ON_PEER_LIST_UPDATED` event payload

* feat(prebuilt): ✨ added `ON_PEER_LIST_UPDATED` event usage

* added iOS implementation for onPeerListUpdate event

* updated example app changelog

* released sample app version 2.3.75 (326) ⚛️

* updated changelog

* converting types to Double before adding to list

* resolved lint warnings

* released sample app version 2.3.77 (328) ⚛️

* feat(sdk): ✨ added auto enter pip support in android

* refactor(example-app): usage of `enterPipMode` method

* feat(prebuilt): ✨ added auto enter pip support in prebuilt

* feat(example-app): ✨ added auto enter pip support in example app

* updated podfile

* feat(sdk): ✨ added auto enter pip support for android sdk less than 12

* feat(example-app): ✨ added auto enter pip support in example app for android sdk less than 12

* fix(sdk): 🐛 `lowerLocalPeerHand` api not working

* build(prebuilt): removed `react-native-keyboard-controller` lib

it was causing issues with pip window

* released sample app version 2.3.78 (329) and 2.3.80 (331) ⚛️

* refactor(sdk): ♻️ peerlistiterator code refactoring and minor change

* fix(prebuilt): 💄 light theme color fixes

* released sample app version 2.3.81 (332) ⚛️

* fix(prebuilt): ✨ ligth theme issue in "Welcome to Meeting" screen

---------

Co-authored-by: Yogesh Singh <[email protected]>
Co-authored-by: ygit <[email protected]>

* Fix-Prebuilt/change name feature for all (#1234)

* added peer list updated event

* added peer list iterator APIs

* added peer list iterator implementation

* updated check

* feat(sdk): ✨ added `ON_PEER_LIST_UPDATED` event on RN SDK

* fix(sdk): 🐛 added `sdkId` in `ON_PEER_LIST_UPDATED` event payload

* feat(prebuilt): ✨ added `ON_PEER_LIST_UPDATED` event usage

* added iOS implementation for onPeerListUpdate event

* updated example app changelog

* released sample app version 2.3.75 (326) ⚛️

* updated changelog

* converting types to Double before adding to list

* resolved lint warnings

* released sample app version 2.3.77 (328) ⚛️

* feat(sdk): ✨ added auto enter pip support in android

* refactor(example-app): usage of `enterPipMode` method

* feat(prebuilt): ✨ added auto enter pip support in prebuilt

* feat(example-app): ✨ added auto enter pip support in example app

* updated podfile

* feat(sdk): ✨ added auto enter pip support for android sdk less than 12

* feat(example-app): ✨ added auto enter pip support in example app for android sdk less than 12

* fix(sdk): 🐛 `lowerLocalPeerHand` api not working

* build(prebuilt): removed `react-native-keyboard-controller` lib

it was causing issues with pip window

* released sample app version 2.3.78 (329) and 2.3.80 (331) ⚛️

* refactor(sdk): ♻️ peerlistiterator code refactoring and minor change

* fix(prebuilt): 💄 light theme color fixes

* released sample app version 2.3.81 (332) ⚛️

* fix(prebuilt): ✨ ligth theme issue in "Welcome to Meeting" screen

* fix(prebuilt): 🐛 change name feature were not available for all roles

viewer-realtime, viewer-near-realtime and viewer-on-stage roles were not getting "change name" option

* released sample app version 2.3.82 (333) ⚛️

* fix(sdk): 🐛 lower local peer hand api on ios

* updated 100ms android and ios dependencies

* released sample app version 2.3.83 (334) ⚛️

---------

Co-authored-by: Yogesh Singh <[email protected]>
Co-authored-by: ygit <[email protected]>

---------

Co-authored-by: Yogesh Singh <[email protected]>
Co-authored-by: ygit <[email protected]>
  • Loading branch information
3 people authored Oct 5, 2023
1 parent 957b17c commit ab068e5
Show file tree
Hide file tree
Showing 96 changed files with 8,681 additions and 7,606 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Build

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

on:
workflow_dispatch:
push:
branches:
- main
- develop
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
branches:
- main
- develop
paths-ignore:
- "**.md"
- doc/**
- .git/
- .vscode/
- "**.txt"

jobs:
build_apk:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 12.x
- uses: actions/checkout@v3
- name: Install dependencies
run: cd packages/react-native-room-kit/example/; npm install

- name: Cache Gradle Wrapper
uses: actions/cache@v2
with:
path: ~/packages/react-native-room-kit/example/android/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}

- name: Cache Gradle Dependencies
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-caches-
- name: Make Gradlew Executable
run: cd packages/react-native-room-kit/example/android && chmod +x ./gradlew

- name: Generate App APK
run: |
cd packages/react-native-room-kit/example/android
./gradlew assembleDebug --no-daemon
34 changes: 34 additions & 0 deletions .github/workflows/firstinteraction.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: first-interaction

on:
workflow_dispatch:
issues:
types: [opened]
pull_request:
branches:
- main
- develop
types: [opened]

jobs:
check_for_first_interaction:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/first-interaction@main
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: |
Hello! Thank you for filing an issue.
Please include relevant logs or detailed description for faster resolutions.
We really appreciate your contribution!
pr-message: |
Hello! Thank you for your contribution.
If you are fixing a bug, please reference the issue number in the description.
If you are implementing a feature request, please check with the maintainers that the feature will be accepted first.
We really appreciate your contribution!
20 changes: 20 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 'Close stale issues and PRs'
on:
workflow_dispatch:
schedule:
- cron: '30 1 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
with:
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
stale-pr-message: 'This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.'
close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.'
close-pr-message: 'This PR was closed because it has been stalled for 10 days with no activity.'
days-before-issue-stale: 30
days-before-pr-stale: 45
days-before-issue-close: 5
days-before-pr-close: 10
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,17 @@ packages/react-native-room-kit/example/ios/RNExample/GoogleService-Info.plist
packages/react-native-room-kit/example/android/app/google-services.json
packages/react-native-room-kit/lib
packages/react-native-hms/lib

packages/react-native-hms/example/android/reactnative-hms-a32ef61302c5.json
packages/react-native-hms/example/ios/reactnative-hms-a32ef61302c5.json
packages/react-native-hms/example/vendor
packages/react-native-hms/example/ios/Pods
packages/react-native-hms/example/android/app/build

packages/react-native-room-kit/example/android/reactnative-hms-a32ef61302c5.json
packages/react-native-room-kit/example/ios/reactnative-hms-a32ef61302c5.json
packages/react-native-room-kit/example/vendor
packages/react-native-room-kit/example/ios/Pods
packages/react-native-room-kit/example/android/app/build

*.hprof
8 changes: 4 additions & 4 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 0.1
cli:
version: 1.15.0
version: 1.16.0
plugins:
sources:
- id: trunk
Expand All @@ -10,8 +10,8 @@ lint:
enabled:
- [email protected]
- [email protected]
- [email protected].0
- trufflehog@3.55.1
- [email protected].1
- trufflehog@3.56.1
- [email protected]
- [email protected]
- [email protected]
Expand All @@ -21,7 +21,7 @@ lint:
- [email protected]
- [email protected]
- git-diff-check
- markdownlint@0.36.0
- markdownlint@0.37.0
- [email protected]
runtimes:
enabled:
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<a href="https://100ms.live/">
<img src="https://raw.githubusercontent.com/100mslive/react-native-hms/main/100ms.svg" title="100ms logo" float=center height=256>
</a>
[![100ms-svg](https://user-images.githubusercontent.com/93931528/205858417-8c0a0d1b-2d46-4710-9316-7418092fd3d6.svg)](https://100ms.live/)

[![npm](https://img.shields.io/npm/v/@100mslive/react-native-hms)](https://www.npmjs.com/package/@100mslive/react-native-hms)
[![Build](https://github.com/100mslive/100ms-react-native/actions/workflows/build.yml/badge.svg?branch=develop)](https://github.com/100mslive/100ms-react-native/actions/workflows/build.yml)
[![license](https://img.shields.io/npm/l/@100mslive/react-native-hms)](https://www.100ms.live/)
[![quality](https://img.shields.io/npms-io/quality-score/@100mslive/react-native-hms)](https://www.npmjs.com/package/@100mslive/react-native-hms)
[![collaborators](https://img.shields.io/npm/collaborators/@100mslive/react-native-hms)](https://www.npmjs.com/package/@100mslive/react-native-hms)
Expand Down
6 changes: 3 additions & 3 deletions packages/react-native-hms/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ dependencies {
implementation "androidx.constraintlayout:constraintlayout:2.1.3"
implementation "androidx.appcompat:appcompat:1.3.1"

implementation "live.100ms:android-sdk:${sdkVersions["android"]}"
implementation "live.100ms:video-view:${sdkVersions["android"]}"
implementation "live.100ms:hls-player:${sdkVersions["android"]}"
implementation "live.100ms:android-sdk:${sdkVersions["android"]}"
implementation "live.100ms:video-view:${sdkVersions["android"]}"
implementation "live.100ms:hls-player:${sdkVersions["android"]}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ object HMSDecoder {
HMSPeerUpdate.NAME_CHANGED -> {
print("$peerUpdateType received")
}
HMSPeerUpdate.HAND_RAISED_CHANGED -> {
peer.putBoolean("isHandRaised", hmsPeer.isHandRaised)
}
else -> {
print("Unhandled Peer Update Type received: $peerUpdateType")
}
Expand Down Expand Up @@ -205,6 +208,9 @@ object HMSDecoder {
HMSPeerUpdate.NAME_CHANGED -> {
print("$peerUpdateType received")
}
HMSPeerUpdate.HAND_RAISED_CHANGED -> {
peer.putBoolean("isHandRaised", hmsPeer.isHandRaised)
}
else -> {
print("Unhandled Peer Update Type received: $peerUpdateType")
}
Expand All @@ -231,6 +237,8 @@ object HMSDecoder {

peer.putMap("role", this.getHmsRole(hmsPeer.hmsRole))

peer.putBoolean("isHandRaised", hmsPeer.isHandRaised)

hmsPeer.networkQuality?.let {
peer.putMap("networkQuality", this.getHmsNetworkQuality(it))
}
Expand Down Expand Up @@ -479,10 +487,12 @@ object HMSDecoder {
private fun getHmsAudioTrackSettings(hmsAudioTrackSettings: HMSAudioTrackSettings?): WritableMap {
val settings: WritableMap = Arguments.createMap()
if (hmsAudioTrackSettings != null) {
settings.putBoolean(
"useHardwareAcousticEchoCanceler",
hmsAudioTrackSettings.useHardwareAcousticEchoCanceler,
)
hmsAudioTrackSettings.useHardwareAcousticEchoCanceler?.let {
settings.putBoolean(
"useHardwareAcousticEchoCanceler",
it,
)
}
settings.putString("initialState", hmsAudioTrackSettings.initialState.name)
}
return settings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import live.hms.video.utils.HmsUtilities
import org.webrtc.SurfaceViewRenderer
import java.io.ByteArrayOutputStream
import java.util.*
import kotlin.collections.ArrayList

object HMSHelper {
fun areAllRequiredKeysAvailable(
Expand Down Expand Up @@ -668,4 +669,15 @@ object HMSHelper {
}
return HMSAudioManager.AudioDevice.SPEAKER_PHONE
}

fun getPeerListIteratorOptions(data: ReadableMap?): PeerListIteratorOptions? {
if (data == null) {
return null
}
val limit = data.getInt("limit")
val role = data.getString("byRoleName")
val peerIds = data.getArray("byPeerIds")?.toArrayList() as? ArrayList<String>

return PeerListIteratorOptions(null, role, peerIds, limit)
}
}
Loading

0 comments on commit ab068e5

Please sign in to comment.