@onekeyfe/react-native-range-downloader 3.0.81-alpha.8 → 3.0.81
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/ReactNativeRangeDownloader.podspec +0 -8
- package/android/build.gradle +0 -1
- package/android/src/main/java/com/margelo/nitro/reactnativerangedownloader/ReactNativeRangeDownloader.kt +0 -144
- package/ios/RangeDownloadLogic.swift +0 -120
- package/ios/ReactNativeRangeDownloader.swift +6 -623
- package/lib/module/index.js +1 -2
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/ReactNativeRangeDownloader.nitro.d.ts +1 -91
- package/lib/typescript/src/ReactNativeRangeDownloader.nitro.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +0 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/nitrogen/generated/android/c++/JDownloadChannel.hpp +0 -3
- package/nitrogen/generated/android/c++/JHybridReactNativeRangeDownloaderSpec.cpp +0 -248
- package/nitrogen/generated/android/c++/JHybridReactNativeRangeDownloaderSpec.hpp +0 -12
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativerangedownloader/DownloadChannel.kt +1 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativerangedownloader/HybridReactNativeRangeDownloaderSpec.kt +0 -49
- package/nitrogen/generated/ios/ReactNativeRangeDownloader-Swift-Cxx-Bridge.cpp +0 -48
- package/nitrogen/generated/ios/ReactNativeRangeDownloader-Swift-Cxx-Bridge.hpp +0 -329
- package/nitrogen/generated/ios/ReactNativeRangeDownloader-Swift-Cxx-Umbrella.hpp +0 -53
- package/nitrogen/generated/ios/c++/HybridReactNativeRangeDownloaderSpecSwift.hpp +0 -152
- package/nitrogen/generated/ios/swift/DownloadChannel.swift +0 -4
- package/nitrogen/generated/ios/swift/HybridReactNativeRangeDownloaderSpec.swift +0 -12
- package/nitrogen/generated/ios/swift/HybridReactNativeRangeDownloaderSpec_cxx.swift +0 -221
- package/nitrogen/generated/shared/c++/DownloadChannel.hpp +0 -4
- package/nitrogen/generated/shared/c++/HybridReactNativeRangeDownloaderSpec.cpp +0 -12
- package/nitrogen/generated/shared/c++/HybridReactNativeRangeDownloaderSpec.hpp +0 -58
- package/package.json +2 -4
- package/src/ReactNativeRangeDownloader.nitro.ts +1 -127
- package/src/index.tsx +1 -3
- package/android/src/main/java/com/margelo/nitro/reactnativerangedownloader/FirmwareArchiveRules.kt +0 -284
- package/android/src/main/java/com/margelo/nitro/reactnativerangedownloader/FirmwareArtifactStore.kt +0 -774
- package/android/src/test/java/com/margelo/nitro/reactnativerangedownloader/FirmwareArchiveRulesTest.kt +0 -75
- package/android/src/test/java/com/margelo/nitro/reactnativerangedownloader/FirmwareArtifactDeadlineTest.kt +0 -26
- package/ios/FirmwareArchiveMinizipBridge.h +0 -33
- package/ios/FirmwareArchiveMinizipBridge.mm +0 -213
- package/ios/FirmwareArtifactStore.swift +0 -1445
- package/ios/FirmwareBackgroundSessionEventRouter.swift +0 -17
- package/nitrogen/generated/android/c++/JFirmwareArchiveExpectedEntry.hpp +0 -69
- package/nitrogen/generated/android/c++/JFirmwareArchiveMaterializeParams.hpp +0 -86
- package/nitrogen/generated/android/c++/JFirmwareArchiveMaterializeResult.hpp +0 -80
- package/nitrogen/generated/android/c++/JFirmwareArchiveMaterializedArtifact.hpp +0 -63
- package/nitrogen/generated/android/c++/JFirmwareArtifactCancelParams.hpp +0 -57
- package/nitrogen/generated/android/c++/JFirmwareArtifactCapabilities.hpp +0 -88
- package/nitrogen/generated/android/c++/JFirmwareArtifactDownloadParams.hpp +0 -98
- package/nitrogen/generated/android/c++/JFirmwareArtifactLease.hpp +0 -57
- package/nitrogen/generated/android/c++/JFirmwareArtifactLeaseCreateParams.hpp +0 -57
- package/nitrogen/generated/android/c++/JFirmwareArtifactLeaseReleaseParams.hpp +0 -61
- package/nitrogen/generated/android/c++/JFirmwareArtifactLeaseRetainParams.hpp +0 -61
- package/nitrogen/generated/android/c++/JFirmwareArtifactReaderCloseParams.hpp +0 -57
- package/nitrogen/generated/android/c++/JFirmwareArtifactReaderInfo.hpp +0 -61
- package/nitrogen/generated/android/c++/JFirmwareArtifactReaderReadParams.hpp +0 -65
- package/nitrogen/generated/android/c++/JFirmwareArtifactReceipt.hpp +0 -65
- package/nitrogen/generated/android/c++/JFirmwareArtifactRefParams.hpp +0 -57
- package/nitrogen/generated/android/c++/JFirmwareArtifactSweepResult.hpp +0 -61
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativerangedownloader/FirmwareArchiveExpectedEntry.kt +0 -47
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativerangedownloader/FirmwareArchiveMaterializeParams.kt +0 -44
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativerangedownloader/FirmwareArchiveMaterializeResult.kt +0 -38
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativerangedownloader/FirmwareArchiveMaterializedArtifact.kt +0 -41
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativerangedownloader/FirmwareArtifactCancelParams.kt +0 -38
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativerangedownloader/FirmwareArtifactCapabilities.kt +0 -47
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativerangedownloader/FirmwareArtifactDownloadParams.kt +0 -68
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativerangedownloader/FirmwareArtifactLease.kt +0 -38
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativerangedownloader/FirmwareArtifactLeaseCreateParams.kt +0 -38
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativerangedownloader/FirmwareArtifactLeaseReleaseParams.kt +0 -41
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativerangedownloader/FirmwareArtifactLeaseRetainParams.kt +0 -41
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativerangedownloader/FirmwareArtifactReaderCloseParams.kt +0 -38
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativerangedownloader/FirmwareArtifactReaderInfo.kt +0 -41
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativerangedownloader/FirmwareArtifactReaderReadParams.kt +0 -44
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativerangedownloader/FirmwareArtifactReceipt.kt +0 -44
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativerangedownloader/FirmwareArtifactRefParams.kt +0 -38
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativerangedownloader/FirmwareArtifactSweepResult.kt +0 -41
- package/nitrogen/generated/ios/swift/FirmwareArchiveExpectedEntry.swift +0 -69
- package/nitrogen/generated/ios/swift/FirmwareArchiveMaterializeParams.swift +0 -70
- package/nitrogen/generated/ios/swift/FirmwareArchiveMaterializeResult.swift +0 -48
- package/nitrogen/generated/ios/swift/FirmwareArchiveMaterializedArtifact.swift +0 -47
- package/nitrogen/generated/ios/swift/FirmwareArtifactCancelParams.swift +0 -36
- package/nitrogen/generated/ios/swift/FirmwareArtifactCapabilities.swift +0 -81
- package/nitrogen/generated/ios/swift/FirmwareArtifactDownloadParams.swift +0 -177
- package/nitrogen/generated/ios/swift/FirmwareArtifactLease.swift +0 -36
- package/nitrogen/generated/ios/swift/FirmwareArtifactLeaseCreateParams.swift +0 -36
- package/nitrogen/generated/ios/swift/FirmwareArtifactLeaseReleaseParams.swift +0 -47
- package/nitrogen/generated/ios/swift/FirmwareArtifactLeaseRetainParams.swift +0 -47
- package/nitrogen/generated/ios/swift/FirmwareArtifactReaderCloseParams.swift +0 -36
- package/nitrogen/generated/ios/swift/FirmwareArtifactReaderInfo.swift +0 -47
- package/nitrogen/generated/ios/swift/FirmwareArtifactReaderReadParams.swift +0 -58
- package/nitrogen/generated/ios/swift/FirmwareArtifactReceipt.swift +0 -58
- package/nitrogen/generated/ios/swift/FirmwareArtifactRefParams.swift +0 -36
- package/nitrogen/generated/ios/swift/FirmwareArtifactSweepResult.swift +0 -47
- package/nitrogen/generated/ios/swift/Func_void_FirmwareArchiveMaterializeResult.swift +0 -47
- package/nitrogen/generated/ios/swift/Func_void_FirmwareArtifactLease.swift +0 -47
- package/nitrogen/generated/ios/swift/Func_void_FirmwareArtifactReaderInfo.swift +0 -47
- package/nitrogen/generated/ios/swift/Func_void_FirmwareArtifactReceipt.swift +0 -47
- package/nitrogen/generated/ios/swift/Func_void_FirmwareArtifactSweepResult.swift +0 -47
- package/nitrogen/generated/ios/swift/Func_void_std__shared_ptr_ArrayBuffer_.swift +0 -47
- package/nitrogen/generated/shared/c++/FirmwareArchiveExpectedEntry.hpp +0 -87
- package/nitrogen/generated/shared/c++/FirmwareArchiveMaterializeParams.hpp +0 -86
- package/nitrogen/generated/shared/c++/FirmwareArchiveMaterializeResult.hpp +0 -77
- package/nitrogen/generated/shared/c++/FirmwareArchiveMaterializedArtifact.hpp +0 -81
- package/nitrogen/generated/shared/c++/FirmwareArtifactCancelParams.hpp +0 -75
- package/nitrogen/generated/shared/c++/FirmwareArtifactCapabilities.hpp +0 -88
- package/nitrogen/generated/shared/c++/FirmwareArtifactDownloadParams.hpp +0 -116
- package/nitrogen/generated/shared/c++/FirmwareArtifactLease.hpp +0 -75
- package/nitrogen/generated/shared/c++/FirmwareArtifactLeaseCreateParams.hpp +0 -75
- package/nitrogen/generated/shared/c++/FirmwareArtifactLeaseReleaseParams.hpp +0 -79
- package/nitrogen/generated/shared/c++/FirmwareArtifactLeaseRetainParams.hpp +0 -79
- package/nitrogen/generated/shared/c++/FirmwareArtifactReaderCloseParams.hpp +0 -75
- package/nitrogen/generated/shared/c++/FirmwareArtifactReaderInfo.hpp +0 -79
- package/nitrogen/generated/shared/c++/FirmwareArtifactReaderReadParams.hpp +0 -83
- package/nitrogen/generated/shared/c++/FirmwareArtifactReceipt.hpp +0 -83
- package/nitrogen/generated/shared/c++/FirmwareArtifactRefParams.hpp +0 -75
- package/nitrogen/generated/shared/c++/FirmwareArtifactSweepResult.hpp +0 -79
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
///
|
|
2
|
-
/// FirmwareArtifactReaderInfo.swift
|
|
3
|
-
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
-
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
|
-
///
|
|
7
|
-
|
|
8
|
-
import Foundation
|
|
9
|
-
import NitroModules
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Represents an instance of `FirmwareArtifactReaderInfo`, backed by a C++ struct.
|
|
13
|
-
*/
|
|
14
|
-
public typealias FirmwareArtifactReaderInfo = margelo.nitro.reactnativerangedownloader.FirmwareArtifactReaderInfo
|
|
15
|
-
|
|
16
|
-
public extension FirmwareArtifactReaderInfo {
|
|
17
|
-
private typealias bridge = margelo.nitro.reactnativerangedownloader.bridge.swift
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Create a new instance of `FirmwareArtifactReaderInfo`.
|
|
21
|
-
*/
|
|
22
|
-
init(readerId: String, size: Double) {
|
|
23
|
-
self.init(std.string(readerId), size)
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
var readerId: String {
|
|
27
|
-
@inline(__always)
|
|
28
|
-
get {
|
|
29
|
-
return String(self.__readerId)
|
|
30
|
-
}
|
|
31
|
-
@inline(__always)
|
|
32
|
-
set {
|
|
33
|
-
self.__readerId = std.string(newValue)
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
var size: Double {
|
|
38
|
-
@inline(__always)
|
|
39
|
-
get {
|
|
40
|
-
return self.__size
|
|
41
|
-
}
|
|
42
|
-
@inline(__always)
|
|
43
|
-
set {
|
|
44
|
-
self.__size = newValue
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
///
|
|
2
|
-
/// FirmwareArtifactReaderReadParams.swift
|
|
3
|
-
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
-
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
|
-
///
|
|
7
|
-
|
|
8
|
-
import Foundation
|
|
9
|
-
import NitroModules
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Represents an instance of `FirmwareArtifactReaderReadParams`, backed by a C++ struct.
|
|
13
|
-
*/
|
|
14
|
-
public typealias FirmwareArtifactReaderReadParams = margelo.nitro.reactnativerangedownloader.FirmwareArtifactReaderReadParams
|
|
15
|
-
|
|
16
|
-
public extension FirmwareArtifactReaderReadParams {
|
|
17
|
-
private typealias bridge = margelo.nitro.reactnativerangedownloader.bridge.swift
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Create a new instance of `FirmwareArtifactReaderReadParams`.
|
|
21
|
-
*/
|
|
22
|
-
init(readerId: String, offset: Double, length: Double) {
|
|
23
|
-
self.init(std.string(readerId), offset, length)
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
var readerId: String {
|
|
27
|
-
@inline(__always)
|
|
28
|
-
get {
|
|
29
|
-
return String(self.__readerId)
|
|
30
|
-
}
|
|
31
|
-
@inline(__always)
|
|
32
|
-
set {
|
|
33
|
-
self.__readerId = std.string(newValue)
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
var offset: Double {
|
|
38
|
-
@inline(__always)
|
|
39
|
-
get {
|
|
40
|
-
return self.__offset
|
|
41
|
-
}
|
|
42
|
-
@inline(__always)
|
|
43
|
-
set {
|
|
44
|
-
self.__offset = newValue
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
var length: Double {
|
|
49
|
-
@inline(__always)
|
|
50
|
-
get {
|
|
51
|
-
return self.__length
|
|
52
|
-
}
|
|
53
|
-
@inline(__always)
|
|
54
|
-
set {
|
|
55
|
-
self.__length = newValue
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
///
|
|
2
|
-
/// FirmwareArtifactReceipt.swift
|
|
3
|
-
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
-
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
|
-
///
|
|
7
|
-
|
|
8
|
-
import Foundation
|
|
9
|
-
import NitroModules
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Represents an instance of `FirmwareArtifactReceipt`, backed by a C++ struct.
|
|
13
|
-
*/
|
|
14
|
-
public typealias FirmwareArtifactReceipt = margelo.nitro.reactnativerangedownloader.FirmwareArtifactReceipt
|
|
15
|
-
|
|
16
|
-
public extension FirmwareArtifactReceipt {
|
|
17
|
-
private typealias bridge = margelo.nitro.reactnativerangedownloader.bridge.swift
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Create a new instance of `FirmwareArtifactReceipt`.
|
|
21
|
-
*/
|
|
22
|
-
init(artifactRef: String, size: Double, sha256: String) {
|
|
23
|
-
self.init(std.string(artifactRef), size, std.string(sha256))
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
var artifactRef: String {
|
|
27
|
-
@inline(__always)
|
|
28
|
-
get {
|
|
29
|
-
return String(self.__artifactRef)
|
|
30
|
-
}
|
|
31
|
-
@inline(__always)
|
|
32
|
-
set {
|
|
33
|
-
self.__artifactRef = std.string(newValue)
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
var size: Double {
|
|
38
|
-
@inline(__always)
|
|
39
|
-
get {
|
|
40
|
-
return self.__size
|
|
41
|
-
}
|
|
42
|
-
@inline(__always)
|
|
43
|
-
set {
|
|
44
|
-
self.__size = newValue
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
var sha256: String {
|
|
49
|
-
@inline(__always)
|
|
50
|
-
get {
|
|
51
|
-
return String(self.__sha256)
|
|
52
|
-
}
|
|
53
|
-
@inline(__always)
|
|
54
|
-
set {
|
|
55
|
-
self.__sha256 = std.string(newValue)
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
///
|
|
2
|
-
/// FirmwareArtifactRefParams.swift
|
|
3
|
-
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
-
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
|
-
///
|
|
7
|
-
|
|
8
|
-
import Foundation
|
|
9
|
-
import NitroModules
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Represents an instance of `FirmwareArtifactRefParams`, backed by a C++ struct.
|
|
13
|
-
*/
|
|
14
|
-
public typealias FirmwareArtifactRefParams = margelo.nitro.reactnativerangedownloader.FirmwareArtifactRefParams
|
|
15
|
-
|
|
16
|
-
public extension FirmwareArtifactRefParams {
|
|
17
|
-
private typealias bridge = margelo.nitro.reactnativerangedownloader.bridge.swift
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Create a new instance of `FirmwareArtifactRefParams`.
|
|
21
|
-
*/
|
|
22
|
-
init(artifactRef: String) {
|
|
23
|
-
self.init(std.string(artifactRef))
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
var artifactRef: String {
|
|
27
|
-
@inline(__always)
|
|
28
|
-
get {
|
|
29
|
-
return String(self.__artifactRef)
|
|
30
|
-
}
|
|
31
|
-
@inline(__always)
|
|
32
|
-
set {
|
|
33
|
-
self.__artifactRef = std.string(newValue)
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
///
|
|
2
|
-
/// FirmwareArtifactSweepResult.swift
|
|
3
|
-
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
-
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
|
-
///
|
|
7
|
-
|
|
8
|
-
import Foundation
|
|
9
|
-
import NitroModules
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Represents an instance of `FirmwareArtifactSweepResult`, backed by a C++ struct.
|
|
13
|
-
*/
|
|
14
|
-
public typealias FirmwareArtifactSweepResult = margelo.nitro.reactnativerangedownloader.FirmwareArtifactSweepResult
|
|
15
|
-
|
|
16
|
-
public extension FirmwareArtifactSweepResult {
|
|
17
|
-
private typealias bridge = margelo.nitro.reactnativerangedownloader.bridge.swift
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Create a new instance of `FirmwareArtifactSweepResult`.
|
|
21
|
-
*/
|
|
22
|
-
init(deletedFiles: Double, deletedBytes: Double) {
|
|
23
|
-
self.init(deletedFiles, deletedBytes)
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
var deletedFiles: Double {
|
|
27
|
-
@inline(__always)
|
|
28
|
-
get {
|
|
29
|
-
return self.__deletedFiles
|
|
30
|
-
}
|
|
31
|
-
@inline(__always)
|
|
32
|
-
set {
|
|
33
|
-
self.__deletedFiles = newValue
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
var deletedBytes: Double {
|
|
38
|
-
@inline(__always)
|
|
39
|
-
get {
|
|
40
|
-
return self.__deletedBytes
|
|
41
|
-
}
|
|
42
|
-
@inline(__always)
|
|
43
|
-
set {
|
|
44
|
-
self.__deletedBytes = newValue
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
///
|
|
2
|
-
/// Func_void_FirmwareArchiveMaterializeResult.swift
|
|
3
|
-
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
-
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
|
-
///
|
|
7
|
-
|
|
8
|
-
import Foundation
|
|
9
|
-
import NitroModules
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Wraps a Swift `(_ value: FirmwareArchiveMaterializeResult) -> Void` as a class.
|
|
13
|
-
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
14
|
-
*/
|
|
15
|
-
public final class Func_void_FirmwareArchiveMaterializeResult {
|
|
16
|
-
public typealias bridge = margelo.nitro.reactnativerangedownloader.bridge.swift
|
|
17
|
-
|
|
18
|
-
private let closure: (_ value: FirmwareArchiveMaterializeResult) -> Void
|
|
19
|
-
|
|
20
|
-
public init(_ closure: @escaping (_ value: FirmwareArchiveMaterializeResult) -> Void) {
|
|
21
|
-
self.closure = closure
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@inline(__always)
|
|
25
|
-
public func call(value: FirmwareArchiveMaterializeResult) -> Void {
|
|
26
|
-
self.closure(value)
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Casts this instance to a retained unsafe raw pointer.
|
|
31
|
-
* This acquires one additional strong reference on the object!
|
|
32
|
-
*/
|
|
33
|
-
@inline(__always)
|
|
34
|
-
public func toUnsafe() -> UnsafeMutableRawPointer {
|
|
35
|
-
return Unmanaged.passRetained(self).toOpaque()
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Casts an unsafe pointer to a `Func_void_FirmwareArchiveMaterializeResult`.
|
|
40
|
-
* The pointer has to be a retained opaque `Unmanaged<Func_void_FirmwareArchiveMaterializeResult>`.
|
|
41
|
-
* This removes one strong reference from the object!
|
|
42
|
-
*/
|
|
43
|
-
@inline(__always)
|
|
44
|
-
public static func fromUnsafe(_ pointer: UnsafeMutableRawPointer) -> Func_void_FirmwareArchiveMaterializeResult {
|
|
45
|
-
return Unmanaged<Func_void_FirmwareArchiveMaterializeResult>.fromOpaque(pointer).takeRetainedValue()
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
///
|
|
2
|
-
/// Func_void_FirmwareArtifactLease.swift
|
|
3
|
-
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
-
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
|
-
///
|
|
7
|
-
|
|
8
|
-
import Foundation
|
|
9
|
-
import NitroModules
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Wraps a Swift `(_ value: FirmwareArtifactLease) -> Void` as a class.
|
|
13
|
-
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
14
|
-
*/
|
|
15
|
-
public final class Func_void_FirmwareArtifactLease {
|
|
16
|
-
public typealias bridge = margelo.nitro.reactnativerangedownloader.bridge.swift
|
|
17
|
-
|
|
18
|
-
private let closure: (_ value: FirmwareArtifactLease) -> Void
|
|
19
|
-
|
|
20
|
-
public init(_ closure: @escaping (_ value: FirmwareArtifactLease) -> Void) {
|
|
21
|
-
self.closure = closure
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@inline(__always)
|
|
25
|
-
public func call(value: FirmwareArtifactLease) -> Void {
|
|
26
|
-
self.closure(value)
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Casts this instance to a retained unsafe raw pointer.
|
|
31
|
-
* This acquires one additional strong reference on the object!
|
|
32
|
-
*/
|
|
33
|
-
@inline(__always)
|
|
34
|
-
public func toUnsafe() -> UnsafeMutableRawPointer {
|
|
35
|
-
return Unmanaged.passRetained(self).toOpaque()
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Casts an unsafe pointer to a `Func_void_FirmwareArtifactLease`.
|
|
40
|
-
* The pointer has to be a retained opaque `Unmanaged<Func_void_FirmwareArtifactLease>`.
|
|
41
|
-
* This removes one strong reference from the object!
|
|
42
|
-
*/
|
|
43
|
-
@inline(__always)
|
|
44
|
-
public static func fromUnsafe(_ pointer: UnsafeMutableRawPointer) -> Func_void_FirmwareArtifactLease {
|
|
45
|
-
return Unmanaged<Func_void_FirmwareArtifactLease>.fromOpaque(pointer).takeRetainedValue()
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
///
|
|
2
|
-
/// Func_void_FirmwareArtifactReaderInfo.swift
|
|
3
|
-
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
-
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
|
-
///
|
|
7
|
-
|
|
8
|
-
import Foundation
|
|
9
|
-
import NitroModules
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Wraps a Swift `(_ value: FirmwareArtifactReaderInfo) -> Void` as a class.
|
|
13
|
-
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
14
|
-
*/
|
|
15
|
-
public final class Func_void_FirmwareArtifactReaderInfo {
|
|
16
|
-
public typealias bridge = margelo.nitro.reactnativerangedownloader.bridge.swift
|
|
17
|
-
|
|
18
|
-
private let closure: (_ value: FirmwareArtifactReaderInfo) -> Void
|
|
19
|
-
|
|
20
|
-
public init(_ closure: @escaping (_ value: FirmwareArtifactReaderInfo) -> Void) {
|
|
21
|
-
self.closure = closure
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@inline(__always)
|
|
25
|
-
public func call(value: FirmwareArtifactReaderInfo) -> Void {
|
|
26
|
-
self.closure(value)
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Casts this instance to a retained unsafe raw pointer.
|
|
31
|
-
* This acquires one additional strong reference on the object!
|
|
32
|
-
*/
|
|
33
|
-
@inline(__always)
|
|
34
|
-
public func toUnsafe() -> UnsafeMutableRawPointer {
|
|
35
|
-
return Unmanaged.passRetained(self).toOpaque()
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Casts an unsafe pointer to a `Func_void_FirmwareArtifactReaderInfo`.
|
|
40
|
-
* The pointer has to be a retained opaque `Unmanaged<Func_void_FirmwareArtifactReaderInfo>`.
|
|
41
|
-
* This removes one strong reference from the object!
|
|
42
|
-
*/
|
|
43
|
-
@inline(__always)
|
|
44
|
-
public static func fromUnsafe(_ pointer: UnsafeMutableRawPointer) -> Func_void_FirmwareArtifactReaderInfo {
|
|
45
|
-
return Unmanaged<Func_void_FirmwareArtifactReaderInfo>.fromOpaque(pointer).takeRetainedValue()
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
///
|
|
2
|
-
/// Func_void_FirmwareArtifactReceipt.swift
|
|
3
|
-
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
-
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
|
-
///
|
|
7
|
-
|
|
8
|
-
import Foundation
|
|
9
|
-
import NitroModules
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Wraps a Swift `(_ value: FirmwareArtifactReceipt) -> Void` as a class.
|
|
13
|
-
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
14
|
-
*/
|
|
15
|
-
public final class Func_void_FirmwareArtifactReceipt {
|
|
16
|
-
public typealias bridge = margelo.nitro.reactnativerangedownloader.bridge.swift
|
|
17
|
-
|
|
18
|
-
private let closure: (_ value: FirmwareArtifactReceipt) -> Void
|
|
19
|
-
|
|
20
|
-
public init(_ closure: @escaping (_ value: FirmwareArtifactReceipt) -> Void) {
|
|
21
|
-
self.closure = closure
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@inline(__always)
|
|
25
|
-
public func call(value: FirmwareArtifactReceipt) -> Void {
|
|
26
|
-
self.closure(value)
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Casts this instance to a retained unsafe raw pointer.
|
|
31
|
-
* This acquires one additional strong reference on the object!
|
|
32
|
-
*/
|
|
33
|
-
@inline(__always)
|
|
34
|
-
public func toUnsafe() -> UnsafeMutableRawPointer {
|
|
35
|
-
return Unmanaged.passRetained(self).toOpaque()
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Casts an unsafe pointer to a `Func_void_FirmwareArtifactReceipt`.
|
|
40
|
-
* The pointer has to be a retained opaque `Unmanaged<Func_void_FirmwareArtifactReceipt>`.
|
|
41
|
-
* This removes one strong reference from the object!
|
|
42
|
-
*/
|
|
43
|
-
@inline(__always)
|
|
44
|
-
public static func fromUnsafe(_ pointer: UnsafeMutableRawPointer) -> Func_void_FirmwareArtifactReceipt {
|
|
45
|
-
return Unmanaged<Func_void_FirmwareArtifactReceipt>.fromOpaque(pointer).takeRetainedValue()
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
///
|
|
2
|
-
/// Func_void_FirmwareArtifactSweepResult.swift
|
|
3
|
-
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
-
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
|
-
///
|
|
7
|
-
|
|
8
|
-
import Foundation
|
|
9
|
-
import NitroModules
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Wraps a Swift `(_ value: FirmwareArtifactSweepResult) -> Void` as a class.
|
|
13
|
-
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
14
|
-
*/
|
|
15
|
-
public final class Func_void_FirmwareArtifactSweepResult {
|
|
16
|
-
public typealias bridge = margelo.nitro.reactnativerangedownloader.bridge.swift
|
|
17
|
-
|
|
18
|
-
private let closure: (_ value: FirmwareArtifactSweepResult) -> Void
|
|
19
|
-
|
|
20
|
-
public init(_ closure: @escaping (_ value: FirmwareArtifactSweepResult) -> Void) {
|
|
21
|
-
self.closure = closure
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@inline(__always)
|
|
25
|
-
public func call(value: FirmwareArtifactSweepResult) -> Void {
|
|
26
|
-
self.closure(value)
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Casts this instance to a retained unsafe raw pointer.
|
|
31
|
-
* This acquires one additional strong reference on the object!
|
|
32
|
-
*/
|
|
33
|
-
@inline(__always)
|
|
34
|
-
public func toUnsafe() -> UnsafeMutableRawPointer {
|
|
35
|
-
return Unmanaged.passRetained(self).toOpaque()
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Casts an unsafe pointer to a `Func_void_FirmwareArtifactSweepResult`.
|
|
40
|
-
* The pointer has to be a retained opaque `Unmanaged<Func_void_FirmwareArtifactSweepResult>`.
|
|
41
|
-
* This removes one strong reference from the object!
|
|
42
|
-
*/
|
|
43
|
-
@inline(__always)
|
|
44
|
-
public static func fromUnsafe(_ pointer: UnsafeMutableRawPointer) -> Func_void_FirmwareArtifactSweepResult {
|
|
45
|
-
return Unmanaged<Func_void_FirmwareArtifactSweepResult>.fromOpaque(pointer).takeRetainedValue()
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
///
|
|
2
|
-
/// Func_void_std__shared_ptr_ArrayBuffer_.swift
|
|
3
|
-
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
-
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
|
-
///
|
|
7
|
-
|
|
8
|
-
import Foundation
|
|
9
|
-
import NitroModules
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Wraps a Swift `(_ value: ArrayBuffer) -> Void` as a class.
|
|
13
|
-
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
14
|
-
*/
|
|
15
|
-
public final class Func_void_std__shared_ptr_ArrayBuffer_ {
|
|
16
|
-
public typealias bridge = margelo.nitro.reactnativerangedownloader.bridge.swift
|
|
17
|
-
|
|
18
|
-
private let closure: (_ value: ArrayBuffer) -> Void
|
|
19
|
-
|
|
20
|
-
public init(_ closure: @escaping (_ value: ArrayBuffer) -> Void) {
|
|
21
|
-
self.closure = closure
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@inline(__always)
|
|
25
|
-
public func call(value: ArrayBuffer) -> Void {
|
|
26
|
-
self.closure(value)
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Casts this instance to a retained unsafe raw pointer.
|
|
31
|
-
* This acquires one additional strong reference on the object!
|
|
32
|
-
*/
|
|
33
|
-
@inline(__always)
|
|
34
|
-
public func toUnsafe() -> UnsafeMutableRawPointer {
|
|
35
|
-
return Unmanaged.passRetained(self).toOpaque()
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Casts an unsafe pointer to a `Func_void_std__shared_ptr_ArrayBuffer_`.
|
|
40
|
-
* The pointer has to be a retained opaque `Unmanaged<Func_void_std__shared_ptr_ArrayBuffer_>`.
|
|
41
|
-
* This removes one strong reference from the object!
|
|
42
|
-
*/
|
|
43
|
-
@inline(__always)
|
|
44
|
-
public static func fromUnsafe(_ pointer: UnsafeMutableRawPointer) -> Func_void_std__shared_ptr_ArrayBuffer_ {
|
|
45
|
-
return Unmanaged<Func_void_std__shared_ptr_ArrayBuffer_>.fromOpaque(pointer).takeRetainedValue()
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
///
|
|
2
|
-
/// FirmwareArchiveExpectedEntry.hpp
|
|
3
|
-
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
-
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
|
-
///
|
|
7
|
-
|
|
8
|
-
#pragma once
|
|
9
|
-
|
|
10
|
-
#if __has_include(<NitroModules/JSIConverter.hpp>)
|
|
11
|
-
#include <NitroModules/JSIConverter.hpp>
|
|
12
|
-
#else
|
|
13
|
-
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
14
|
-
#endif
|
|
15
|
-
#if __has_include(<NitroModules/NitroDefines.hpp>)
|
|
16
|
-
#include <NitroModules/NitroDefines.hpp>
|
|
17
|
-
#else
|
|
18
|
-
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
|
-
#endif
|
|
20
|
-
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
-
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
-
#else
|
|
23
|
-
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
-
#endif
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
#include <string>
|
|
29
|
-
|
|
30
|
-
namespace margelo::nitro::reactnativerangedownloader {
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* A struct which can be represented as a JavaScript object (FirmwareArchiveExpectedEntry).
|
|
34
|
-
*/
|
|
35
|
-
struct FirmwareArchiveExpectedEntry {
|
|
36
|
-
public:
|
|
37
|
-
std::string artifactId SWIFT_PRIVATE;
|
|
38
|
-
std::string entryName SWIFT_PRIVATE;
|
|
39
|
-
double expectedSize SWIFT_PRIVATE;
|
|
40
|
-
std::string expectedSha256 SWIFT_PRIVATE;
|
|
41
|
-
|
|
42
|
-
public:
|
|
43
|
-
FirmwareArchiveExpectedEntry() = default;
|
|
44
|
-
explicit FirmwareArchiveExpectedEntry(std::string artifactId, std::string entryName, double expectedSize, std::string expectedSha256): artifactId(artifactId), entryName(entryName), expectedSize(expectedSize), expectedSha256(expectedSha256) {}
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
} // namespace margelo::nitro::reactnativerangedownloader
|
|
48
|
-
|
|
49
|
-
namespace margelo::nitro {
|
|
50
|
-
|
|
51
|
-
// C++ FirmwareArchiveExpectedEntry <> JS FirmwareArchiveExpectedEntry (object)
|
|
52
|
-
template <>
|
|
53
|
-
struct JSIConverter<margelo::nitro::reactnativerangedownloader::FirmwareArchiveExpectedEntry> final {
|
|
54
|
-
static inline margelo::nitro::reactnativerangedownloader::FirmwareArchiveExpectedEntry fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
55
|
-
jsi::Object obj = arg.asObject(runtime);
|
|
56
|
-
return margelo::nitro::reactnativerangedownloader::FirmwareArchiveExpectedEntry(
|
|
57
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "artifactId")),
|
|
58
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "entryName")),
|
|
59
|
-
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "expectedSize")),
|
|
60
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "expectedSha256"))
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::reactnativerangedownloader::FirmwareArchiveExpectedEntry& arg) {
|
|
64
|
-
jsi::Object obj(runtime);
|
|
65
|
-
obj.setProperty(runtime, "artifactId", JSIConverter<std::string>::toJSI(runtime, arg.artifactId));
|
|
66
|
-
obj.setProperty(runtime, "entryName", JSIConverter<std::string>::toJSI(runtime, arg.entryName));
|
|
67
|
-
obj.setProperty(runtime, "expectedSize", JSIConverter<double>::toJSI(runtime, arg.expectedSize));
|
|
68
|
-
obj.setProperty(runtime, "expectedSha256", JSIConverter<std::string>::toJSI(runtime, arg.expectedSha256));
|
|
69
|
-
return obj;
|
|
70
|
-
}
|
|
71
|
-
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
72
|
-
if (!value.isObject()) {
|
|
73
|
-
return false;
|
|
74
|
-
}
|
|
75
|
-
jsi::Object obj = value.getObject(runtime);
|
|
76
|
-
if (!nitro::isPlainObject(runtime, obj)) {
|
|
77
|
-
return false;
|
|
78
|
-
}
|
|
79
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "artifactId"))) return false;
|
|
80
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "entryName"))) return false;
|
|
81
|
-
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "expectedSize"))) return false;
|
|
82
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "expectedSha256"))) return false;
|
|
83
|
-
return true;
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
} // namespace margelo::nitro
|