@fishjam-cloud/react-native-client 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/android/build.gradle
CHANGED
|
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
|
|
|
3
3
|
apply plugin: 'maven-publish'
|
|
4
4
|
|
|
5
5
|
group = 'org.membraneframework.reactnative'
|
|
6
|
-
version = '0.1.
|
|
6
|
+
version = '0.1.1'
|
|
7
7
|
|
|
8
8
|
buildscript {
|
|
9
9
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
@@ -59,7 +59,7 @@ android {
|
|
|
59
59
|
minSdkVersion safeExtGet("minSdkVersion", 21)
|
|
60
60
|
targetSdkVersion safeExtGet("targetSdkVersion", 31)
|
|
61
61
|
versionCode 1
|
|
62
|
-
versionName "0.1.
|
|
62
|
+
versionName "0.1.1"
|
|
63
63
|
}
|
|
64
64
|
lintOptions {
|
|
65
65
|
abortOnError false
|
|
@@ -82,7 +82,7 @@ dependencies {
|
|
|
82
82
|
implementation project(':fishjam-cloud-android-client')
|
|
83
83
|
} else {
|
|
84
84
|
// todo when released, changed repo name etc then update
|
|
85
|
-
implementation 'com.github.fishjam-cloud:mobile-client-sdk:0.1.
|
|
85
|
+
implementation 'com.github.fishjam-cloud:mobile-client-sdk:0.1.1'
|
|
86
86
|
}
|
|
87
87
|
api 'com.github.davidliu:audioswitch:8edf84ee46cdbc84c2b7725aa8f8d66363e19876'
|
|
88
88
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
|
@@ -789,26 +789,26 @@ class RNFishjamClient(
|
|
|
789
789
|
}
|
|
790
790
|
}
|
|
791
791
|
|
|
792
|
-
private fun addOrUpdateTrack(
|
|
792
|
+
private fun addOrUpdateTrack(track: Track) {
|
|
793
793
|
emitEndpoints()
|
|
794
794
|
onTracksUpdateListeners.forEach { it.onTracksUpdate() }
|
|
795
795
|
}
|
|
796
796
|
|
|
797
|
-
override fun onTrackReady(
|
|
797
|
+
override fun onTrackReady(track: Track) {
|
|
798
798
|
CoroutineScope(Dispatchers.Main).launch {
|
|
799
|
-
addOrUpdateTrack(
|
|
799
|
+
addOrUpdateTrack(track)
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
802
|
|
|
803
|
-
override fun onTrackAdded(
|
|
803
|
+
override fun onTrackAdded(track: Track) {}
|
|
804
804
|
|
|
805
|
-
override fun onTrackRemoved(
|
|
805
|
+
override fun onTrackRemoved(track: Track) {
|
|
806
806
|
CoroutineScope(Dispatchers.Main).launch {
|
|
807
807
|
emitEndpoints()
|
|
808
808
|
}
|
|
809
809
|
}
|
|
810
810
|
|
|
811
|
-
override fun onTrackUpdated(
|
|
811
|
+
override fun onTrackUpdated(track: Track) {
|
|
812
812
|
CoroutineScope(Dispatchers.Main).launch {
|
|
813
813
|
emitEndpoints()
|
|
814
814
|
}
|
|
@@ -724,7 +724,9 @@ class RNFishjamClient: FishjamClientListener {
|
|
|
724
724
|
emitEndpoints()
|
|
725
725
|
}
|
|
726
726
|
|
|
727
|
-
func onPeerUpdated(endpoint: Endpoint) {
|
|
727
|
+
func onPeerUpdated(endpoint: Endpoint) {
|
|
728
|
+
emitEndpoints()
|
|
729
|
+
}
|
|
728
730
|
|
|
729
731
|
func onSocketClose(code: UInt16, reason: String) {
|
|
730
732
|
if let connectPromise = connectPromise {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fishjam-cloud/react-native-client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "A React Native client for Fishjam Cloud",
|
|
5
5
|
"author": "Fishjam Cloud Team",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -16,8 +16,6 @@
|
|
|
16
16
|
"prepublishOnly": "expo-module prepublishOnly",
|
|
17
17
|
"expo-module": "expo-module",
|
|
18
18
|
"release": "release-it",
|
|
19
|
-
"releaseAppAndroid": "cd examples/video-chat/android && fastlane deploy",
|
|
20
|
-
"releaseAppIos": "cd example/ios && fastlane deploy",
|
|
21
19
|
"docs": "sed 's/\\.github\\/images/media/g' README.md > README_docs.md && typedoc src/index.tsx --media ./.github/images --readme README_docs.md && rm README_docs.md",
|
|
22
20
|
"typecheck": "yarn tsc --noEmit && cd example && yarn tsc --noEmit"
|
|
23
21
|
},
|