react-native-tpstreams 1.0.3-debug.4 → 1.0.3-debug.5
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.
|
@@ -21,15 +21,19 @@ protocol TokenRequestDelegate: AnyObject {
|
|
|
21
21
|
class TPStreamsDownloadModule: RCTEventEmitter, TPStreamsDownloadDelegate {
|
|
22
22
|
|
|
23
23
|
private let downloadManager = TPStreamsDownloadManager.shared
|
|
24
|
-
private var isListening =
|
|
24
|
+
private var isListening = false
|
|
25
25
|
private var tokenDelegate: TokenRequestDelegate?
|
|
26
|
-
static var
|
|
27
|
-
|
|
26
|
+
private static var _shared: TPStreamsDownloadModule?
|
|
27
|
+
|
|
28
|
+
static var shared: TPStreamsDownloadModule? {
|
|
29
|
+
return _shared
|
|
30
|
+
}
|
|
31
|
+
|
|
28
32
|
override init() {
|
|
29
33
|
super.init()
|
|
34
|
+
TPStreamsDownloadModule._shared = self
|
|
30
35
|
downloadManager.setTPStreamsDownloadDelegate(tpStreamsDownloadDelegate: self)
|
|
31
|
-
|
|
32
|
-
print("TPStreamsDownloadModule initialized")
|
|
36
|
+
print("DownloadModule: init done")
|
|
33
37
|
print("Downloadmanager delegates are set")
|
|
34
38
|
}
|
|
35
39
|
|