@onekeyfe/react-native-bundle-update 3.0.81 → 3.0.85
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 +4 -4
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// JAscFileInfo.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
|
|
@@ -21,7 +21,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
21
21
|
*/
|
|
22
22
|
struct JAscFileInfo final: public jni::JavaClass<JAscFileInfo> {
|
|
23
23
|
public:
|
|
24
|
-
static auto
|
|
24
|
+
static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/reactnativebundleupdate/AscFileInfo;";
|
|
25
25
|
|
|
26
26
|
public:
|
|
27
27
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// JBundleDownloadASCParams.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
|
|
@@ -21,7 +21,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
21
21
|
*/
|
|
22
22
|
struct JBundleDownloadASCParams final: public jni::JavaClass<JBundleDownloadASCParams> {
|
|
23
23
|
public:
|
|
24
|
-
static auto
|
|
24
|
+
static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/reactnativebundleupdate/BundleDownloadASCParams;";
|
|
25
25
|
|
|
26
26
|
public:
|
|
27
27
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// JBundleDownloadEvent.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
|
|
@@ -21,7 +21,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
21
21
|
*/
|
|
22
22
|
struct JBundleDownloadEvent final: public jni::JavaClass<JBundleDownloadEvent> {
|
|
23
23
|
public:
|
|
24
|
-
static auto
|
|
24
|
+
static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/reactnativebundleupdate/BundleDownloadEvent;";
|
|
25
25
|
|
|
26
26
|
public:
|
|
27
27
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// JBundleDownloadParams.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
|
|
@@ -21,7 +21,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
21
21
|
*/
|
|
22
22
|
struct JBundleDownloadParams final: public jni::JavaClass<JBundleDownloadParams> {
|
|
23
23
|
public:
|
|
24
|
-
static auto
|
|
24
|
+
static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/reactnativebundleupdate/BundleDownloadParams;";
|
|
25
25
|
|
|
26
26
|
public:
|
|
27
27
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// JBundleDownloadResult.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
|
|
@@ -21,7 +21,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
21
21
|
*/
|
|
22
22
|
struct JBundleDownloadResult final: public jni::JavaClass<JBundleDownloadResult> {
|
|
23
23
|
public:
|
|
24
|
-
static auto
|
|
24
|
+
static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/reactnativebundleupdate/BundleDownloadResult;";
|
|
25
25
|
|
|
26
26
|
public:
|
|
27
27
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// JBundleInstallParams.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
|
|
@@ -21,7 +21,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
21
21
|
*/
|
|
22
22
|
struct JBundleInstallParams final: public jni::JavaClass<JBundleInstallParams> {
|
|
23
23
|
public:
|
|
24
|
-
static auto
|
|
24
|
+
static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/reactnativebundleupdate/BundleInstallParams;";
|
|
25
25
|
|
|
26
26
|
public:
|
|
27
27
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// JBundleSwitchParams.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
|
|
@@ -21,7 +21,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
21
21
|
*/
|
|
22
22
|
struct JBundleSwitchParams final: public jni::JavaClass<JBundleSwitchParams> {
|
|
23
23
|
public:
|
|
24
|
-
static auto
|
|
24
|
+
static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/reactnativebundleupdate/BundleSwitchParams;";
|
|
25
25
|
|
|
26
26
|
public:
|
|
27
27
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// JBundleVerifyASCParams.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
|
|
@@ -21,7 +21,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
21
21
|
*/
|
|
22
22
|
struct JBundleVerifyASCParams final: public jni::JavaClass<JBundleVerifyASCParams> {
|
|
23
23
|
public:
|
|
24
|
-
static auto
|
|
24
|
+
static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/reactnativebundleupdate/BundleVerifyASCParams;";
|
|
25
25
|
|
|
26
26
|
public:
|
|
27
27
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// JBundleVerifyParams.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
|
|
@@ -21,7 +21,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
21
21
|
*/
|
|
22
22
|
struct JBundleVerifyParams final: public jni::JavaClass<JBundleVerifyParams> {
|
|
23
23
|
public:
|
|
24
|
-
static auto
|
|
24
|
+
static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/reactnativebundleupdate/BundleVerifyParams;";
|
|
25
25
|
|
|
26
26
|
public:
|
|
27
27
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// JFallbackBundleInfo.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
|
|
@@ -21,7 +21,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
21
21
|
*/
|
|
22
22
|
struct JFallbackBundleInfo final: public jni::JavaClass<JFallbackBundleInfo> {
|
|
23
23
|
public:
|
|
24
|
-
static auto
|
|
24
|
+
static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/reactnativebundleupdate/FallbackBundleInfo;";
|
|
25
25
|
|
|
26
26
|
public:
|
|
27
27
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// JFunc_void_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
|
|
@@ -26,7 +26,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
26
26
|
*/
|
|
27
27
|
struct JFunc_void_BundleDownloadEvent: public jni::JavaClass<JFunc_void_BundleDownloadEvent> {
|
|
28
28
|
public:
|
|
29
|
-
static auto
|
|
29
|
+
static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/reactnativebundleupdate/Func_void_BundleDownloadEvent;";
|
|
30
30
|
|
|
31
31
|
public:
|
|
32
32
|
/**
|
|
@@ -62,7 +62,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
public:
|
|
65
|
-
static auto
|
|
65
|
+
static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/reactnativebundleupdate/Func_void_BundleDownloadEvent_cxx;";
|
|
66
66
|
static void registerNatives() {
|
|
67
67
|
registerHybrid({makeNativeMethod("invoke_cxx", JFunc_void_BundleDownloadEvent_cxx::invoke_cxx)});
|
|
68
68
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// JHybridReactNativeBundleUpdateSpec.cpp
|
|
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
|
#include "JHybridReactNativeBundleUpdateSpec.hpp"
|
|
@@ -37,6 +37,7 @@ namespace margelo::nitro::reactnativebundleupdate { struct BundleDownloadEvent;
|
|
|
37
37
|
#include <NitroModules/JPromise.hpp>
|
|
38
38
|
#include "JBundleDownloadResult.hpp"
|
|
39
39
|
#include <string>
|
|
40
|
+
#include <NitroModules/JUnit.hpp>
|
|
40
41
|
#include "TestResult.hpp"
|
|
41
42
|
#include "JTestResult.hpp"
|
|
42
43
|
#include "FallbackBundleInfo.hpp"
|
|
@@ -66,30 +67,31 @@ namespace margelo::nitro::reactnativebundleupdate { struct BundleDownloadEvent;
|
|
|
66
67
|
|
|
67
68
|
namespace margelo::nitro::reactnativebundleupdate {
|
|
68
69
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
});
|
|
70
|
+
std::shared_ptr<JHybridReactNativeBundleUpdateSpec> JHybridReactNativeBundleUpdateSpec::JavaPart::getJHybridReactNativeBundleUpdateSpec() {
|
|
71
|
+
auto hybridObject = JHybridObject::JavaPart::getJHybridObject();
|
|
72
|
+
auto castHybridObject = std::dynamic_pointer_cast<JHybridReactNativeBundleUpdateSpec>(hybridObject);
|
|
73
|
+
if (castHybridObject == nullptr) [[unlikely]] {
|
|
74
|
+
throw std::runtime_error("Failed to downcast JHybridObject to JHybridReactNativeBundleUpdateSpec!");
|
|
75
|
+
}
|
|
76
|
+
return castHybridObject;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
return method(_javaPart);
|
|
79
|
+
jni::local_ref<JHybridReactNativeBundleUpdateSpec::CxxPart::jhybriddata> JHybridReactNativeBundleUpdateSpec::CxxPart::initHybrid(jni::alias_ref<jhybridobject> jThis) {
|
|
80
|
+
return makeCxxInstance(jThis);
|
|
82
81
|
}
|
|
83
82
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
std::shared_ptr<JHybridObject> JHybridReactNativeBundleUpdateSpec::CxxPart::createHybridObject(const jni::local_ref<JHybridObject::JavaPart>& javaPart) {
|
|
84
|
+
auto castJavaPart = jni::dynamic_ref_cast<JHybridReactNativeBundleUpdateSpec::JavaPart>(javaPart);
|
|
85
|
+
if (castJavaPart == nullptr) [[unlikely]] {
|
|
86
|
+
throw std::runtime_error("Failed to cast JHybridObject::JavaPart to JHybridReactNativeBundleUpdateSpec::JavaPart!");
|
|
87
|
+
}
|
|
88
|
+
return std::make_shared<JHybridReactNativeBundleUpdateSpec>(castJavaPart);
|
|
87
89
|
}
|
|
88
90
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
void JHybridReactNativeBundleUpdateSpec::CxxPart::registerNatives() {
|
|
92
|
+
registerHybrid({
|
|
93
|
+
makeNativeMethod("initHybrid", JHybridReactNativeBundleUpdateSpec::CxxPart::initHybrid),
|
|
94
|
+
});
|
|
93
95
|
}
|
|
94
96
|
|
|
95
97
|
// Properties
|
|
@@ -97,7 +99,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
97
99
|
|
|
98
100
|
// Methods
|
|
99
101
|
std::shared_ptr<Promise<BundleDownloadResult>> JHybridReactNativeBundleUpdateSpec::downloadBundle(const BundleDownloadParams& params) {
|
|
100
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>(jni::alias_ref<JBundleDownloadParams> /* params */)>("downloadBundle");
|
|
102
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>(jni::alias_ref<JBundleDownloadParams> /* params */)>("downloadBundle");
|
|
101
103
|
auto __result = method(_javaPart, JBundleDownloadParams::fromCpp(params));
|
|
102
104
|
return [&]() {
|
|
103
105
|
auto __promise = Promise<BundleDownloadResult>::create();
|
|
@@ -113,7 +115,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
113
115
|
}();
|
|
114
116
|
}
|
|
115
117
|
std::shared_ptr<Promise<void>> JHybridReactNativeBundleUpdateSpec::verifyBundle(const BundleVerifyParams& params) {
|
|
116
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>(jni::alias_ref<JBundleVerifyParams> /* params */)>("verifyBundle");
|
|
118
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>(jni::alias_ref<JBundleVerifyParams> /* params */)>("verifyBundle");
|
|
117
119
|
auto __result = method(_javaPart, JBundleVerifyParams::fromCpp(params));
|
|
118
120
|
return [&]() {
|
|
119
121
|
auto __promise = Promise<void>::create();
|
|
@@ -128,7 +130,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
128
130
|
}();
|
|
129
131
|
}
|
|
130
132
|
std::shared_ptr<Promise<void>> JHybridReactNativeBundleUpdateSpec::verifyBundleASC(const BundleVerifyASCParams& params) {
|
|
131
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>(jni::alias_ref<JBundleVerifyASCParams> /* params */)>("verifyBundleASC");
|
|
133
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>(jni::alias_ref<JBundleVerifyASCParams> /* params */)>("verifyBundleASC");
|
|
132
134
|
auto __result = method(_javaPart, JBundleVerifyASCParams::fromCpp(params));
|
|
133
135
|
return [&]() {
|
|
134
136
|
auto __promise = Promise<void>::create();
|
|
@@ -143,7 +145,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
143
145
|
}();
|
|
144
146
|
}
|
|
145
147
|
std::shared_ptr<Promise<void>> JHybridReactNativeBundleUpdateSpec::downloadBundleASC(const BundleDownloadASCParams& params) {
|
|
146
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>(jni::alias_ref<JBundleDownloadASCParams> /* params */)>("downloadBundleASC");
|
|
148
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>(jni::alias_ref<JBundleDownloadASCParams> /* params */)>("downloadBundleASC");
|
|
147
149
|
auto __result = method(_javaPart, JBundleDownloadASCParams::fromCpp(params));
|
|
148
150
|
return [&]() {
|
|
149
151
|
auto __promise = Promise<void>::create();
|
|
@@ -158,7 +160,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
158
160
|
}();
|
|
159
161
|
}
|
|
160
162
|
std::shared_ptr<Promise<void>> JHybridReactNativeBundleUpdateSpec::installBundle(const BundleInstallParams& params) {
|
|
161
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>(jni::alias_ref<JBundleInstallParams> /* params */)>("installBundle");
|
|
163
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>(jni::alias_ref<JBundleInstallParams> /* params */)>("installBundle");
|
|
162
164
|
auto __result = method(_javaPart, JBundleInstallParams::fromCpp(params));
|
|
163
165
|
return [&]() {
|
|
164
166
|
auto __promise = Promise<void>::create();
|
|
@@ -173,7 +175,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
173
175
|
}();
|
|
174
176
|
}
|
|
175
177
|
std::shared_ptr<Promise<void>> JHybridReactNativeBundleUpdateSpec::clearDownload() {
|
|
176
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("clearDownload");
|
|
178
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("clearDownload");
|
|
177
179
|
auto __result = method(_javaPart);
|
|
178
180
|
return [&]() {
|
|
179
181
|
auto __promise = Promise<void>::create();
|
|
@@ -188,7 +190,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
188
190
|
}();
|
|
189
191
|
}
|
|
190
192
|
std::shared_ptr<Promise<void>> JHybridReactNativeBundleUpdateSpec::clearBundle() {
|
|
191
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("clearBundle");
|
|
193
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("clearBundle");
|
|
192
194
|
auto __result = method(_javaPart);
|
|
193
195
|
return [&]() {
|
|
194
196
|
auto __promise = Promise<void>::create();
|
|
@@ -203,7 +205,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
203
205
|
}();
|
|
204
206
|
}
|
|
205
207
|
std::shared_ptr<Promise<TestResult>> JHybridReactNativeBundleUpdateSpec::clearAllJSBundleData() {
|
|
206
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("clearAllJSBundleData");
|
|
208
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("clearAllJSBundleData");
|
|
207
209
|
auto __result = method(_javaPart);
|
|
208
210
|
return [&]() {
|
|
209
211
|
auto __promise = Promise<TestResult>::create();
|
|
@@ -219,7 +221,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
219
221
|
}();
|
|
220
222
|
}
|
|
221
223
|
std::shared_ptr<Promise<void>> JHybridReactNativeBundleUpdateSpec::resetToBuiltInBundle() {
|
|
222
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("resetToBuiltInBundle");
|
|
224
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("resetToBuiltInBundle");
|
|
223
225
|
auto __result = method(_javaPart);
|
|
224
226
|
return [&]() {
|
|
225
227
|
auto __promise = Promise<void>::create();
|
|
@@ -234,7 +236,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
234
236
|
}();
|
|
235
237
|
}
|
|
236
238
|
std::shared_ptr<Promise<double>> JHybridReactNativeBundleUpdateSpec::pruneStaleAppVersionBundles() {
|
|
237
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("pruneStaleAppVersionBundles");
|
|
239
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("pruneStaleAppVersionBundles");
|
|
238
240
|
auto __result = method(_javaPart);
|
|
239
241
|
return [&]() {
|
|
240
242
|
auto __promise = Promise<double>::create();
|
|
@@ -250,7 +252,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
250
252
|
}();
|
|
251
253
|
}
|
|
252
254
|
std::shared_ptr<Promise<std::vector<FallbackBundleInfo>>> JHybridReactNativeBundleUpdateSpec::getFallbackUpdateBundleData() {
|
|
253
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("getFallbackUpdateBundleData");
|
|
255
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("getFallbackUpdateBundleData");
|
|
254
256
|
auto __result = method(_javaPart);
|
|
255
257
|
return [&]() {
|
|
256
258
|
auto __promise = Promise<std::vector<FallbackBundleInfo>>::create();
|
|
@@ -275,7 +277,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
275
277
|
}();
|
|
276
278
|
}
|
|
277
279
|
std::shared_ptr<Promise<void>> JHybridReactNativeBundleUpdateSpec::setCurrentUpdateBundleData(const BundleSwitchParams& params) {
|
|
278
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>(jni::alias_ref<JBundleSwitchParams> /* params */)>("setCurrentUpdateBundleData");
|
|
280
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>(jni::alias_ref<JBundleSwitchParams> /* params */)>("setCurrentUpdateBundleData");
|
|
279
281
|
auto __result = method(_javaPart, JBundleSwitchParams::fromCpp(params));
|
|
280
282
|
return [&]() {
|
|
281
283
|
auto __promise = Promise<void>::create();
|
|
@@ -290,12 +292,12 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
290
292
|
}();
|
|
291
293
|
}
|
|
292
294
|
std::string JHybridReactNativeBundleUpdateSpec::getWebEmbedPath() {
|
|
293
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<jni::JString>()>("getWebEmbedPath");
|
|
295
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JString>()>("getWebEmbedPath");
|
|
294
296
|
auto __result = method(_javaPart);
|
|
295
297
|
return __result->toStdString();
|
|
296
298
|
}
|
|
297
299
|
std::shared_ptr<Promise<std::string>> JHybridReactNativeBundleUpdateSpec::getWebEmbedPathAsync() {
|
|
298
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("getWebEmbedPathAsync");
|
|
300
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("getWebEmbedPathAsync");
|
|
299
301
|
auto __result = method(_javaPart);
|
|
300
302
|
return [&]() {
|
|
301
303
|
auto __promise = Promise<std::string>::create();
|
|
@@ -311,12 +313,12 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
311
313
|
}();
|
|
312
314
|
}
|
|
313
315
|
std::string JHybridReactNativeBundleUpdateSpec::getJsBundlePath() {
|
|
314
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<jni::JString>()>("getJsBundlePath");
|
|
316
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JString>()>("getJsBundlePath");
|
|
315
317
|
auto __result = method(_javaPart);
|
|
316
318
|
return __result->toStdString();
|
|
317
319
|
}
|
|
318
320
|
std::shared_ptr<Promise<std::string>> JHybridReactNativeBundleUpdateSpec::getJsBundlePathAsync() {
|
|
319
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("getJsBundlePathAsync");
|
|
321
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("getJsBundlePathAsync");
|
|
320
322
|
auto __result = method(_javaPart);
|
|
321
323
|
return [&]() {
|
|
322
324
|
auto __promise = Promise<std::string>::create();
|
|
@@ -332,12 +334,12 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
332
334
|
}();
|
|
333
335
|
}
|
|
334
336
|
std::string JHybridReactNativeBundleUpdateSpec::getBackgroundJsBundlePath() {
|
|
335
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<jni::JString>()>("getBackgroundJsBundlePath");
|
|
337
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JString>()>("getBackgroundJsBundlePath");
|
|
336
338
|
auto __result = method(_javaPart);
|
|
337
339
|
return __result->toStdString();
|
|
338
340
|
}
|
|
339
341
|
std::shared_ptr<Promise<std::string>> JHybridReactNativeBundleUpdateSpec::getBackgroundJsBundlePathAsync() {
|
|
340
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("getBackgroundJsBundlePathAsync");
|
|
342
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("getBackgroundJsBundlePathAsync");
|
|
341
343
|
auto __result = method(_javaPart);
|
|
342
344
|
return [&]() {
|
|
343
345
|
auto __promise = Promise<std::string>::create();
|
|
@@ -353,7 +355,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
353
355
|
}();
|
|
354
356
|
}
|
|
355
357
|
std::shared_ptr<Promise<std::string>> JHybridReactNativeBundleUpdateSpec::getNativeAppVersion() {
|
|
356
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("getNativeAppVersion");
|
|
358
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("getNativeAppVersion");
|
|
357
359
|
auto __result = method(_javaPart);
|
|
358
360
|
return [&]() {
|
|
359
361
|
auto __promise = Promise<std::string>::create();
|
|
@@ -369,7 +371,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
369
371
|
}();
|
|
370
372
|
}
|
|
371
373
|
std::shared_ptr<Promise<std::string>> JHybridReactNativeBundleUpdateSpec::getNativeBuildNumber() {
|
|
372
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("getNativeBuildNumber");
|
|
374
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("getNativeBuildNumber");
|
|
373
375
|
auto __result = method(_javaPart);
|
|
374
376
|
return [&]() {
|
|
375
377
|
auto __promise = Promise<std::string>::create();
|
|
@@ -385,7 +387,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
385
387
|
}();
|
|
386
388
|
}
|
|
387
389
|
std::shared_ptr<Promise<std::string>> JHybridReactNativeBundleUpdateSpec::getBuiltinBundleVersion() {
|
|
388
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("getBuiltinBundleVersion");
|
|
390
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("getBuiltinBundleVersion");
|
|
389
391
|
auto __result = method(_javaPart);
|
|
390
392
|
return [&]() {
|
|
391
393
|
auto __promise = Promise<std::string>::create();
|
|
@@ -401,7 +403,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
401
403
|
}();
|
|
402
404
|
}
|
|
403
405
|
std::shared_ptr<Promise<bool>> JHybridReactNativeBundleUpdateSpec::testVerification() {
|
|
404
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("testVerification");
|
|
406
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("testVerification");
|
|
405
407
|
auto __result = method(_javaPart);
|
|
406
408
|
return [&]() {
|
|
407
409
|
auto __promise = Promise<bool>::create();
|
|
@@ -417,7 +419,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
417
419
|
}();
|
|
418
420
|
}
|
|
419
421
|
std::shared_ptr<Promise<bool>> JHybridReactNativeBundleUpdateSpec::testSkipVerification() {
|
|
420
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("testSkipVerification");
|
|
422
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("testSkipVerification");
|
|
421
423
|
auto __result = method(_javaPart);
|
|
422
424
|
return [&]() {
|
|
423
425
|
auto __promise = Promise<bool>::create();
|
|
@@ -433,12 +435,12 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
433
435
|
}();
|
|
434
436
|
}
|
|
435
437
|
bool JHybridReactNativeBundleUpdateSpec::isSkipGpgVerificationAllowed() {
|
|
436
|
-
static const auto method = javaClassStatic()->getMethod<jboolean()>("isSkipGpgVerificationAllowed");
|
|
438
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jboolean()>("isSkipGpgVerificationAllowed");
|
|
437
439
|
auto __result = method(_javaPart);
|
|
438
440
|
return static_cast<bool>(__result);
|
|
439
441
|
}
|
|
440
442
|
std::shared_ptr<Promise<bool>> JHybridReactNativeBundleUpdateSpec::isBundleExists(const std::string& appVersion, const std::string& bundleVersion) {
|
|
441
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>(jni::alias_ref<jni::JString> /* appVersion */, jni::alias_ref<jni::JString> /* bundleVersion */)>("isBundleExists");
|
|
443
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>(jni::alias_ref<jni::JString> /* appVersion */, jni::alias_ref<jni::JString> /* bundleVersion */)>("isBundleExists");
|
|
442
444
|
auto __result = method(_javaPart, jni::make_jstring(appVersion), jni::make_jstring(bundleVersion));
|
|
443
445
|
return [&]() {
|
|
444
446
|
auto __promise = Promise<bool>::create();
|
|
@@ -454,7 +456,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
454
456
|
}();
|
|
455
457
|
}
|
|
456
458
|
std::shared_ptr<Promise<void>> JHybridReactNativeBundleUpdateSpec::verifyExtractedBundle(const std::string& appVersion, const std::string& bundleVersion) {
|
|
457
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>(jni::alias_ref<jni::JString> /* appVersion */, jni::alias_ref<jni::JString> /* bundleVersion */)>("verifyExtractedBundle");
|
|
459
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>(jni::alias_ref<jni::JString> /* appVersion */, jni::alias_ref<jni::JString> /* bundleVersion */)>("verifyExtractedBundle");
|
|
458
460
|
auto __result = method(_javaPart, jni::make_jstring(appVersion), jni::make_jstring(bundleVersion));
|
|
459
461
|
return [&]() {
|
|
460
462
|
auto __promise = Promise<void>::create();
|
|
@@ -469,7 +471,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
469
471
|
}();
|
|
470
472
|
}
|
|
471
473
|
std::shared_ptr<Promise<std::vector<LocalBundleInfo>>> JHybridReactNativeBundleUpdateSpec::listLocalBundles() {
|
|
472
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("listLocalBundles");
|
|
474
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("listLocalBundles");
|
|
473
475
|
auto __result = method(_javaPart);
|
|
474
476
|
return [&]() {
|
|
475
477
|
auto __promise = Promise<std::vector<LocalBundleInfo>>::create();
|
|
@@ -494,7 +496,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
494
496
|
}();
|
|
495
497
|
}
|
|
496
498
|
std::shared_ptr<Promise<std::vector<AscFileInfo>>> JHybridReactNativeBundleUpdateSpec::listAscFiles() {
|
|
497
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("listAscFiles");
|
|
499
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("listAscFiles");
|
|
498
500
|
auto __result = method(_javaPart);
|
|
499
501
|
return [&]() {
|
|
500
502
|
auto __promise = Promise<std::vector<AscFileInfo>>::create();
|
|
@@ -519,7 +521,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
519
521
|
}();
|
|
520
522
|
}
|
|
521
523
|
std::shared_ptr<Promise<std::string>> JHybridReactNativeBundleUpdateSpec::getSha256FromFilePath(const std::string& filePath) {
|
|
522
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>(jni::alias_ref<jni::JString> /* filePath */)>("getSha256FromFilePath");
|
|
524
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>(jni::alias_ref<jni::JString> /* filePath */)>("getSha256FromFilePath");
|
|
523
525
|
auto __result = method(_javaPart, jni::make_jstring(filePath));
|
|
524
526
|
return [&]() {
|
|
525
527
|
auto __promise = Promise<std::string>::create();
|
|
@@ -535,7 +537,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
535
537
|
}();
|
|
536
538
|
}
|
|
537
539
|
std::shared_ptr<Promise<TestResult>> JHybridReactNativeBundleUpdateSpec::testDeleteJsBundle(const std::string& appVersion, const std::string& bundleVersion) {
|
|
538
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>(jni::alias_ref<jni::JString> /* appVersion */, jni::alias_ref<jni::JString> /* bundleVersion */)>("testDeleteJsBundle");
|
|
540
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>(jni::alias_ref<jni::JString> /* appVersion */, jni::alias_ref<jni::JString> /* bundleVersion */)>("testDeleteJsBundle");
|
|
539
541
|
auto __result = method(_javaPart, jni::make_jstring(appVersion), jni::make_jstring(bundleVersion));
|
|
540
542
|
return [&]() {
|
|
541
543
|
auto __promise = Promise<TestResult>::create();
|
|
@@ -551,7 +553,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
551
553
|
}();
|
|
552
554
|
}
|
|
553
555
|
std::shared_ptr<Promise<TestResult>> JHybridReactNativeBundleUpdateSpec::testDeleteJsRuntimeDir(const std::string& appVersion, const std::string& bundleVersion) {
|
|
554
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>(jni::alias_ref<jni::JString> /* appVersion */, jni::alias_ref<jni::JString> /* bundleVersion */)>("testDeleteJsRuntimeDir");
|
|
556
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>(jni::alias_ref<jni::JString> /* appVersion */, jni::alias_ref<jni::JString> /* bundleVersion */)>("testDeleteJsRuntimeDir");
|
|
555
557
|
auto __result = method(_javaPart, jni::make_jstring(appVersion), jni::make_jstring(bundleVersion));
|
|
556
558
|
return [&]() {
|
|
557
559
|
auto __promise = Promise<TestResult>::create();
|
|
@@ -567,7 +569,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
567
569
|
}();
|
|
568
570
|
}
|
|
569
571
|
std::shared_ptr<Promise<TestResult>> JHybridReactNativeBundleUpdateSpec::testDeleteMetadataJson(const std::string& appVersion, const std::string& bundleVersion) {
|
|
570
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>(jni::alias_ref<jni::JString> /* appVersion */, jni::alias_ref<jni::JString> /* bundleVersion */)>("testDeleteMetadataJson");
|
|
572
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>(jni::alias_ref<jni::JString> /* appVersion */, jni::alias_ref<jni::JString> /* bundleVersion */)>("testDeleteMetadataJson");
|
|
571
573
|
auto __result = method(_javaPart, jni::make_jstring(appVersion), jni::make_jstring(bundleVersion));
|
|
572
574
|
return [&]() {
|
|
573
575
|
auto __promise = Promise<TestResult>::create();
|
|
@@ -583,7 +585,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
583
585
|
}();
|
|
584
586
|
}
|
|
585
587
|
std::shared_ptr<Promise<TestResult>> JHybridReactNativeBundleUpdateSpec::testWriteEmptyMetadataJson(const std::string& appVersion, const std::string& bundleVersion) {
|
|
586
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>(jni::alias_ref<jni::JString> /* appVersion */, jni::alias_ref<jni::JString> /* bundleVersion */)>("testWriteEmptyMetadataJson");
|
|
588
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>(jni::alias_ref<jni::JString> /* appVersion */, jni::alias_ref<jni::JString> /* bundleVersion */)>("testWriteEmptyMetadataJson");
|
|
587
589
|
auto __result = method(_javaPart, jni::make_jstring(appVersion), jni::make_jstring(bundleVersion));
|
|
588
590
|
return [&]() {
|
|
589
591
|
auto __promise = Promise<TestResult>::create();
|
|
@@ -599,12 +601,12 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
599
601
|
}();
|
|
600
602
|
}
|
|
601
603
|
double JHybridReactNativeBundleUpdateSpec::addDownloadListener(const std::function<void(const BundleDownloadEvent& /* event */)>& callback) {
|
|
602
|
-
static const auto method = javaClassStatic()->getMethod<double(jni::alias_ref<JFunc_void_BundleDownloadEvent::javaobject> /* callback */)>("addDownloadListener_cxx");
|
|
604
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double(jni::alias_ref<JFunc_void_BundleDownloadEvent::javaobject> /* callback */)>("addDownloadListener_cxx");
|
|
603
605
|
auto __result = method(_javaPart, JFunc_void_BundleDownloadEvent_cxx::fromCpp(callback));
|
|
604
606
|
return __result;
|
|
605
607
|
}
|
|
606
608
|
void JHybridReactNativeBundleUpdateSpec::removeDownloadListener(double id) {
|
|
607
|
-
static const auto method = javaClassStatic()->getMethod<void(double /* id */)>("removeDownloadListener");
|
|
609
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* id */)>("removeDownloadListener");
|
|
608
610
|
method(_javaPart, id);
|
|
609
611
|
}
|
|
610
612
|
|