@onekeyfe/react-native-bundle-update 1.1.21
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/LICENSE +21 -0
- package/README.md +36 -0
- package/ReactNativeBundleUpdate.podspec +34 -0
- package/android/CMakeLists.txt +24 -0
- package/android/build.gradle +139 -0
- package/android/gradle.properties +4 -0
- package/android/src/main/AndroidManifest.xml +1 -0
- package/android/src/main/cpp/cpp-adapter.cpp +6 -0
- package/android/src/main/java/com/margelo/nitro/reactnativebundleupdate/ReactNativeBundleUpdate.kt +1409 -0
- package/android/src/main/java/com/margelo/nitro/reactnativebundleupdate/ReactNativeBundleUpdatePackage.kt +24 -0
- package/ios/Frameworks/Gopenpgp.xcframework/Info.plist +52 -0
- package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Gopenpgp +0 -0
- package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Headers/Armor.objc.h +96 -0
- package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Headers/Constants.objc.h +197 -0
- package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Headers/Crypto.objc.h +1963 -0
- package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Headers/Gopenpgp.h +23 -0
- package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Headers/Mime.objc.h +59 -0
- package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Headers/Mobile.objc.h +252 -0
- package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Headers/Profile.objc.h +107 -0
- package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Headers/Universe.objc.h +29 -0
- package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Headers/ref.h +35 -0
- package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Info.plist +20 -0
- package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64/Gopenpgp.framework/Modules/module.modulemap +13 -0
- package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Gopenpgp +0 -0
- package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Headers/Armor.objc.h +96 -0
- package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Headers/Constants.objc.h +197 -0
- package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Headers/Crypto.objc.h +1963 -0
- package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Headers/Gopenpgp.h +23 -0
- package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Headers/Mime.objc.h +59 -0
- package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Headers/Mobile.objc.h +252 -0
- package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Headers/Profile.objc.h +107 -0
- package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Headers/Universe.objc.h +29 -0
- package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Headers/ref.h +35 -0
- package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Info.plist +20 -0
- package/ios/Frameworks/Gopenpgp.xcframework/ios-arm64_x86_64-simulator/Gopenpgp.framework/Modules/module.modulemap +13 -0
- package/ios/ReactNativeBundleUpdate.swift +1338 -0
- package/lib/module/ReactNativeBundleUpdate.nitro.js +4 -0
- package/lib/module/ReactNativeBundleUpdate.nitro.js.map +1 -0
- package/lib/module/index.js +6 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/ReactNativeBundleUpdate.nitro.d.ts +101 -0
- package/lib/typescript/src/ReactNativeBundleUpdate.nitro.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +4 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/nitro.json +17 -0
- package/nitrogen/generated/android/c++/JAscFileInfo.hpp +65 -0
- package/nitrogen/generated/android/c++/JBundleDownloadASCParams.hpp +77 -0
- package/nitrogen/generated/android/c++/JBundleDownloadEvent.hpp +65 -0
- package/nitrogen/generated/android/c++/JBundleDownloadParams.hpp +73 -0
- package/nitrogen/generated/android/c++/JBundleDownloadResult.hpp +73 -0
- package/nitrogen/generated/android/c++/JBundleInstallParams.hpp +69 -0
- package/nitrogen/generated/android/c++/JBundleSwitchParams.hpp +65 -0
- package/nitrogen/generated/android/c++/JBundleVerifyASCParams.hpp +73 -0
- package/nitrogen/generated/android/c++/JBundleVerifyParams.hpp +69 -0
- package/nitrogen/generated/android/c++/JFallbackBundleInfo.hpp +65 -0
- package/nitrogen/generated/android/c++/JFunc_void_BundleDownloadEvent.hpp +78 -0
- package/nitrogen/generated/android/c++/JHybridReactNativeBundleUpdateSpec.cpp +486 -0
- package/nitrogen/generated/android/c++/JHybridReactNativeBundleUpdateSpec.hpp +89 -0
- package/nitrogen/generated/android/c++/JLocalBundleInfo.hpp +61 -0
- package/nitrogen/generated/android/c++/JTestResult.hpp +61 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/AscFileInfo.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleDownloadASCParams.kt +53 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleDownloadEvent.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleDownloadParams.kt +50 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleDownloadResult.kt +50 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleInstallParams.kt +47 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleSwitchParams.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleVerifyASCParams.kt +50 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/BundleVerifyParams.kt +47 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/FallbackBundleInfo.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/Func_void_BundleDownloadEvent.kt +80 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/HybridReactNativeBundleUpdateSpec.kt +159 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/LocalBundleInfo.kt +41 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/TestResult.kt +41 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/reactnativebundleupdateOnLoad.kt +35 -0
- package/nitrogen/generated/android/reactnativebundleupdate+autolinking.cmake +81 -0
- package/nitrogen/generated/android/reactnativebundleupdate+autolinking.gradle +27 -0
- package/nitrogen/generated/android/reactnativebundleupdateOnLoad.cpp +46 -0
- package/nitrogen/generated/android/reactnativebundleupdateOnLoad.hpp +25 -0
- package/nitrogen/generated/ios/ReactNativeBundleUpdate+autolinking.rb +60 -0
- package/nitrogen/generated/ios/ReactNativeBundleUpdate-Swift-Cxx-Bridge.cpp +113 -0
- package/nitrogen/generated/ios/ReactNativeBundleUpdate-Swift-Cxx-Bridge.hpp +513 -0
- package/nitrogen/generated/ios/ReactNativeBundleUpdate-Swift-Cxx-Umbrella.hpp +83 -0
- package/nitrogen/generated/ios/ReactNativeBundleUpdateAutolinking.mm +33 -0
- package/nitrogen/generated/ios/ReactNativeBundleUpdateAutolinking.swift +25 -0
- package/nitrogen/generated/ios/c++/HybridReactNativeBundleUpdateSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridReactNativeBundleUpdateSpecSwift.hpp +304 -0
- package/nitrogen/generated/ios/swift/AscFileInfo.swift +58 -0
- package/nitrogen/generated/ios/swift/BundleDownloadASCParams.swift +91 -0
- package/nitrogen/generated/ios/swift/BundleDownloadEvent.swift +58 -0
- package/nitrogen/generated/ios/swift/BundleDownloadParams.swift +80 -0
- package/nitrogen/generated/ios/swift/BundleDownloadResult.swift +80 -0
- package/nitrogen/generated/ios/swift/BundleInstallParams.swift +69 -0
- package/nitrogen/generated/ios/swift/BundleSwitchParams.swift +58 -0
- package/nitrogen/generated/ios/swift/BundleVerifyASCParams.swift +80 -0
- package/nitrogen/generated/ios/swift/BundleVerifyParams.swift +69 -0
- package/nitrogen/generated/ios/swift/FallbackBundleInfo.swift +58 -0
- package/nitrogen/generated/ios/swift/Func_void.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_BundleDownloadEvent.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_BundleDownloadResult.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_TestResult.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_bool.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_std__string.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_AscFileInfo_.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_FallbackBundleInfo_.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_LocalBundleInfo_.swift +47 -0
- package/nitrogen/generated/ios/swift/HybridReactNativeBundleUpdateSpec.swift +80 -0
- package/nitrogen/generated/ios/swift/HybridReactNativeBundleUpdateSpec_cxx.swift +595 -0
- package/nitrogen/generated/ios/swift/LocalBundleInfo.swift +47 -0
- package/nitrogen/generated/ios/swift/TestResult.swift +47 -0
- package/nitrogen/generated/shared/c++/AscFileInfo.hpp +83 -0
- package/nitrogen/generated/shared/c++/BundleDownloadASCParams.hpp +95 -0
- package/nitrogen/generated/shared/c++/BundleDownloadEvent.hpp +83 -0
- package/nitrogen/generated/shared/c++/BundleDownloadParams.hpp +91 -0
- package/nitrogen/generated/shared/c++/BundleDownloadResult.hpp +91 -0
- package/nitrogen/generated/shared/c++/BundleInstallParams.hpp +87 -0
- package/nitrogen/generated/shared/c++/BundleSwitchParams.hpp +83 -0
- package/nitrogen/generated/shared/c++/BundleVerifyASCParams.hpp +91 -0
- package/nitrogen/generated/shared/c++/BundleVerifyParams.hpp +87 -0
- package/nitrogen/generated/shared/c++/FallbackBundleInfo.hpp +83 -0
- package/nitrogen/generated/shared/c++/HybridReactNativeBundleUpdateSpec.cpp +45 -0
- package/nitrogen/generated/shared/c++/HybridReactNativeBundleUpdateSpec.hpp +124 -0
- package/nitrogen/generated/shared/c++/LocalBundleInfo.hpp +79 -0
- package/nitrogen/generated/shared/c++/TestResult.hpp +79 -0
- package/package.json +169 -0
- package/src/ReactNativeBundleUpdate.nitro.ts +143 -0
- package/src/index.tsx +8 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridReactNativeBundleUpdateSpecSwift.cpp
|
|
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
|
+
#include "HybridReactNativeBundleUpdateSpecSwift.hpp"
|
|
9
|
+
|
|
10
|
+
namespace margelo::nitro::reactnativebundleupdate {
|
|
11
|
+
} // namespace margelo::nitro::reactnativebundleupdate
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridReactNativeBundleUpdateSpecSwift.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
|
+
#include "HybridReactNativeBundleUpdateSpec.hpp"
|
|
11
|
+
|
|
12
|
+
// Forward declaration of `HybridReactNativeBundleUpdateSpec_cxx` to properly resolve imports.
|
|
13
|
+
namespace ReactNativeBundleUpdate { class HybridReactNativeBundleUpdateSpec_cxx; }
|
|
14
|
+
|
|
15
|
+
// Forward declaration of `BundleDownloadResult` to properly resolve imports.
|
|
16
|
+
namespace margelo::nitro::reactnativebundleupdate { struct BundleDownloadResult; }
|
|
17
|
+
// Forward declaration of `BundleDownloadParams` to properly resolve imports.
|
|
18
|
+
namespace margelo::nitro::reactnativebundleupdate { struct BundleDownloadParams; }
|
|
19
|
+
// Forward declaration of `BundleVerifyParams` to properly resolve imports.
|
|
20
|
+
namespace margelo::nitro::reactnativebundleupdate { struct BundleVerifyParams; }
|
|
21
|
+
// Forward declaration of `BundleVerifyASCParams` to properly resolve imports.
|
|
22
|
+
namespace margelo::nitro::reactnativebundleupdate { struct BundleVerifyASCParams; }
|
|
23
|
+
// Forward declaration of `BundleDownloadASCParams` to properly resolve imports.
|
|
24
|
+
namespace margelo::nitro::reactnativebundleupdate { struct BundleDownloadASCParams; }
|
|
25
|
+
// Forward declaration of `BundleInstallParams` to properly resolve imports.
|
|
26
|
+
namespace margelo::nitro::reactnativebundleupdate { struct BundleInstallParams; }
|
|
27
|
+
// Forward declaration of `TestResult` to properly resolve imports.
|
|
28
|
+
namespace margelo::nitro::reactnativebundleupdate { struct TestResult; }
|
|
29
|
+
// Forward declaration of `FallbackBundleInfo` to properly resolve imports.
|
|
30
|
+
namespace margelo::nitro::reactnativebundleupdate { struct FallbackBundleInfo; }
|
|
31
|
+
// Forward declaration of `BundleSwitchParams` to properly resolve imports.
|
|
32
|
+
namespace margelo::nitro::reactnativebundleupdate { struct BundleSwitchParams; }
|
|
33
|
+
// Forward declaration of `LocalBundleInfo` to properly resolve imports.
|
|
34
|
+
namespace margelo::nitro::reactnativebundleupdate { struct LocalBundleInfo; }
|
|
35
|
+
// Forward declaration of `AscFileInfo` to properly resolve imports.
|
|
36
|
+
namespace margelo::nitro::reactnativebundleupdate { struct AscFileInfo; }
|
|
37
|
+
// Forward declaration of `BundleDownloadEvent` to properly resolve imports.
|
|
38
|
+
namespace margelo::nitro::reactnativebundleupdate { struct BundleDownloadEvent; }
|
|
39
|
+
|
|
40
|
+
#include "BundleDownloadResult.hpp"
|
|
41
|
+
#include <NitroModules/Promise.hpp>
|
|
42
|
+
#include <string>
|
|
43
|
+
#include "BundleDownloadParams.hpp"
|
|
44
|
+
#include "BundleVerifyParams.hpp"
|
|
45
|
+
#include "BundleVerifyASCParams.hpp"
|
|
46
|
+
#include "BundleDownloadASCParams.hpp"
|
|
47
|
+
#include "BundleInstallParams.hpp"
|
|
48
|
+
#include "TestResult.hpp"
|
|
49
|
+
#include "FallbackBundleInfo.hpp"
|
|
50
|
+
#include <vector>
|
|
51
|
+
#include "BundleSwitchParams.hpp"
|
|
52
|
+
#include "LocalBundleInfo.hpp"
|
|
53
|
+
#include "AscFileInfo.hpp"
|
|
54
|
+
#include "BundleDownloadEvent.hpp"
|
|
55
|
+
#include <functional>
|
|
56
|
+
|
|
57
|
+
#include "ReactNativeBundleUpdate-Swift-Cxx-Umbrella.hpp"
|
|
58
|
+
|
|
59
|
+
namespace margelo::nitro::reactnativebundleupdate {
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The C++ part of HybridReactNativeBundleUpdateSpec_cxx.swift.
|
|
63
|
+
*
|
|
64
|
+
* HybridReactNativeBundleUpdateSpecSwift (C++) accesses HybridReactNativeBundleUpdateSpec_cxx (Swift), and might
|
|
65
|
+
* contain some additional bridging code for C++ <> Swift interop.
|
|
66
|
+
*
|
|
67
|
+
* Since this obviously introduces an overhead, I hope at some point in
|
|
68
|
+
* the future, HybridReactNativeBundleUpdateSpec_cxx can directly inherit from the C++ class HybridReactNativeBundleUpdateSpec
|
|
69
|
+
* to simplify the whole structure and memory management.
|
|
70
|
+
*/
|
|
71
|
+
class HybridReactNativeBundleUpdateSpecSwift: public virtual HybridReactNativeBundleUpdateSpec {
|
|
72
|
+
public:
|
|
73
|
+
// Constructor from a Swift instance
|
|
74
|
+
explicit HybridReactNativeBundleUpdateSpecSwift(const ReactNativeBundleUpdate::HybridReactNativeBundleUpdateSpec_cxx& swiftPart):
|
|
75
|
+
HybridObject(HybridReactNativeBundleUpdateSpec::TAG),
|
|
76
|
+
_swiftPart(swiftPart) { }
|
|
77
|
+
|
|
78
|
+
public:
|
|
79
|
+
// Get the Swift part
|
|
80
|
+
inline ReactNativeBundleUpdate::HybridReactNativeBundleUpdateSpec_cxx& getSwiftPart() noexcept {
|
|
81
|
+
return _swiftPart;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
public:
|
|
85
|
+
inline size_t getExternalMemorySize() noexcept override {
|
|
86
|
+
return _swiftPart.getMemorySize();
|
|
87
|
+
}
|
|
88
|
+
void dispose() noexcept override {
|
|
89
|
+
_swiftPart.dispose();
|
|
90
|
+
}
|
|
91
|
+
std::string toString() override {
|
|
92
|
+
return _swiftPart.toString();
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
public:
|
|
96
|
+
// Properties
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
public:
|
|
100
|
+
// Methods
|
|
101
|
+
inline std::shared_ptr<Promise<BundleDownloadResult>> downloadBundle(const BundleDownloadParams& params) override {
|
|
102
|
+
auto __result = _swiftPart.downloadBundle(std::forward<decltype(params)>(params));
|
|
103
|
+
if (__result.hasError()) [[unlikely]] {
|
|
104
|
+
std::rethrow_exception(__result.error());
|
|
105
|
+
}
|
|
106
|
+
auto __value = std::move(__result.value());
|
|
107
|
+
return __value;
|
|
108
|
+
}
|
|
109
|
+
inline std::shared_ptr<Promise<void>> verifyBundle(const BundleVerifyParams& params) override {
|
|
110
|
+
auto __result = _swiftPart.verifyBundle(std::forward<decltype(params)>(params));
|
|
111
|
+
if (__result.hasError()) [[unlikely]] {
|
|
112
|
+
std::rethrow_exception(__result.error());
|
|
113
|
+
}
|
|
114
|
+
auto __value = std::move(__result.value());
|
|
115
|
+
return __value;
|
|
116
|
+
}
|
|
117
|
+
inline std::shared_ptr<Promise<void>> verifyBundleASC(const BundleVerifyASCParams& params) override {
|
|
118
|
+
auto __result = _swiftPart.verifyBundleASC(std::forward<decltype(params)>(params));
|
|
119
|
+
if (__result.hasError()) [[unlikely]] {
|
|
120
|
+
std::rethrow_exception(__result.error());
|
|
121
|
+
}
|
|
122
|
+
auto __value = std::move(__result.value());
|
|
123
|
+
return __value;
|
|
124
|
+
}
|
|
125
|
+
inline std::shared_ptr<Promise<void>> downloadBundleASC(const BundleDownloadASCParams& params) override {
|
|
126
|
+
auto __result = _swiftPart.downloadBundleASC(std::forward<decltype(params)>(params));
|
|
127
|
+
if (__result.hasError()) [[unlikely]] {
|
|
128
|
+
std::rethrow_exception(__result.error());
|
|
129
|
+
}
|
|
130
|
+
auto __value = std::move(__result.value());
|
|
131
|
+
return __value;
|
|
132
|
+
}
|
|
133
|
+
inline std::shared_ptr<Promise<void>> installBundle(const BundleInstallParams& params) override {
|
|
134
|
+
auto __result = _swiftPart.installBundle(std::forward<decltype(params)>(params));
|
|
135
|
+
if (__result.hasError()) [[unlikely]] {
|
|
136
|
+
std::rethrow_exception(__result.error());
|
|
137
|
+
}
|
|
138
|
+
auto __value = std::move(__result.value());
|
|
139
|
+
return __value;
|
|
140
|
+
}
|
|
141
|
+
inline std::shared_ptr<Promise<void>> clearBundle() override {
|
|
142
|
+
auto __result = _swiftPart.clearBundle();
|
|
143
|
+
if (__result.hasError()) [[unlikely]] {
|
|
144
|
+
std::rethrow_exception(__result.error());
|
|
145
|
+
}
|
|
146
|
+
auto __value = std::move(__result.value());
|
|
147
|
+
return __value;
|
|
148
|
+
}
|
|
149
|
+
inline std::shared_ptr<Promise<TestResult>> clearAllJSBundleData() override {
|
|
150
|
+
auto __result = _swiftPart.clearAllJSBundleData();
|
|
151
|
+
if (__result.hasError()) [[unlikely]] {
|
|
152
|
+
std::rethrow_exception(__result.error());
|
|
153
|
+
}
|
|
154
|
+
auto __value = std::move(__result.value());
|
|
155
|
+
return __value;
|
|
156
|
+
}
|
|
157
|
+
inline std::shared_ptr<Promise<std::vector<FallbackBundleInfo>>> getFallbackUpdateBundleData() override {
|
|
158
|
+
auto __result = _swiftPart.getFallbackUpdateBundleData();
|
|
159
|
+
if (__result.hasError()) [[unlikely]] {
|
|
160
|
+
std::rethrow_exception(__result.error());
|
|
161
|
+
}
|
|
162
|
+
auto __value = std::move(__result.value());
|
|
163
|
+
return __value;
|
|
164
|
+
}
|
|
165
|
+
inline std::shared_ptr<Promise<void>> setCurrentUpdateBundleData(const BundleSwitchParams& params) override {
|
|
166
|
+
auto __result = _swiftPart.setCurrentUpdateBundleData(std::forward<decltype(params)>(params));
|
|
167
|
+
if (__result.hasError()) [[unlikely]] {
|
|
168
|
+
std::rethrow_exception(__result.error());
|
|
169
|
+
}
|
|
170
|
+
auto __value = std::move(__result.value());
|
|
171
|
+
return __value;
|
|
172
|
+
}
|
|
173
|
+
inline std::string getWebEmbedPath() override {
|
|
174
|
+
auto __result = _swiftPart.getWebEmbedPath();
|
|
175
|
+
if (__result.hasError()) [[unlikely]] {
|
|
176
|
+
std::rethrow_exception(__result.error());
|
|
177
|
+
}
|
|
178
|
+
auto __value = std::move(__result.value());
|
|
179
|
+
return __value;
|
|
180
|
+
}
|
|
181
|
+
inline std::shared_ptr<Promise<std::string>> getWebEmbedPathAsync() override {
|
|
182
|
+
auto __result = _swiftPart.getWebEmbedPathAsync();
|
|
183
|
+
if (__result.hasError()) [[unlikely]] {
|
|
184
|
+
std::rethrow_exception(__result.error());
|
|
185
|
+
}
|
|
186
|
+
auto __value = std::move(__result.value());
|
|
187
|
+
return __value;
|
|
188
|
+
}
|
|
189
|
+
inline std::shared_ptr<Promise<std::string>> getJsBundlePath() override {
|
|
190
|
+
auto __result = _swiftPart.getJsBundlePath();
|
|
191
|
+
if (__result.hasError()) [[unlikely]] {
|
|
192
|
+
std::rethrow_exception(__result.error());
|
|
193
|
+
}
|
|
194
|
+
auto __value = std::move(__result.value());
|
|
195
|
+
return __value;
|
|
196
|
+
}
|
|
197
|
+
inline std::shared_ptr<Promise<std::string>> getNativeAppVersion() override {
|
|
198
|
+
auto __result = _swiftPart.getNativeAppVersion();
|
|
199
|
+
if (__result.hasError()) [[unlikely]] {
|
|
200
|
+
std::rethrow_exception(__result.error());
|
|
201
|
+
}
|
|
202
|
+
auto __value = std::move(__result.value());
|
|
203
|
+
return __value;
|
|
204
|
+
}
|
|
205
|
+
inline std::shared_ptr<Promise<bool>> testVerification() override {
|
|
206
|
+
auto __result = _swiftPart.testVerification();
|
|
207
|
+
if (__result.hasError()) [[unlikely]] {
|
|
208
|
+
std::rethrow_exception(__result.error());
|
|
209
|
+
}
|
|
210
|
+
auto __value = std::move(__result.value());
|
|
211
|
+
return __value;
|
|
212
|
+
}
|
|
213
|
+
inline std::shared_ptr<Promise<bool>> isBundleExists(const std::string& appVersion, const std::string& bundleVersion) override {
|
|
214
|
+
auto __result = _swiftPart.isBundleExists(appVersion, bundleVersion);
|
|
215
|
+
if (__result.hasError()) [[unlikely]] {
|
|
216
|
+
std::rethrow_exception(__result.error());
|
|
217
|
+
}
|
|
218
|
+
auto __value = std::move(__result.value());
|
|
219
|
+
return __value;
|
|
220
|
+
}
|
|
221
|
+
inline std::shared_ptr<Promise<void>> verifyExtractedBundle(const std::string& appVersion, const std::string& bundleVersion) override {
|
|
222
|
+
auto __result = _swiftPart.verifyExtractedBundle(appVersion, bundleVersion);
|
|
223
|
+
if (__result.hasError()) [[unlikely]] {
|
|
224
|
+
std::rethrow_exception(__result.error());
|
|
225
|
+
}
|
|
226
|
+
auto __value = std::move(__result.value());
|
|
227
|
+
return __value;
|
|
228
|
+
}
|
|
229
|
+
inline std::shared_ptr<Promise<std::vector<LocalBundleInfo>>> listLocalBundles() override {
|
|
230
|
+
auto __result = _swiftPart.listLocalBundles();
|
|
231
|
+
if (__result.hasError()) [[unlikely]] {
|
|
232
|
+
std::rethrow_exception(__result.error());
|
|
233
|
+
}
|
|
234
|
+
auto __value = std::move(__result.value());
|
|
235
|
+
return __value;
|
|
236
|
+
}
|
|
237
|
+
inline std::shared_ptr<Promise<std::vector<AscFileInfo>>> listAscFiles() override {
|
|
238
|
+
auto __result = _swiftPart.listAscFiles();
|
|
239
|
+
if (__result.hasError()) [[unlikely]] {
|
|
240
|
+
std::rethrow_exception(__result.error());
|
|
241
|
+
}
|
|
242
|
+
auto __value = std::move(__result.value());
|
|
243
|
+
return __value;
|
|
244
|
+
}
|
|
245
|
+
inline std::shared_ptr<Promise<std::string>> getSha256FromFilePath(const std::string& filePath) override {
|
|
246
|
+
auto __result = _swiftPart.getSha256FromFilePath(filePath);
|
|
247
|
+
if (__result.hasError()) [[unlikely]] {
|
|
248
|
+
std::rethrow_exception(__result.error());
|
|
249
|
+
}
|
|
250
|
+
auto __value = std::move(__result.value());
|
|
251
|
+
return __value;
|
|
252
|
+
}
|
|
253
|
+
inline std::shared_ptr<Promise<TestResult>> testDeleteJsBundle(const std::string& appVersion, const std::string& bundleVersion) override {
|
|
254
|
+
auto __result = _swiftPart.testDeleteJsBundle(appVersion, bundleVersion);
|
|
255
|
+
if (__result.hasError()) [[unlikely]] {
|
|
256
|
+
std::rethrow_exception(__result.error());
|
|
257
|
+
}
|
|
258
|
+
auto __value = std::move(__result.value());
|
|
259
|
+
return __value;
|
|
260
|
+
}
|
|
261
|
+
inline std::shared_ptr<Promise<TestResult>> testDeleteJsRuntimeDir(const std::string& appVersion, const std::string& bundleVersion) override {
|
|
262
|
+
auto __result = _swiftPart.testDeleteJsRuntimeDir(appVersion, bundleVersion);
|
|
263
|
+
if (__result.hasError()) [[unlikely]] {
|
|
264
|
+
std::rethrow_exception(__result.error());
|
|
265
|
+
}
|
|
266
|
+
auto __value = std::move(__result.value());
|
|
267
|
+
return __value;
|
|
268
|
+
}
|
|
269
|
+
inline std::shared_ptr<Promise<TestResult>> testDeleteMetadataJson(const std::string& appVersion, const std::string& bundleVersion) override {
|
|
270
|
+
auto __result = _swiftPart.testDeleteMetadataJson(appVersion, bundleVersion);
|
|
271
|
+
if (__result.hasError()) [[unlikely]] {
|
|
272
|
+
std::rethrow_exception(__result.error());
|
|
273
|
+
}
|
|
274
|
+
auto __value = std::move(__result.value());
|
|
275
|
+
return __value;
|
|
276
|
+
}
|
|
277
|
+
inline std::shared_ptr<Promise<TestResult>> testWriteEmptyMetadataJson(const std::string& appVersion, const std::string& bundleVersion) override {
|
|
278
|
+
auto __result = _swiftPart.testWriteEmptyMetadataJson(appVersion, bundleVersion);
|
|
279
|
+
if (__result.hasError()) [[unlikely]] {
|
|
280
|
+
std::rethrow_exception(__result.error());
|
|
281
|
+
}
|
|
282
|
+
auto __value = std::move(__result.value());
|
|
283
|
+
return __value;
|
|
284
|
+
}
|
|
285
|
+
inline double addDownloadListener(const std::function<void(const BundleDownloadEvent& /* event */)>& callback) override {
|
|
286
|
+
auto __result = _swiftPart.addDownloadListener(callback);
|
|
287
|
+
if (__result.hasError()) [[unlikely]] {
|
|
288
|
+
std::rethrow_exception(__result.error());
|
|
289
|
+
}
|
|
290
|
+
auto __value = std::move(__result.value());
|
|
291
|
+
return __value;
|
|
292
|
+
}
|
|
293
|
+
inline void removeDownloadListener(double id) override {
|
|
294
|
+
auto __result = _swiftPart.removeDownloadListener(std::forward<decltype(id)>(id));
|
|
295
|
+
if (__result.hasError()) [[unlikely]] {
|
|
296
|
+
std::rethrow_exception(__result.error());
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
private:
|
|
301
|
+
ReactNativeBundleUpdate::HybridReactNativeBundleUpdateSpec_cxx _swiftPart;
|
|
302
|
+
};
|
|
303
|
+
|
|
304
|
+
} // namespace margelo::nitro::reactnativebundleupdate
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// AscFileInfo.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 `AscFileInfo`, backed by a C++ struct.
|
|
13
|
+
*/
|
|
14
|
+
public typealias AscFileInfo = margelo.nitro.reactnativebundleupdate.AscFileInfo
|
|
15
|
+
|
|
16
|
+
public extension AscFileInfo {
|
|
17
|
+
private typealias bridge = margelo.nitro.reactnativebundleupdate.bridge.swift
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Create a new instance of `AscFileInfo`.
|
|
21
|
+
*/
|
|
22
|
+
init(fileName: String, filePath: String, fileSize: Double) {
|
|
23
|
+
self.init(std.string(fileName), std.string(filePath), fileSize)
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
var fileName: String {
|
|
27
|
+
@inline(__always)
|
|
28
|
+
get {
|
|
29
|
+
return String(self.__fileName)
|
|
30
|
+
}
|
|
31
|
+
@inline(__always)
|
|
32
|
+
set {
|
|
33
|
+
self.__fileName = std.string(newValue)
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
var filePath: String {
|
|
38
|
+
@inline(__always)
|
|
39
|
+
get {
|
|
40
|
+
return String(self.__filePath)
|
|
41
|
+
}
|
|
42
|
+
@inline(__always)
|
|
43
|
+
set {
|
|
44
|
+
self.__filePath = std.string(newValue)
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
var fileSize: Double {
|
|
49
|
+
@inline(__always)
|
|
50
|
+
get {
|
|
51
|
+
return self.__fileSize
|
|
52
|
+
}
|
|
53
|
+
@inline(__always)
|
|
54
|
+
set {
|
|
55
|
+
self.__fileSize = newValue
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// BundleDownloadASCParams.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 `BundleDownloadASCParams`, backed by a C++ struct.
|
|
13
|
+
*/
|
|
14
|
+
public typealias BundleDownloadASCParams = margelo.nitro.reactnativebundleupdate.BundleDownloadASCParams
|
|
15
|
+
|
|
16
|
+
public extension BundleDownloadASCParams {
|
|
17
|
+
private typealias bridge = margelo.nitro.reactnativebundleupdate.bridge.swift
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Create a new instance of `BundleDownloadASCParams`.
|
|
21
|
+
*/
|
|
22
|
+
init(downloadUrl: String, downloadedFile: String, signature: String, latestVersion: String, bundleVersion: String, sha256: String) {
|
|
23
|
+
self.init(std.string(downloadUrl), std.string(downloadedFile), std.string(signature), std.string(latestVersion), std.string(bundleVersion), std.string(sha256))
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
var downloadUrl: String {
|
|
27
|
+
@inline(__always)
|
|
28
|
+
get {
|
|
29
|
+
return String(self.__downloadUrl)
|
|
30
|
+
}
|
|
31
|
+
@inline(__always)
|
|
32
|
+
set {
|
|
33
|
+
self.__downloadUrl = std.string(newValue)
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
var downloadedFile: String {
|
|
38
|
+
@inline(__always)
|
|
39
|
+
get {
|
|
40
|
+
return String(self.__downloadedFile)
|
|
41
|
+
}
|
|
42
|
+
@inline(__always)
|
|
43
|
+
set {
|
|
44
|
+
self.__downloadedFile = std.string(newValue)
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
var signature: String {
|
|
49
|
+
@inline(__always)
|
|
50
|
+
get {
|
|
51
|
+
return String(self.__signature)
|
|
52
|
+
}
|
|
53
|
+
@inline(__always)
|
|
54
|
+
set {
|
|
55
|
+
self.__signature = std.string(newValue)
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
var latestVersion: String {
|
|
60
|
+
@inline(__always)
|
|
61
|
+
get {
|
|
62
|
+
return String(self.__latestVersion)
|
|
63
|
+
}
|
|
64
|
+
@inline(__always)
|
|
65
|
+
set {
|
|
66
|
+
self.__latestVersion = std.string(newValue)
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
var bundleVersion: String {
|
|
71
|
+
@inline(__always)
|
|
72
|
+
get {
|
|
73
|
+
return String(self.__bundleVersion)
|
|
74
|
+
}
|
|
75
|
+
@inline(__always)
|
|
76
|
+
set {
|
|
77
|
+
self.__bundleVersion = std.string(newValue)
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
var sha256: String {
|
|
82
|
+
@inline(__always)
|
|
83
|
+
get {
|
|
84
|
+
return String(self.__sha256)
|
|
85
|
+
}
|
|
86
|
+
@inline(__always)
|
|
87
|
+
set {
|
|
88
|
+
self.__sha256 = std.string(newValue)
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// BundleDownloadEvent.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 `BundleDownloadEvent`, backed by a C++ struct.
|
|
13
|
+
*/
|
|
14
|
+
public typealias BundleDownloadEvent = margelo.nitro.reactnativebundleupdate.BundleDownloadEvent
|
|
15
|
+
|
|
16
|
+
public extension BundleDownloadEvent {
|
|
17
|
+
private typealias bridge = margelo.nitro.reactnativebundleupdate.bridge.swift
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Create a new instance of `BundleDownloadEvent`.
|
|
21
|
+
*/
|
|
22
|
+
init(type: String, progress: Double, message: String) {
|
|
23
|
+
self.init(std.string(type), progress, std.string(message))
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
var type: String {
|
|
27
|
+
@inline(__always)
|
|
28
|
+
get {
|
|
29
|
+
return String(self.__type)
|
|
30
|
+
}
|
|
31
|
+
@inline(__always)
|
|
32
|
+
set {
|
|
33
|
+
self.__type = std.string(newValue)
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
var progress: Double {
|
|
38
|
+
@inline(__always)
|
|
39
|
+
get {
|
|
40
|
+
return self.__progress
|
|
41
|
+
}
|
|
42
|
+
@inline(__always)
|
|
43
|
+
set {
|
|
44
|
+
self.__progress = newValue
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
var message: String {
|
|
49
|
+
@inline(__always)
|
|
50
|
+
get {
|
|
51
|
+
return String(self.__message)
|
|
52
|
+
}
|
|
53
|
+
@inline(__always)
|
|
54
|
+
set {
|
|
55
|
+
self.__message = std.string(newValue)
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// BundleDownloadParams.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 `BundleDownloadParams`, backed by a C++ struct.
|
|
13
|
+
*/
|
|
14
|
+
public typealias BundleDownloadParams = margelo.nitro.reactnativebundleupdate.BundleDownloadParams
|
|
15
|
+
|
|
16
|
+
public extension BundleDownloadParams {
|
|
17
|
+
private typealias bridge = margelo.nitro.reactnativebundleupdate.bridge.swift
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Create a new instance of `BundleDownloadParams`.
|
|
21
|
+
*/
|
|
22
|
+
init(downloadUrl: String, latestVersion: String, bundleVersion: String, fileSize: Double, sha256: String) {
|
|
23
|
+
self.init(std.string(downloadUrl), std.string(latestVersion), std.string(bundleVersion), fileSize, std.string(sha256))
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
var downloadUrl: String {
|
|
27
|
+
@inline(__always)
|
|
28
|
+
get {
|
|
29
|
+
return String(self.__downloadUrl)
|
|
30
|
+
}
|
|
31
|
+
@inline(__always)
|
|
32
|
+
set {
|
|
33
|
+
self.__downloadUrl = std.string(newValue)
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
var latestVersion: String {
|
|
38
|
+
@inline(__always)
|
|
39
|
+
get {
|
|
40
|
+
return String(self.__latestVersion)
|
|
41
|
+
}
|
|
42
|
+
@inline(__always)
|
|
43
|
+
set {
|
|
44
|
+
self.__latestVersion = std.string(newValue)
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
var bundleVersion: String {
|
|
49
|
+
@inline(__always)
|
|
50
|
+
get {
|
|
51
|
+
return String(self.__bundleVersion)
|
|
52
|
+
}
|
|
53
|
+
@inline(__always)
|
|
54
|
+
set {
|
|
55
|
+
self.__bundleVersion = std.string(newValue)
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
var fileSize: Double {
|
|
60
|
+
@inline(__always)
|
|
61
|
+
get {
|
|
62
|
+
return self.__fileSize
|
|
63
|
+
}
|
|
64
|
+
@inline(__always)
|
|
65
|
+
set {
|
|
66
|
+
self.__fileSize = newValue
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
var sha256: String {
|
|
71
|
+
@inline(__always)
|
|
72
|
+
get {
|
|
73
|
+
return String(self.__sha256)
|
|
74
|
+
}
|
|
75
|
+
@inline(__always)
|
|
76
|
+
set {
|
|
77
|
+
self.__sha256 = std.string(newValue)
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// BundleDownloadResult.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 `BundleDownloadResult`, backed by a C++ struct.
|
|
13
|
+
*/
|
|
14
|
+
public typealias BundleDownloadResult = margelo.nitro.reactnativebundleupdate.BundleDownloadResult
|
|
15
|
+
|
|
16
|
+
public extension BundleDownloadResult {
|
|
17
|
+
private typealias bridge = margelo.nitro.reactnativebundleupdate.bridge.swift
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Create a new instance of `BundleDownloadResult`.
|
|
21
|
+
*/
|
|
22
|
+
init(downloadedFile: String, downloadUrl: String, latestVersion: String, bundleVersion: String, sha256: String) {
|
|
23
|
+
self.init(std.string(downloadedFile), std.string(downloadUrl), std.string(latestVersion), std.string(bundleVersion), std.string(sha256))
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
var downloadedFile: String {
|
|
27
|
+
@inline(__always)
|
|
28
|
+
get {
|
|
29
|
+
return String(self.__downloadedFile)
|
|
30
|
+
}
|
|
31
|
+
@inline(__always)
|
|
32
|
+
set {
|
|
33
|
+
self.__downloadedFile = std.string(newValue)
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
var downloadUrl: String {
|
|
38
|
+
@inline(__always)
|
|
39
|
+
get {
|
|
40
|
+
return String(self.__downloadUrl)
|
|
41
|
+
}
|
|
42
|
+
@inline(__always)
|
|
43
|
+
set {
|
|
44
|
+
self.__downloadUrl = std.string(newValue)
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
var latestVersion: String {
|
|
49
|
+
@inline(__always)
|
|
50
|
+
get {
|
|
51
|
+
return String(self.__latestVersion)
|
|
52
|
+
}
|
|
53
|
+
@inline(__always)
|
|
54
|
+
set {
|
|
55
|
+
self.__latestVersion = std.string(newValue)
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
var bundleVersion: String {
|
|
60
|
+
@inline(__always)
|
|
61
|
+
get {
|
|
62
|
+
return String(self.__bundleVersion)
|
|
63
|
+
}
|
|
64
|
+
@inline(__always)
|
|
65
|
+
set {
|
|
66
|
+
self.__bundleVersion = std.string(newValue)
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
var sha256: String {
|
|
71
|
+
@inline(__always)
|
|
72
|
+
get {
|
|
73
|
+
return String(self.__sha256)
|
|
74
|
+
}
|
|
75
|
+
@inline(__always)
|
|
76
|
+
set {
|
|
77
|
+
self.__sha256 = std.string(newValue)
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|