@onekeyfe/react-native-bundle-update 3.0.81-alpha.8 → 3.0.82
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/nitrogen/generated/android/c++/JAscFileInfo.hpp +2 -2
- package/nitrogen/generated/android/c++/JBundleDownloadASCParams.hpp +2 -2
- package/nitrogen/generated/android/c++/JBundleDownloadEvent.hpp +2 -2
- package/nitrogen/generated/android/c++/JBundleDownloadParams.hpp +2 -2
- package/nitrogen/generated/android/c++/JBundleDownloadResult.hpp +2 -2
- package/nitrogen/generated/android/c++/JBundleInstallParams.hpp +2 -2
- package/nitrogen/generated/android/c++/JBundleSwitchParams.hpp +2 -2
- package/nitrogen/generated/android/c++/JBundleVerifyASCParams.hpp +2 -2
- package/nitrogen/generated/android/c++/JBundleVerifyParams.hpp +2 -2
- package/nitrogen/generated/android/c++/JFallbackBundleInfo.hpp +2 -2
- package/nitrogen/generated/android/c++/JFunc_void_BundleDownloadEvent.hpp +3 -3
- package/nitrogen/generated/android/c++/JHybridReactNativeBundleUpdateSpec.cpp +56 -54
- package/nitrogen/generated/android/c++/JHybridReactNativeBundleUpdateSpec.hpp +20 -22
- package/nitrogen/generated/android/c++/JLocalBundleInfo.hpp +2 -2
- package/nitrogen/generated/android/c++/JTestResult.hpp +2 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/AscFileInfo.kt +2 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleDownloadASCParams.kt +2 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleDownloadEvent.kt +2 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleDownloadParams.kt +2 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleDownloadResult.kt +2 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleInstallParams.kt +2 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleSwitchParams.kt +2 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleVerifyASCParams.kt +2 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleVerifyParams.kt +2 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/FallbackBundleInfo.kt +2 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/Func_void_BundleDownloadEvent.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/HybridReactNativeBundleUpdateSpec.kt +16 -19
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/LocalBundleInfo.kt +2 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/TestResult.kt +2 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/reactnativebundleupdateOnLoad.kt +1 -1
- package/nitrogen/generated/android/reactnativebundleupdate+autolinking.cmake +1 -1
- package/nitrogen/generated/android/reactnativebundleupdate+autolinking.gradle +1 -1
- package/nitrogen/generated/android/reactnativebundleupdateOnLoad.cpp +28 -18
- package/nitrogen/generated/android/reactnativebundleupdateOnLoad.hpp +14 -5
- package/nitrogen/generated/ios/ReactNativeBundleUpdate+autolinking.rb +2 -2
- package/nitrogen/generated/ios/ReactNativeBundleUpdate-Swift-Cxx-Bridge.cpp +1 -1
- package/nitrogen/generated/ios/ReactNativeBundleUpdate-Swift-Cxx-Bridge.hpp +1 -1
- package/nitrogen/generated/ios/ReactNativeBundleUpdate-Swift-Cxx-Umbrella.hpp +1 -1
- package/nitrogen/generated/ios/ReactNativeBundleUpdateAutolinking.mm +1 -1
- package/nitrogen/generated/ios/ReactNativeBundleUpdateAutolinking.swift +9 -8
- package/nitrogen/generated/ios/c++/HybridReactNativeBundleUpdateSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridReactNativeBundleUpdateSpecSwift.hpp +7 -1
- package/nitrogen/generated/ios/swift/AscFileInfo.swift +7 -26
- package/nitrogen/generated/ios/swift/BundleDownloadASCParams.swift +13 -50
- package/nitrogen/generated/ios/swift/BundleDownloadEvent.swift +7 -26
- package/nitrogen/generated/ios/swift/BundleDownloadParams.swift +11 -42
- package/nitrogen/generated/ios/swift/BundleDownloadResult.swift +11 -42
- package/nitrogen/generated/ios/swift/BundleInstallParams.swift +9 -34
- package/nitrogen/generated/ios/swift/BundleSwitchParams.swift +7 -26
- package/nitrogen/generated/ios/swift/BundleVerifyASCParams.swift +11 -42
- package/nitrogen/generated/ios/swift/BundleVerifyParams.swift +9 -34
- package/nitrogen/generated/ios/swift/FallbackBundleInfo.swift +7 -26
- package/nitrogen/generated/ios/swift/Func_void.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_BundleDownloadEvent.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_BundleDownloadResult.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_TestResult.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_bool.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_double.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__string.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__vector_AscFileInfo_.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__vector_FallbackBundleInfo_.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__vector_LocalBundleInfo_.swift +1 -2
- package/nitrogen/generated/ios/swift/HybridReactNativeBundleUpdateSpec.swift +3 -4
- package/nitrogen/generated/ios/swift/HybridReactNativeBundleUpdateSpec_cxx.swift +9 -2
- package/nitrogen/generated/ios/swift/LocalBundleInfo.swift +5 -18
- package/nitrogen/generated/ios/swift/TestResult.swift +5 -18
- package/nitrogen/generated/shared/c++/AscFileInfo.hpp +19 -11
- package/nitrogen/generated/shared/c++/BundleDownloadASCParams.hpp +28 -20
- package/nitrogen/generated/shared/c++/BundleDownloadEvent.hpp +19 -11
- package/nitrogen/generated/shared/c++/BundleDownloadParams.hpp +25 -17
- package/nitrogen/generated/shared/c++/BundleDownloadResult.hpp +25 -17
- package/nitrogen/generated/shared/c++/BundleInstallParams.hpp +22 -14
- package/nitrogen/generated/shared/c++/BundleSwitchParams.hpp +19 -11
- package/nitrogen/generated/shared/c++/BundleVerifyASCParams.hpp +25 -17
- package/nitrogen/generated/shared/c++/BundleVerifyParams.hpp +22 -14
- package/nitrogen/generated/shared/c++/FallbackBundleInfo.hpp +19 -11
- package/nitrogen/generated/shared/c++/HybridReactNativeBundleUpdateSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridReactNativeBundleUpdateSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/LocalBundleInfo.hpp +16 -8
- package/nitrogen/generated/shared/c++/TestResult.hpp +16 -8
- package/package.json +5 -6
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
/// FallbackBundleInfo.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
import Foundation
|
|
9
8
|
import NitroModules
|
|
10
9
|
|
|
11
10
|
/**
|
|
@@ -23,36 +22,18 @@ public extension FallbackBundleInfo {
|
|
|
23
22
|
self.init(std.string(appVersion), std.string(bundleVersion), std.string(signature))
|
|
24
23
|
}
|
|
25
24
|
|
|
25
|
+
@inline(__always)
|
|
26
26
|
var appVersion: String {
|
|
27
|
-
|
|
28
|
-
get {
|
|
29
|
-
return String(self.__appVersion)
|
|
30
|
-
}
|
|
31
|
-
@inline(__always)
|
|
32
|
-
set {
|
|
33
|
-
self.__appVersion = std.string(newValue)
|
|
34
|
-
}
|
|
27
|
+
return String(self.__appVersion)
|
|
35
28
|
}
|
|
36
29
|
|
|
30
|
+
@inline(__always)
|
|
37
31
|
var bundleVersion: String {
|
|
38
|
-
|
|
39
|
-
get {
|
|
40
|
-
return String(self.__bundleVersion)
|
|
41
|
-
}
|
|
42
|
-
@inline(__always)
|
|
43
|
-
set {
|
|
44
|
-
self.__bundleVersion = std.string(newValue)
|
|
45
|
-
}
|
|
32
|
+
return String(self.__bundleVersion)
|
|
46
33
|
}
|
|
47
34
|
|
|
35
|
+
@inline(__always)
|
|
48
36
|
var signature: String {
|
|
49
|
-
|
|
50
|
-
get {
|
|
51
|
-
return String(self.__signature)
|
|
52
|
-
}
|
|
53
|
-
@inline(__always)
|
|
54
|
-
set {
|
|
55
|
-
self.__signature = std.string(newValue)
|
|
56
|
-
}
|
|
37
|
+
return String(self.__signature)
|
|
57
38
|
}
|
|
58
39
|
}
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
/// Func_void.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
import Foundation
|
|
9
8
|
import NitroModules
|
|
10
9
|
|
|
11
10
|
/**
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
/// Func_void_BundleDownloadEvent.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
import Foundation
|
|
9
8
|
import NitroModules
|
|
10
9
|
|
|
11
10
|
/**
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
/// Func_void_BundleDownloadResult.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
import Foundation
|
|
9
8
|
import NitroModules
|
|
10
9
|
|
|
11
10
|
/**
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
/// Func_void_TestResult.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
import Foundation
|
|
9
8
|
import NitroModules
|
|
10
9
|
|
|
11
10
|
/**
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
/// Func_void_bool.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
import Foundation
|
|
9
8
|
import NitroModules
|
|
10
9
|
|
|
11
10
|
/**
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
/// Func_void_double.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
import Foundation
|
|
9
8
|
import NitroModules
|
|
10
9
|
|
|
11
10
|
/**
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
/// Func_void_std__exception_ptr.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
import Foundation
|
|
9
8
|
import NitroModules
|
|
10
9
|
|
|
11
10
|
/**
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
/// Func_void_std__string.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
import Foundation
|
|
9
8
|
import NitroModules
|
|
10
9
|
|
|
11
10
|
/**
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
/// Func_void_std__vector_AscFileInfo_.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
import Foundation
|
|
9
8
|
import NitroModules
|
|
10
9
|
|
|
11
10
|
/**
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
/// Func_void_std__vector_FallbackBundleInfo_.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
import Foundation
|
|
9
8
|
import NitroModules
|
|
10
9
|
|
|
11
10
|
/**
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
/// Func_void_std__vector_LocalBundleInfo_.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
import Foundation
|
|
9
8
|
import NitroModules
|
|
10
9
|
|
|
11
10
|
/**
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
/// HybridReactNativeBundleUpdateSpec.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
import Foundation
|
|
9
8
|
import NitroModules
|
|
10
9
|
|
|
11
10
|
/// See ``HybridReactNativeBundleUpdateSpec``
|
|
@@ -64,14 +63,14 @@ open class HybridReactNativeBundleUpdateSpec_base {
|
|
|
64
63
|
public init() { }
|
|
65
64
|
public func getCxxWrapper() -> HybridReactNativeBundleUpdateSpec_cxx {
|
|
66
65
|
#if DEBUG
|
|
67
|
-
guard self is HybridReactNativeBundleUpdateSpec else {
|
|
66
|
+
guard self is any HybridReactNativeBundleUpdateSpec else {
|
|
68
67
|
fatalError("`self` is not a `HybridReactNativeBundleUpdateSpec`! Did you accidentally inherit from `HybridReactNativeBundleUpdateSpec_base` instead of `HybridReactNativeBundleUpdateSpec`?")
|
|
69
68
|
}
|
|
70
69
|
#endif
|
|
71
70
|
if let cxxWrapper = self.cxxWrapper {
|
|
72
71
|
return cxxWrapper
|
|
73
72
|
} else {
|
|
74
|
-
let cxxWrapper = HybridReactNativeBundleUpdateSpec_cxx(self as! HybridReactNativeBundleUpdateSpec)
|
|
73
|
+
let cxxWrapper = HybridReactNativeBundleUpdateSpec_cxx(self as! any HybridReactNativeBundleUpdateSpec)
|
|
75
74
|
self.cxxWrapper = cxxWrapper
|
|
76
75
|
return cxxWrapper
|
|
77
76
|
}
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
/// HybridReactNativeBundleUpdateSpec_cxx.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
import Foundation
|
|
9
8
|
import NitroModules
|
|
10
9
|
|
|
11
10
|
/**
|
|
@@ -96,6 +95,14 @@ open class HybridReactNativeBundleUpdateSpec_cxx {
|
|
|
96
95
|
return MemoryHelper.getSizeOf(self.__implementation) + self.__implementation.memorySize
|
|
97
96
|
}
|
|
98
97
|
|
|
98
|
+
/**
|
|
99
|
+
* Compares this object with the given [other] object for reference equality.
|
|
100
|
+
*/
|
|
101
|
+
@inline(__always)
|
|
102
|
+
public func equals(other: HybridReactNativeBundleUpdateSpec_cxx) -> Bool {
|
|
103
|
+
return self.__implementation === other.__implementation
|
|
104
|
+
}
|
|
105
|
+
|
|
99
106
|
/**
|
|
100
107
|
* Call dispose() on the Swift class.
|
|
101
108
|
* This _may_ be called manually from JS.
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
/// LocalBundleInfo.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
import Foundation
|
|
9
8
|
import NitroModules
|
|
10
9
|
|
|
11
10
|
/**
|
|
@@ -23,25 +22,13 @@ public extension LocalBundleInfo {
|
|
|
23
22
|
self.init(std.string(appVersion), std.string(bundleVersion))
|
|
24
23
|
}
|
|
25
24
|
|
|
25
|
+
@inline(__always)
|
|
26
26
|
var appVersion: String {
|
|
27
|
-
|
|
28
|
-
get {
|
|
29
|
-
return String(self.__appVersion)
|
|
30
|
-
}
|
|
31
|
-
@inline(__always)
|
|
32
|
-
set {
|
|
33
|
-
self.__appVersion = std.string(newValue)
|
|
34
|
-
}
|
|
27
|
+
return String(self.__appVersion)
|
|
35
28
|
}
|
|
36
29
|
|
|
30
|
+
@inline(__always)
|
|
37
31
|
var bundleVersion: String {
|
|
38
|
-
|
|
39
|
-
get {
|
|
40
|
-
return String(self.__bundleVersion)
|
|
41
|
-
}
|
|
42
|
-
@inline(__always)
|
|
43
|
-
set {
|
|
44
|
-
self.__bundleVersion = std.string(newValue)
|
|
45
|
-
}
|
|
32
|
+
return String(self.__bundleVersion)
|
|
46
33
|
}
|
|
47
34
|
}
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
/// TestResult.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
import Foundation
|
|
9
8
|
import NitroModules
|
|
10
9
|
|
|
11
10
|
/**
|
|
@@ -23,25 +22,13 @@ public extension TestResult {
|
|
|
23
22
|
self.init(success, std.string(message))
|
|
24
23
|
}
|
|
25
24
|
|
|
25
|
+
@inline(__always)
|
|
26
26
|
var success: Bool {
|
|
27
|
-
|
|
28
|
-
get {
|
|
29
|
-
return self.__success
|
|
30
|
-
}
|
|
31
|
-
@inline(__always)
|
|
32
|
-
set {
|
|
33
|
-
self.__success = newValue
|
|
34
|
-
}
|
|
27
|
+
return self.__success
|
|
35
28
|
}
|
|
36
29
|
|
|
30
|
+
@inline(__always)
|
|
37
31
|
var message: String {
|
|
38
|
-
|
|
39
|
-
get {
|
|
40
|
-
return String(self.__message)
|
|
41
|
-
}
|
|
42
|
-
@inline(__always)
|
|
43
|
-
set {
|
|
44
|
-
self.__message = std.string(newValue)
|
|
45
|
-
}
|
|
32
|
+
return String(self.__message)
|
|
46
33
|
}
|
|
47
34
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// AscFileInfo.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -22,6 +22,11 @@
|
|
|
22
22
|
#else
|
|
23
23
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
24
|
#endif
|
|
25
|
+
#if __has_include(<NitroModules/PropNameIDCache.hpp>)
|
|
26
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
27
|
+
#else
|
|
28
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
29
|
+
#endif
|
|
25
30
|
|
|
26
31
|
|
|
27
32
|
|
|
@@ -32,7 +37,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
32
37
|
/**
|
|
33
38
|
* A struct which can be represented as a JavaScript object (AscFileInfo).
|
|
34
39
|
*/
|
|
35
|
-
struct AscFileInfo {
|
|
40
|
+
struct AscFileInfo final {
|
|
36
41
|
public:
|
|
37
42
|
std::string fileName SWIFT_PRIVATE;
|
|
38
43
|
std::string filePath SWIFT_PRIVATE;
|
|
@@ -41,6 +46,9 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
41
46
|
public:
|
|
42
47
|
AscFileInfo() = default;
|
|
43
48
|
explicit AscFileInfo(std::string fileName, std::string filePath, double fileSize): fileName(fileName), filePath(filePath), fileSize(fileSize) {}
|
|
49
|
+
|
|
50
|
+
public:
|
|
51
|
+
friend bool operator==(const AscFileInfo& lhs, const AscFileInfo& rhs) = default;
|
|
44
52
|
};
|
|
45
53
|
|
|
46
54
|
} // namespace margelo::nitro::reactnativebundleupdate
|
|
@@ -53,16 +61,16 @@ namespace margelo::nitro {
|
|
|
53
61
|
static inline margelo::nitro::reactnativebundleupdate::AscFileInfo fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
54
62
|
jsi::Object obj = arg.asObject(runtime);
|
|
55
63
|
return margelo::nitro::reactnativebundleupdate::AscFileInfo(
|
|
56
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "fileName")),
|
|
57
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "filePath")),
|
|
58
|
-
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "fileSize"))
|
|
64
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "fileName"))),
|
|
65
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "filePath"))),
|
|
66
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "fileSize")))
|
|
59
67
|
);
|
|
60
68
|
}
|
|
61
69
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::reactnativebundleupdate::AscFileInfo& arg) {
|
|
62
70
|
jsi::Object obj(runtime);
|
|
63
|
-
obj.setProperty(runtime, "fileName", JSIConverter<std::string>::toJSI(runtime, arg.fileName));
|
|
64
|
-
obj.setProperty(runtime, "filePath", JSIConverter<std::string>::toJSI(runtime, arg.filePath));
|
|
65
|
-
obj.setProperty(runtime, "fileSize", JSIConverter<double>::toJSI(runtime, arg.fileSize));
|
|
71
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "fileName"), JSIConverter<std::string>::toJSI(runtime, arg.fileName));
|
|
72
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "filePath"), JSIConverter<std::string>::toJSI(runtime, arg.filePath));
|
|
73
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "fileSize"), JSIConverter<double>::toJSI(runtime, arg.fileSize));
|
|
66
74
|
return obj;
|
|
67
75
|
}
|
|
68
76
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -73,9 +81,9 @@ namespace margelo::nitro {
|
|
|
73
81
|
if (!nitro::isPlainObject(runtime, obj)) {
|
|
74
82
|
return false;
|
|
75
83
|
}
|
|
76
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "fileName"))) return false;
|
|
77
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "filePath"))) return false;
|
|
78
|
-
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "fileSize"))) return false;
|
|
84
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "fileName")))) return false;
|
|
85
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "filePath")))) return false;
|
|
86
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "fileSize")))) return false;
|
|
79
87
|
return true;
|
|
80
88
|
}
|
|
81
89
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// BundleDownloadASCParams.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -22,6 +22,11 @@
|
|
|
22
22
|
#else
|
|
23
23
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
24
|
#endif
|
|
25
|
+
#if __has_include(<NitroModules/PropNameIDCache.hpp>)
|
|
26
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
27
|
+
#else
|
|
28
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
29
|
+
#endif
|
|
25
30
|
|
|
26
31
|
|
|
27
32
|
|
|
@@ -32,7 +37,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
32
37
|
/**
|
|
33
38
|
* A struct which can be represented as a JavaScript object (BundleDownloadASCParams).
|
|
34
39
|
*/
|
|
35
|
-
struct BundleDownloadASCParams {
|
|
40
|
+
struct BundleDownloadASCParams final {
|
|
36
41
|
public:
|
|
37
42
|
std::string downloadUrl SWIFT_PRIVATE;
|
|
38
43
|
std::string downloadedFile SWIFT_PRIVATE;
|
|
@@ -44,6 +49,9 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
44
49
|
public:
|
|
45
50
|
BundleDownloadASCParams() = default;
|
|
46
51
|
explicit BundleDownloadASCParams(std::string downloadUrl, std::string downloadedFile, std::string signature, std::string latestVersion, std::string bundleVersion, std::string sha256): downloadUrl(downloadUrl), downloadedFile(downloadedFile), signature(signature), latestVersion(latestVersion), bundleVersion(bundleVersion), sha256(sha256) {}
|
|
52
|
+
|
|
53
|
+
public:
|
|
54
|
+
friend bool operator==(const BundleDownloadASCParams& lhs, const BundleDownloadASCParams& rhs) = default;
|
|
47
55
|
};
|
|
48
56
|
|
|
49
57
|
} // namespace margelo::nitro::reactnativebundleupdate
|
|
@@ -56,22 +64,22 @@ namespace margelo::nitro {
|
|
|
56
64
|
static inline margelo::nitro::reactnativebundleupdate::BundleDownloadASCParams fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
57
65
|
jsi::Object obj = arg.asObject(runtime);
|
|
58
66
|
return margelo::nitro::reactnativebundleupdate::BundleDownloadASCParams(
|
|
59
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "downloadUrl")),
|
|
60
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "downloadedFile")),
|
|
61
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "signature")),
|
|
62
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "latestVersion")),
|
|
63
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "bundleVersion")),
|
|
64
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "sha256"))
|
|
67
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "downloadUrl"))),
|
|
68
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "downloadedFile"))),
|
|
69
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "signature"))),
|
|
70
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "latestVersion"))),
|
|
71
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "bundleVersion"))),
|
|
72
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "sha256")))
|
|
65
73
|
);
|
|
66
74
|
}
|
|
67
75
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::reactnativebundleupdate::BundleDownloadASCParams& arg) {
|
|
68
76
|
jsi::Object obj(runtime);
|
|
69
|
-
obj.setProperty(runtime, "downloadUrl", JSIConverter<std::string>::toJSI(runtime, arg.downloadUrl));
|
|
70
|
-
obj.setProperty(runtime, "downloadedFile", JSIConverter<std::string>::toJSI(runtime, arg.downloadedFile));
|
|
71
|
-
obj.setProperty(runtime, "signature", JSIConverter<std::string>::toJSI(runtime, arg.signature));
|
|
72
|
-
obj.setProperty(runtime, "latestVersion", JSIConverter<std::string>::toJSI(runtime, arg.latestVersion));
|
|
73
|
-
obj.setProperty(runtime, "bundleVersion", JSIConverter<std::string>::toJSI(runtime, arg.bundleVersion));
|
|
74
|
-
obj.setProperty(runtime, "sha256", JSIConverter<std::string>::toJSI(runtime, arg.sha256));
|
|
77
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "downloadUrl"), JSIConverter<std::string>::toJSI(runtime, arg.downloadUrl));
|
|
78
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "downloadedFile"), JSIConverter<std::string>::toJSI(runtime, arg.downloadedFile));
|
|
79
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "signature"), JSIConverter<std::string>::toJSI(runtime, arg.signature));
|
|
80
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "latestVersion"), JSIConverter<std::string>::toJSI(runtime, arg.latestVersion));
|
|
81
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "bundleVersion"), JSIConverter<std::string>::toJSI(runtime, arg.bundleVersion));
|
|
82
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "sha256"), JSIConverter<std::string>::toJSI(runtime, arg.sha256));
|
|
75
83
|
return obj;
|
|
76
84
|
}
|
|
77
85
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -82,12 +90,12 @@ namespace margelo::nitro {
|
|
|
82
90
|
if (!nitro::isPlainObject(runtime, obj)) {
|
|
83
91
|
return false;
|
|
84
92
|
}
|
|
85
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "downloadUrl"))) return false;
|
|
86
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "downloadedFile"))) return false;
|
|
87
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "signature"))) return false;
|
|
88
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "latestVersion"))) return false;
|
|
89
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "bundleVersion"))) return false;
|
|
90
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "sha256"))) return false;
|
|
93
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "downloadUrl")))) return false;
|
|
94
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "downloadedFile")))) return false;
|
|
95
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "signature")))) return false;
|
|
96
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "latestVersion")))) return false;
|
|
97
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "bundleVersion")))) return false;
|
|
98
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "sha256")))) return false;
|
|
91
99
|
return true;
|
|
92
100
|
}
|
|
93
101
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// BundleDownloadEvent.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -22,6 +22,11 @@
|
|
|
22
22
|
#else
|
|
23
23
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
24
|
#endif
|
|
25
|
+
#if __has_include(<NitroModules/PropNameIDCache.hpp>)
|
|
26
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
27
|
+
#else
|
|
28
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
29
|
+
#endif
|
|
25
30
|
|
|
26
31
|
|
|
27
32
|
|
|
@@ -32,7 +37,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
32
37
|
/**
|
|
33
38
|
* A struct which can be represented as a JavaScript object (BundleDownloadEvent).
|
|
34
39
|
*/
|
|
35
|
-
struct BundleDownloadEvent {
|
|
40
|
+
struct BundleDownloadEvent final {
|
|
36
41
|
public:
|
|
37
42
|
std::string type SWIFT_PRIVATE;
|
|
38
43
|
double progress SWIFT_PRIVATE;
|
|
@@ -41,6 +46,9 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
41
46
|
public:
|
|
42
47
|
BundleDownloadEvent() = default;
|
|
43
48
|
explicit BundleDownloadEvent(std::string type, double progress, std::string message): type(type), progress(progress), message(message) {}
|
|
49
|
+
|
|
50
|
+
public:
|
|
51
|
+
friend bool operator==(const BundleDownloadEvent& lhs, const BundleDownloadEvent& rhs) = default;
|
|
44
52
|
};
|
|
45
53
|
|
|
46
54
|
} // namespace margelo::nitro::reactnativebundleupdate
|
|
@@ -53,16 +61,16 @@ namespace margelo::nitro {
|
|
|
53
61
|
static inline margelo::nitro::reactnativebundleupdate::BundleDownloadEvent fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
54
62
|
jsi::Object obj = arg.asObject(runtime);
|
|
55
63
|
return margelo::nitro::reactnativebundleupdate::BundleDownloadEvent(
|
|
56
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "type")),
|
|
57
|
-
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "progress")),
|
|
58
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "message"))
|
|
64
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "type"))),
|
|
65
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "progress"))),
|
|
66
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "message")))
|
|
59
67
|
);
|
|
60
68
|
}
|
|
61
69
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::reactnativebundleupdate::BundleDownloadEvent& arg) {
|
|
62
70
|
jsi::Object obj(runtime);
|
|
63
|
-
obj.setProperty(runtime, "type", JSIConverter<std::string>::toJSI(runtime, arg.type));
|
|
64
|
-
obj.setProperty(runtime, "progress", JSIConverter<double>::toJSI(runtime, arg.progress));
|
|
65
|
-
obj.setProperty(runtime, "message", JSIConverter<std::string>::toJSI(runtime, arg.message));
|
|
71
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "type"), JSIConverter<std::string>::toJSI(runtime, arg.type));
|
|
72
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "progress"), JSIConverter<double>::toJSI(runtime, arg.progress));
|
|
73
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "message"), JSIConverter<std::string>::toJSI(runtime, arg.message));
|
|
66
74
|
return obj;
|
|
67
75
|
}
|
|
68
76
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -73,9 +81,9 @@ namespace margelo::nitro {
|
|
|
73
81
|
if (!nitro::isPlainObject(runtime, obj)) {
|
|
74
82
|
return false;
|
|
75
83
|
}
|
|
76
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "type"))) return false;
|
|
77
|
-
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "progress"))) return false;
|
|
78
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "message"))) return false;
|
|
84
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "type")))) return false;
|
|
85
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "progress")))) return false;
|
|
86
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "message")))) return false;
|
|
79
87
|
return true;
|
|
80
88
|
}
|
|
81
89
|
};
|