react-native-tpstreams 0.2.7 → 0.2.9
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
|
@@ -20,9 +20,7 @@ rootProject.allprojects {
|
|
|
20
20
|
repositories {
|
|
21
21
|
mavenCentral() // Ensure this line is here
|
|
22
22
|
google()
|
|
23
|
-
maven {
|
|
24
|
-
url "https://github.com/testpress/TPStreamsAndroidPlayerMaven/raw/main/repo"
|
|
25
|
-
}
|
|
23
|
+
maven { url 'https://jitpack.io' }
|
|
26
24
|
}
|
|
27
25
|
}
|
|
28
26
|
|
|
@@ -84,7 +82,7 @@ def kotlin_version = getExtOrDefault("kotlinVersion")
|
|
|
84
82
|
dependencies {
|
|
85
83
|
implementation "com.facebook.react:react-android"
|
|
86
84
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
87
|
-
implementation
|
|
85
|
+
implementation 'com.github.testpress:TPStreamsAndroidPlayer:1.0.4'
|
|
88
86
|
}
|
|
89
87
|
|
|
90
88
|
react {
|
|
@@ -3,7 +3,7 @@ package com.tpstreams
|
|
|
3
3
|
import com.facebook.react.bridge.ReactApplicationContext
|
|
4
4
|
import com.facebook.react.bridge.ReactContextBaseJavaModule
|
|
5
5
|
import com.facebook.react.bridge.ReactMethod
|
|
6
|
-
import com.tpstreams.player.
|
|
6
|
+
import com.tpstreams.player.TPStreamsSDK
|
|
7
7
|
|
|
8
8
|
class TPStreamsRNModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaModule(reactContext) {
|
|
9
9
|
|
|
@@ -13,6 +13,6 @@ class TPStreamsRNModule(reactContext: ReactApplicationContext) : ReactContextBas
|
|
|
13
13
|
|
|
14
14
|
@ReactMethod
|
|
15
15
|
fun initialize(organizationId: String) {
|
|
16
|
-
|
|
16
|
+
TPStreamsSDK.init(organizationId)
|
|
17
17
|
}
|
|
18
18
|
}
|