Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
Feature/react native 0 71 3 (#72)
Browse files Browse the repository at this point in the history
* Update native sdk to 3.8.0 version. Update react-native sdk to 3.8.0

* Fix problem with sdk dependencies. Mismatch version of @types/react coused problem with update

* Upgrade react native to 0.71.3 version

* Fix test afterupgrade react-native and dependencies

* Upgrade typedoc and its plugins

* Upgrade react native types to 0.71.3 version

* Documentation update

---------

Co-authored-by: Gabriel Radu <gabriel.radu@dolby.com>
Co-authored-by: Dolby.io <hello@dolby.io>
  • Loading branch information
3 people authored Mar 10, 2023
1 parent 317d238 commit 229043b
Show file tree
Hide file tree
Showing 48 changed files with 7,744 additions and 7,193 deletions.
35 changes: 11 additions & 24 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
buildscript {
repositories {
google()
mavenCentral()
}
repositories {
google()
mavenCentral()
}

dependencies {
classpath "com.android.tools.build:gradle:7.2.1"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${KOTLIN_VERSION}"
}
dependencies {
classpath "com.android.tools.build:gradle:7.3.0"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${KOTLIN_VERSION}"
}
}

apply plugin: 'com.android.library'
Expand All @@ -18,10 +18,10 @@ def safeExtGet(prop, fallback) {
}

android {
compileSdkVersion safeExtGet('DolbyioSdk_compileSdkVersion', 32)
compileSdkVersion safeExtGet('DolbyioSdk_compileSdkVersion', 33)
defaultConfig {
minSdkVersion safeExtGet('DolbyioSdk_minSdkVersion', 21)
targetSdkVersion safeExtGet('DolbyioSdk_targetSdkVersion', 32)
targetSdkVersion safeExtGet('DolbyioSdk_targetSdkVersion', 33)
versionCode 1
versionName "1.0"
}
Expand All @@ -46,21 +46,8 @@ android {

repositories {
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
maven {
url("https://android-sdk.voxeet.com/release")
}
maven {
url("https://android-sdk.voxeet.com/beta")
}
google()
mavenCentral()
maven {
url "https://www.jitpack.io"
}
}

dependencies {
Expand All @@ -72,7 +59,7 @@ dependencies {
implementation "androidx.appcompat:appcompat:1.1.0"
implementation "androidx.annotation:annotation:1.1.0"

implementation "com.voxeet.sdk:sdk:3.7.0"
implementation "io.dolby:sdk:3.8.1"

testImplementation("junit:junit:${JUNIT_VERSION}")
testImplementation("org.powermock:powermock-api-mockito2:${POWERMOCK_VERSION}")
Expand Down
2 changes: 1 addition & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
android.useAndroidX=true

KOTLIN_VERSION=1.5.31
KOTLIN_VERSION=1.7.20
MOCKITO_CORE_VERSION=2.26.0
POWERMOCK_VERSION=2.0.2
ROBOLECTRIC_VERSION=4.4
Expand Down
2 changes: 1 addition & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import io.dolby.sdk.comms.reactnative.eventemitters.RNSdkEventEmitter
import io.dolby.sdk.comms.reactnative.utils.lockCatching
import io.dolby.sdk.comms.reactnative.utils.unlockCatching
import org.webrtc.CodecDescriptorFactory
import org.webrtc.VideoCodecType
import org.webrtc.VideoCodecMimeType
import org.webrtc.codecs.CodecDescriptor
import java.util.concurrent.locks.ReentrantLock

Expand Down Expand Up @@ -146,7 +146,7 @@ class RNCommsAPISdkModule(

private fun enableOnEmulator() {
CodecDescriptorFactory
.getEncoders(VideoCodecType.H264)
.getEncoders(VideoCodecMimeType.H264)
?.register(CodecDescriptor("OMX.google", 16, true))
CodecDescriptorFactory
.getDecoders()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ class RNConferenceServiceModule(
@ReactMethod
fun leave(promise: ReactPromise) {
conferenceService.leave()
.rejectIfFalse { "Leave conference operation failed" }
.rejectIfFalse {
"Leave conference operation failed" }
.forward(promise)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ object Promises {
* @param ignoreReturnType flag if [ReactPromise] returns null
*/
fun <T, R> PromiseInOut<T, R>.forward(promise: ReactPromise, ignoreReturnType: Boolean = false) =
then<Void>(ThenVoid { result ->
then(ThenVoid { result ->
if (ignoreReturnType) promise.resolve(null) else promise.resolve(result)
}).error {
Log.d(TAG, "Dispatch error", it)
Expand Down
20 changes: 10 additions & 10 deletions docs/classes/CommsAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,79 +36,79 @@ CommsAPI is a main object that allows an application to interact with Dolby.io s

### audio

**audio**: [`AudioService`](internal.AudioService.md)
**audio**: [`AudioService`](internal.AudioService.md) = `AudioService`

Retrieves the AudioService instance that allows changing audio settings for the local and remote participants.

___

### command

**command**: [`CommandService`](internal.CommandService.md)
**command**: [`CommandService`](internal.CommandService.md) = `CommandService`

Retrieves the CommandService instance that allows sending messages to conferences.

___

### conference

**conference**: [`ConferenceService`](internal.ConferenceService.md)
**conference**: [`ConferenceService`](internal.ConferenceService.md) = `ConferenceService`

Retrieves the ConferenceService instance that allows interacting with conferences.

___

### filePresentation

**filePresentation**: [`FilePresentationService`](internal.FilePresentationService.md)
**filePresentation**: [`FilePresentationService`](internal.FilePresentationService.md) = `FilePresentationService`

Retrieves the FilePresentationService instance that allows presenting files during conferences.

___

### mediaDevice

**mediaDevice**: [`MediaDeviceService`](internal.MediaDeviceService.md)
**mediaDevice**: [`MediaDeviceService`](internal.MediaDeviceService.md) = `MediaDeviceService`

Retrieves the MediaDeviceService instance that allows interacting with devices through the system.

___

### notification

**notification**: [`NotificationService`](internal.NotificationService.md)
**notification**: [`NotificationService`](internal.NotificationService.md) = `NotificationService`

Retrieves the NotificationService instance that allows inviting participants to a conference.

___

### recording

**recording**: [`RecordingService`](internal.RecordingService.md)
**recording**: [`RecordingService`](internal.RecordingService.md) = `RecordingService`

Retrieves the RecordingService instance that allows recording conferences.

___

### session

**session**: [`SessionService`](internal.SessionService.md)
**session**: [`SessionService`](internal.SessionService.md) = `SessionService`

Retrieves the SessionService instance that allows using sessions.

___

### videoPresentation

**videoPresentation**: [`VideoPresentationService`](internal.VideoPresentationService.md)
**videoPresentation**: [`VideoPresentationService`](internal.VideoPresentationService.md) = `VideoPresentationService`

Retrieves the VideoPresentationService instance that allows presenting videos during conferences.

___

### video

**video**: [`VideoService`](internal.VideoService.md)
**video**: [`VideoService`](internal.VideoService.md) = `VideoService`

Retrieves the VideoService instance that allows enabling and disabling video for the local and remote participants.

Expand Down
8 changes: 4 additions & 4 deletions docs/enums/internal.AudioCaptureMode.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ This model is available in SDK 3.7 and later.

## Table of contents

### Enumeration members
### Enumeration Members

- [Standard](internal.AudioCaptureMode.md#standard)
- [Unprocessed](internal.AudioCaptureMode.md#unprocessed)

## Enumeration members
## Enumeration Members

### Standard

**Standard** = `"STANDARD"`
**Standard** = ``"STANDARD"``

Enables audio processing to improve voice quality.

___

### Unprocessed

**Unprocessed** = `"UNPROCESSED"`
**Unprocessed** = ``"UNPROCESSED"``

Disables audio processing to allow transmitting non-voice audio to a conference.
8 changes: 4 additions & 4 deletions docs/enums/internal.Codec.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@ The Codec enum gathers the available video codecs.

## Table of contents

### Enumeration members
### Enumeration Members

- [H264](internal.Codec.md#h264)
- [VP8](internal.Codec.md#vp8)

## Enumeration members
## Enumeration Members

### H264

**H264** = `"H264"`
**H264** = ``"H264"``

The default H264 video codec.

___

### VP8

**VP8** = `"VP8"`
**VP8** = ``"VP8"``

The VP8 video codec.
12 changes: 6 additions & 6 deletions docs/enums/internal.ComfortNoiseLevel.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,41 @@ The ComfortNoiseLevel enum gathers the available comfort noise levels.

## Table of contents

### Enumeration members
### Enumeration Members

- [Default](internal.ComfortNoiseLevel.md#default)
- [Low](internal.ComfortNoiseLevel.md#low)
- [Medium](internal.ComfortNoiseLevel.md#medium)
- [Off](internal.ComfortNoiseLevel.md#off)

## Enumeration members
## Enumeration Members

### Default

**Default** = `"default"`
**Default** = ``"default"``

The default comfort noise level that is based on the device database. The database includes the proper comfort noise levels, individual for all devices.

___

### Low

**Low** = `"low"`
**Low** = ``"low"``

The low comfort noise level.

___

### Medium

**Medium** = `"medium"`
**Medium** = ``"medium"``

The medium comfort noise level.

___

### Off

**Off** = `"off"`
**Off** = ``"off"``

The disabled comfort noise.
Loading

0 comments on commit 229043b

Please sign in to comment.