@takeoffmedia/react-native-penthera 0.1.4 → 0.1.6
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/ios/Catalog.swift +3 -1
- package/ios/Penthera.m +7 -2
- package/ios/Penthera.swift +38 -4
- package/ios/Penthera.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/ios/Penthera.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/Penthera.xcodeproj/project.xcworkspace/xcuserdata/joseguerreroot.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/Penthera.xcodeproj/xcuserdata/joseguerreroot.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +56 -0
- package/ios/Penthera.xcodeproj/xcuserdata/joseguerreroot.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
- package/ios/Util.swift +16 -1
- package/lib/typescript/interface/PentheraTypes.d.ts +28 -24
- package/lib/typescript/interface/PentheraTypes.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/interface/PentheraTypes.ts +28 -24
package/ios/Catalog.swift
CHANGED
|
@@ -46,12 +46,14 @@ struct DataItem: Codable {
|
|
|
46
46
|
var seasonId: String?
|
|
47
47
|
var seasonTitle: String?
|
|
48
48
|
var genres: Array<String>?
|
|
49
|
-
var duration:
|
|
49
|
+
var duration: Double?
|
|
50
50
|
var customId: String?
|
|
51
51
|
var offers: Array<Offers>?
|
|
52
52
|
var images: Images?
|
|
53
53
|
var customFields: CustomFields?
|
|
54
54
|
var classification: Classification?
|
|
55
|
+
var estimatedSize: Int?
|
|
56
|
+
var dataOffers: Array<String>?
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
struct Offers: Codable {
|
package/ios/Penthera.m
CHANGED
|
@@ -13,7 +13,7 @@ RCT_EXTERN_METHOD(initializeSdk:(NSString*)user
|
|
|
13
13
|
withPublicKey:(NSString*)publicKey
|
|
14
14
|
withPrivateKey:(NSString*)privateKey
|
|
15
15
|
withResolver:(RCTPromiseResolveBlock)resolve
|
|
16
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
16
|
+
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
17
17
|
|
|
18
18
|
RCT_EXTERN_METHOD(getDownloads:(NSString*)blank
|
|
19
19
|
withResolver:(RCTPromiseResolveBlock)resolve
|
|
@@ -25,7 +25,7 @@ RCT_EXTERN_METHOD(download:(NSString*)catalog
|
|
|
25
25
|
|
|
26
26
|
RCT_EXTERN_METHOD(delete:(NSString*)assetID
|
|
27
27
|
withResolver:(RCTPromiseResolveBlock)resolve
|
|
28
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
28
|
+
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
RCT_EXTERN_METHOD(playAsset:(NSString*)assetID
|
|
@@ -36,6 +36,11 @@ RCT_EXTERN_METHOD(pauseDownload:(NSString*)user
|
|
|
36
36
|
withResolver:(RCTPromiseResolveBlock)resolve
|
|
37
37
|
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
38
38
|
|
|
39
|
+
RCT_EXTERN_METHOD(deleteMany:(NSArray<NSString *> *)assetIDS
|
|
40
|
+
withResolver:(RCTPromiseResolveBlock)resolve
|
|
41
|
+
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
42
|
+
|
|
43
|
+
|
|
39
44
|
+ (BOOL)requiresMainQueueSetup
|
|
40
45
|
{
|
|
41
46
|
return NO;
|
package/ios/Penthera.swift
CHANGED
|
@@ -77,10 +77,9 @@ class Penthera: RCTEventEmitter, VirtuosoDownloadEngineNotificationsDelegate {
|
|
|
77
77
|
title: va.userInfo?["title"] as? String,
|
|
78
78
|
seasonId: va.userInfo?["seasonId"] as? String,
|
|
79
79
|
seasonTitle: va.userInfo?["seasonTitle"] as? String,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
duration: va.duration,
|
|
81
|
+
estimatedSize: Int(va.estimatedSize),
|
|
82
|
+
dataOffers: parseDataOffer(offer: va.userInfo?["dataOffers"] as Any)
|
|
84
83
|
)
|
|
85
84
|
let catalog = OfflineCatalog(
|
|
86
85
|
id: va.assetID,
|
|
@@ -302,6 +301,41 @@ class Penthera: RCTEventEmitter, VirtuosoDownloadEngineNotificationsDelegate {
|
|
|
302
301
|
}
|
|
303
302
|
}
|
|
304
303
|
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
@objc(deleteMany:withResolver:withRejecter:)
|
|
307
|
+
func deleteMany(assetIDS: [String], resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock) -> Void {
|
|
308
|
+
// initialize assetResponse {}. Ex {"123":false, "543":false}
|
|
309
|
+
var assetsResponse: [String: Bool] = Dictionary(uniqueKeysWithValues: assetIDS.map { ($0, false) })
|
|
310
|
+
|
|
311
|
+
let downloadComplete = VirtuosoAsset.completedAssets(withAvailabilityFilter: false)
|
|
312
|
+
if(downloadComplete.count > 0) {
|
|
313
|
+
var assetsToDelete: [VirtuosoAsset] = []
|
|
314
|
+
for asset in downloadComplete {
|
|
315
|
+
if let va = asset as? VirtuosoAsset, assetIDS.contains(va.assetID) {
|
|
316
|
+
assetsToDelete.append(va)
|
|
317
|
+
assetsResponse[va.assetID] = true
|
|
318
|
+
if assetsToDelete.count == assetIDS.count { // Se encontraron todos los assets, break for.
|
|
319
|
+
break
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
VirtuosoAsset.delete(assetsToDelete) { () in
|
|
326
|
+
resolve(assetsResponse)
|
|
327
|
+
}
|
|
328
|
+
} else {
|
|
329
|
+
// No hay assets completados para eliminar
|
|
330
|
+
let errorMessage = "deleteMany: completedAssets is empty"
|
|
331
|
+
let userInfo = [NSLocalizedDescriptionKey: errorMessage]
|
|
332
|
+
let error = NSError(domain: "takeoffmedia-react-native-penthera", code: 0, userInfo: userInfo)
|
|
333
|
+
reject("ASSET_DELETE_ERROR", errorMessage, error)
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
305
339
|
@objc open override func supportedEvents() -> [String] {
|
|
306
340
|
return EventEmitter.sharedInstance.allEvents
|
|
307
341
|
}
|
|
Binary file
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<Bucket
|
|
3
|
+
uuid = "3AE98629-7421-4561-B12C-C06B8B6A3023"
|
|
4
|
+
type = "1"
|
|
5
|
+
version = "2.0">
|
|
6
|
+
<Breakpoints>
|
|
7
|
+
<BreakpointProxy
|
|
8
|
+
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
9
|
+
<BreakpointContent
|
|
10
|
+
uuid = "A5D166B0-3C57-4F4D-A845-BDB81498DA0F"
|
|
11
|
+
shouldBeEnabled = "No"
|
|
12
|
+
ignoreCount = "0"
|
|
13
|
+
continueAfterRunningActions = "No"
|
|
14
|
+
filePath = "Penthera.swift"
|
|
15
|
+
startingColumnNumber = "9223372036854775807"
|
|
16
|
+
endingColumnNumber = "9223372036854775807"
|
|
17
|
+
startingLineNumber = "18"
|
|
18
|
+
endingLineNumber = "18"
|
|
19
|
+
landmarkName = "initializeSdk(user:backplaneUrl:publicKey:privateKey:resolve:reject:)"
|
|
20
|
+
landmarkType = "7">
|
|
21
|
+
</BreakpointContent>
|
|
22
|
+
</BreakpointProxy>
|
|
23
|
+
<BreakpointProxy
|
|
24
|
+
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
25
|
+
<BreakpointContent
|
|
26
|
+
uuid = "5D7AE47B-D5FC-4468-A75B-C414F3F8A58C"
|
|
27
|
+
shouldBeEnabled = "No"
|
|
28
|
+
ignoreCount = "0"
|
|
29
|
+
continueAfterRunningActions = "No"
|
|
30
|
+
filePath = "Penthera.swift"
|
|
31
|
+
startingColumnNumber = "9223372036854775807"
|
|
32
|
+
endingColumnNumber = "9223372036854775807"
|
|
33
|
+
startingLineNumber = "25"
|
|
34
|
+
endingLineNumber = "25"
|
|
35
|
+
landmarkName = "initializeSdk(user:backplaneUrl:publicKey:privateKey:resolve:reject:)"
|
|
36
|
+
landmarkType = "7">
|
|
37
|
+
</BreakpointContent>
|
|
38
|
+
</BreakpointProxy>
|
|
39
|
+
<BreakpointProxy
|
|
40
|
+
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
41
|
+
<BreakpointContent
|
|
42
|
+
uuid = "E3C50B30-46CF-4D56-8C49-C257C70E0ACC"
|
|
43
|
+
shouldBeEnabled = "No"
|
|
44
|
+
ignoreCount = "0"
|
|
45
|
+
continueAfterRunningActions = "No"
|
|
46
|
+
filePath = "Penthera.swift"
|
|
47
|
+
startingColumnNumber = "9223372036854775807"
|
|
48
|
+
endingColumnNumber = "9223372036854775807"
|
|
49
|
+
startingLineNumber = "26"
|
|
50
|
+
endingLineNumber = "26"
|
|
51
|
+
landmarkName = "initializeSdk(user:backplaneUrl:publicKey:privateKey:resolve:reject:)"
|
|
52
|
+
landmarkType = "7">
|
|
53
|
+
</BreakpointContent>
|
|
54
|
+
</BreakpointProxy>
|
|
55
|
+
</Breakpoints>
|
|
56
|
+
</Bucket>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>SchemeUserState</key>
|
|
6
|
+
<dict>
|
|
7
|
+
<key>Penthera.xcscheme_^#shared#^_</key>
|
|
8
|
+
<dict>
|
|
9
|
+
<key>orderHint</key>
|
|
10
|
+
<integer>0</integer>
|
|
11
|
+
</dict>
|
|
12
|
+
</dict>
|
|
13
|
+
</dict>
|
|
14
|
+
</plist>
|
package/ios/Util.swift
CHANGED
|
@@ -43,7 +43,7 @@ func parseOffers(offer: Any) -> Array<Offers> {
|
|
|
43
43
|
ownership: ownership,
|
|
44
44
|
scope: scope,
|
|
45
45
|
customFields: customFields
|
|
46
|
-
|
|
46
|
+
|
|
47
47
|
)
|
|
48
48
|
offers.append(offer)
|
|
49
49
|
}
|
|
@@ -86,3 +86,18 @@ func parseCustomFields(anyElement: Any) -> CustomFields? {
|
|
|
86
86
|
// The element is not a dictionary, so return nil.
|
|
87
87
|
return nil
|
|
88
88
|
}
|
|
89
|
+
|
|
90
|
+
func parseDataOffer(offer: Any) -> Array<String> {
|
|
91
|
+
guard let offersArray = offer as? Array<String> else {
|
|
92
|
+
// fatalError("Invalid JSON")
|
|
93
|
+
print("invalid offer")
|
|
94
|
+
return []
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
var result: [String] = []
|
|
98
|
+
for (_, element) in offersArray.enumerated() {
|
|
99
|
+
result.append(element)
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
return result
|
|
103
|
+
}
|
|
@@ -14,34 +14,38 @@ export declare namespace PentheraTypes {
|
|
|
14
14
|
isCompleted?: boolean;
|
|
15
15
|
download_percentage?: number;
|
|
16
16
|
isPaused?: boolean;
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
episodes?: ItemCatalog[];
|
|
18
|
+
estimatedSize?: number;
|
|
19
|
+
duration?: number;
|
|
20
|
+
dataOffers?: string[];
|
|
19
21
|
}
|
|
20
22
|
interface DataItem {
|
|
21
|
-
type
|
|
22
|
-
id
|
|
23
|
-
title
|
|
24
|
-
contextualTitle
|
|
25
|
-
shortDescription
|
|
26
|
-
classification
|
|
27
|
-
path
|
|
28
|
-
watchPath
|
|
29
|
-
scope
|
|
30
|
-
releaseYear
|
|
31
|
-
episodeNumber
|
|
32
|
-
episodeName
|
|
33
|
-
showId
|
|
34
|
-
showTitle
|
|
35
|
-
seasonId
|
|
36
|
-
seasonTitle
|
|
37
|
-
genres
|
|
38
|
-
duration
|
|
39
|
-
customId
|
|
40
|
-
offers
|
|
41
|
-
images
|
|
42
|
-
customFields
|
|
23
|
+
type?: string;
|
|
24
|
+
id?: string;
|
|
25
|
+
title?: string;
|
|
26
|
+
contextualTitle?: string;
|
|
27
|
+
shortDescription?: string;
|
|
28
|
+
classification?: Classification;
|
|
29
|
+
path?: string;
|
|
30
|
+
watchPath?: string;
|
|
31
|
+
scope?: string[];
|
|
32
|
+
releaseYear?: number;
|
|
33
|
+
episodeNumber?: number;
|
|
34
|
+
episodeName?: string;
|
|
35
|
+
showId?: string;
|
|
36
|
+
showTitle?: string;
|
|
37
|
+
seasonId?: string;
|
|
38
|
+
seasonTitle?: string;
|
|
39
|
+
genres?: string[];
|
|
40
|
+
duration?: number;
|
|
41
|
+
customId?: string;
|
|
42
|
+
offers?: Offer[];
|
|
43
|
+
images?: Images;
|
|
44
|
+
customFields?: {
|
|
43
45
|
[key: string]: string;
|
|
44
46
|
} | {};
|
|
47
|
+
dataOffers?: string[];
|
|
48
|
+
estimatedSize?: number;
|
|
45
49
|
}
|
|
46
50
|
interface Classification {
|
|
47
51
|
code: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PentheraTypes.d.ts","sourceRoot":"","sources":["../../../src/interface/PentheraTypes.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,UAAiB,eAAe;QAC9B,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;KACpB;IAED,UAAiB,WAAW;QAC1B,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,OAAO,GAAG,MAAM,CAAC;QACtB,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,SAAS,CAAC,EAAE,SAAS,CAAC;QACtB,IAAI,CAAC,EAAE,QAAQ,CAAC;QACh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,EAAE,MAAM,CAAC;QACtB,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,cAAc,EAAE,MAAM,CAAC;QACvB,qBAAqB,EAAE,MAAM,CAAC;QAC9B,SAAS,EAAE,MAAM,CAAC;QAClB,cAAc,EAAE,MAAM,CAAC;QACvB,eAAe,EAAE,MAAM,CAAC;QACxB,0BAA0B,EAAE,MAAM,CAAC;QACnC,wBAAwB,EAAE,MAAM,CAAC;QACjC,kBAAkB,EAAE,MAAM,CAAC;QAC3B,QAAQ,EAAE,MAAM,CAAC;QACjB,aAAa,EAAE,MAAM,CAAC;QACtB,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB;CACF"}
|
package/package.json
CHANGED
|
@@ -15,33 +15,37 @@ export declare namespace PentheraTypes {
|
|
|
15
15
|
isCompleted?: boolean;
|
|
16
16
|
download_percentage?: number;
|
|
17
17
|
isPaused?: boolean;
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
episodes?: ItemCatalog[];
|
|
19
|
+
estimatedSize?: number;
|
|
20
|
+
duration?: number;
|
|
21
|
+
dataOffers?: string[];
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
export interface DataItem {
|
|
23
|
-
type
|
|
24
|
-
id
|
|
25
|
-
title
|
|
26
|
-
contextualTitle
|
|
27
|
-
shortDescription
|
|
28
|
-
classification
|
|
29
|
-
path
|
|
30
|
-
watchPath
|
|
31
|
-
scope
|
|
32
|
-
releaseYear
|
|
33
|
-
episodeNumber
|
|
34
|
-
episodeName
|
|
35
|
-
showId
|
|
36
|
-
showTitle
|
|
37
|
-
seasonId
|
|
38
|
-
seasonTitle
|
|
39
|
-
genres
|
|
40
|
-
duration
|
|
41
|
-
customId
|
|
42
|
-
offers
|
|
43
|
-
images
|
|
44
|
-
customFields
|
|
25
|
+
type?: string;
|
|
26
|
+
id?: string;
|
|
27
|
+
title?: string;
|
|
28
|
+
contextualTitle?: string;
|
|
29
|
+
shortDescription?: string;
|
|
30
|
+
classification?: Classification;
|
|
31
|
+
path?: string;
|
|
32
|
+
watchPath?: string;
|
|
33
|
+
scope?: string[];
|
|
34
|
+
releaseYear?: number;
|
|
35
|
+
episodeNumber?: number;
|
|
36
|
+
episodeName?: string;
|
|
37
|
+
showId?: string;
|
|
38
|
+
showTitle?: string;
|
|
39
|
+
seasonId?: string;
|
|
40
|
+
seasonTitle?: string;
|
|
41
|
+
genres?: string[];
|
|
42
|
+
duration?: number;
|
|
43
|
+
customId?: string;
|
|
44
|
+
offers?: Offer[];
|
|
45
|
+
images?: Images;
|
|
46
|
+
customFields?: { [key: string]: string } | {};
|
|
47
|
+
dataOffers?: string[];
|
|
48
|
+
estimatedSize?: number;
|
|
45
49
|
}
|
|
46
50
|
|
|
47
51
|
export interface Classification {
|