react-native-tpstreams 1.1.0-debug.1 → 1.1.0-debug.2
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.
|
@@ -12,7 +12,7 @@ Pod::Spec.new do |s|
|
|
|
12
12
|
s.swift_version = '5.0'
|
|
13
13
|
|
|
14
14
|
s.platforms = { :ios => min_ios_version_supported }
|
|
15
|
-
s.source = { :git => "https://github.com/testpress/react-native-tpstreams.git", :tag => "#{s.version}" }
|
|
15
|
+
# s.source = { :git => "https://github.com/testpress/react-native-tpstreams.git", :tag => "#{s.version}" }
|
|
16
16
|
|
|
17
17
|
s.source_files = "ios/**/*.{h,m,mm,cpp,swift}"
|
|
18
18
|
s.private_header_files = "ios/**/*.h"
|
|
@@ -21,7 +21,12 @@ Pod::Spec.new do |s|
|
|
|
21
21
|
'DEFINES_MODULE' => 'YES',
|
|
22
22
|
'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES'
|
|
23
23
|
}
|
|
24
|
-
s.dependency "TPStreamsSDK" , "1.2.
|
|
24
|
+
s.dependency "TPStreamsSDK" , "1.2.13"
|
|
25
|
+
s.source = {
|
|
26
|
+
:git => "https://github.com/testpress/iOSPlayerSDK.git",
|
|
27
|
+
:branch => "fix_download_cleanup"
|
|
28
|
+
}
|
|
29
|
+
|
|
25
30
|
|
|
26
31
|
|
|
27
32
|
# Ensure the module is not built as a framework to avoid bridging header conflicts
|
|
@@ -40,19 +40,6 @@ class TPStreamsDownloadModule: RCTEventEmitter, TPStreamsDownloadDelegate {
|
|
|
40
40
|
// no-op to force module initialization for setting up the token expiry delegate chain.
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
@objc
|
|
44
|
-
public func deletePartiallyDownloadedVideos() {
|
|
45
|
-
debugPrint("Deleting partially downloaded videos")
|
|
46
|
-
let downloads = downloadManager.getAllOfflineAssets()
|
|
47
|
-
print("Downloads: \(downloads)")
|
|
48
|
-
for download in downloads {
|
|
49
|
-
if download.status != Status.finished.rawValue {
|
|
50
|
-
print("Deleting download: \(download.assetId)")
|
|
51
|
-
downloadManager.cancelDownload(download.assetId)
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
}
|
|
56
43
|
func setAccessTokenDelegate(_ delegate: TokenRequestDelegate) {
|
|
57
44
|
self.tokenDelegate = delegate
|
|
58
45
|
}
|
|
@@ -19,10 +19,7 @@ class TPStreamsModule: NSObject {
|
|
|
19
19
|
|
|
20
20
|
private func initializeDownloadModule() {
|
|
21
21
|
_ = TPStreamsDownloadModule.shared
|
|
22
|
-
print("Initializing download module")
|
|
23
22
|
ensureDownloadModuleInitialized()
|
|
24
|
-
print("Shared is not none", TPStreamsDownloadModule.shared)
|
|
25
|
-
TPStreamsDownloadModule.shared?.deletePartiallyDownloadedVideos()
|
|
26
23
|
}
|
|
27
24
|
|
|
28
25
|
private func ensureDownloadModuleInitialized() {
|