@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,7 +2,7 @@
|
|
|
2
2
|
/// HybridReactNativeBundleUpdateSpec.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
|
|
@@ -18,33 +18,33 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
18
18
|
|
|
19
19
|
using namespace facebook;
|
|
20
20
|
|
|
21
|
-
class JHybridReactNativeBundleUpdateSpec: public
|
|
22
|
-
public virtual HybridReactNativeBundleUpdateSpec {
|
|
21
|
+
class JHybridReactNativeBundleUpdateSpec: public virtual HybridReactNativeBundleUpdateSpec, public virtual JHybridObject {
|
|
23
22
|
public:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
HybridBase
|
|
33
|
-
|
|
23
|
+
struct JavaPart: public jni::JavaClass<JavaPart, JHybridObject::JavaPart> {
|
|
24
|
+
static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/reactnativebundleupdate/HybridReactNativeBundleUpdateSpec;";
|
|
25
|
+
std::shared_ptr<JHybridReactNativeBundleUpdateSpec> getJHybridReactNativeBundleUpdateSpec();
|
|
26
|
+
};
|
|
27
|
+
struct CxxPart: public jni::HybridClass<CxxPart, JHybridObject::CxxPart> {
|
|
28
|
+
static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/reactnativebundleupdate/HybridReactNativeBundleUpdateSpec$CxxPart;";
|
|
29
|
+
static jni::local_ref<jhybriddata> initHybrid(jni::alias_ref<jhybridobject> jThis);
|
|
30
|
+
static void registerNatives();
|
|
31
|
+
using HybridBase::HybridBase;
|
|
32
|
+
protected:
|
|
33
|
+
std::shared_ptr<JHybridObject> createHybridObject(const jni::local_ref<JHybridObject::JavaPart>& javaPart) override;
|
|
34
|
+
};
|
|
34
35
|
|
|
35
36
|
public:
|
|
37
|
+
explicit JHybridReactNativeBundleUpdateSpec(const jni::local_ref<JHybridReactNativeBundleUpdateSpec::JavaPart>& javaPart):
|
|
38
|
+
HybridObject(HybridReactNativeBundleUpdateSpec::TAG),
|
|
39
|
+
JHybridObject(javaPart),
|
|
40
|
+
_javaPart(jni::make_global(javaPart)) {}
|
|
36
41
|
~JHybridReactNativeBundleUpdateSpec() override {
|
|
37
42
|
// Hermes GC can destroy JS objects on a non-JNI Thread.
|
|
38
43
|
jni::ThreadScope::WithClassLoader([&] { _javaPart.reset(); });
|
|
39
44
|
}
|
|
40
45
|
|
|
41
46
|
public:
|
|
42
|
-
|
|
43
|
-
void dispose() noexcept override;
|
|
44
|
-
std::string toString() override;
|
|
45
|
-
|
|
46
|
-
public:
|
|
47
|
-
inline const jni::global_ref<JHybridReactNativeBundleUpdateSpec::javaobject>& getJavaPart() const noexcept {
|
|
47
|
+
inline const jni::global_ref<JHybridReactNativeBundleUpdateSpec::JavaPart>& getJavaPart() const noexcept {
|
|
48
48
|
return _javaPart;
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -91,9 +91,7 @@ namespace margelo::nitro::reactnativebundleupdate {
|
|
|
91
91
|
void removeDownloadListener(double id) override;
|
|
92
92
|
|
|
93
93
|
private:
|
|
94
|
-
|
|
95
|
-
using HybridBase::HybridBase;
|
|
96
|
-
jni::global_ref<JHybridReactNativeBundleUpdateSpec::javaobject> _javaPart;
|
|
94
|
+
jni::global_ref<JHybridReactNativeBundleUpdateSpec::JavaPart> _javaPart;
|
|
97
95
|
};
|
|
98
96
|
|
|
99
97
|
} // namespace margelo::nitro::reactnativebundleupdate
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// JLocalBundleInfo.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 JLocalBundleInfo final: public jni::JavaClass<JLocalBundleInfo> {
|
|
23
23
|
public:
|
|
24
|
-
static auto
|
|
24
|
+
static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/reactnativebundleupdate/LocalBundleInfo;";
|
|
25
25
|
|
|
26
26
|
public:
|
|
27
27
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// JTestResult.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 JTestResult final: public jni::JavaClass<JTestResult> {
|
|
23
23
|
public:
|
|
24
|
-
static auto
|
|
24
|
+
static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/reactnativebundleupdate/TestResult;";
|
|
25
25
|
|
|
26
26
|
public:
|
|
27
27
|
/**
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/AscFileInfo.kt
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// AscFileInfo.kt
|
|
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
|
package com.margelo.nitro.reactnativebundleupdate
|
|
@@ -29,7 +29,7 @@ data class AscFileInfo(
|
|
|
29
29
|
) {
|
|
30
30
|
/* primary constructor */
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
companion object {
|
|
33
33
|
/**
|
|
34
34
|
* Constructor called from C++
|
|
35
35
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// BundleDownloadASCParams.kt
|
|
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
|
package com.margelo.nitro.reactnativebundleupdate
|
|
@@ -38,7 +38,7 @@ data class BundleDownloadASCParams(
|
|
|
38
38
|
) {
|
|
39
39
|
/* primary constructor */
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
companion object {
|
|
42
42
|
/**
|
|
43
43
|
* Constructor called from C++
|
|
44
44
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// BundleDownloadEvent.kt
|
|
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
|
package com.margelo.nitro.reactnativebundleupdate
|
|
@@ -29,7 +29,7 @@ data class BundleDownloadEvent(
|
|
|
29
29
|
) {
|
|
30
30
|
/* primary constructor */
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
companion object {
|
|
33
33
|
/**
|
|
34
34
|
* Constructor called from C++
|
|
35
35
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// BundleDownloadParams.kt
|
|
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
|
package com.margelo.nitro.reactnativebundleupdate
|
|
@@ -35,7 +35,7 @@ data class BundleDownloadParams(
|
|
|
35
35
|
) {
|
|
36
36
|
/* primary constructor */
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
companion object {
|
|
39
39
|
/**
|
|
40
40
|
* Constructor called from C++
|
|
41
41
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// BundleDownloadResult.kt
|
|
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
|
package com.margelo.nitro.reactnativebundleupdate
|
|
@@ -35,7 +35,7 @@ data class BundleDownloadResult(
|
|
|
35
35
|
) {
|
|
36
36
|
/* primary constructor */
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
companion object {
|
|
39
39
|
/**
|
|
40
40
|
* Constructor called from C++
|
|
41
41
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// BundleInstallParams.kt
|
|
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
|
package com.margelo.nitro.reactnativebundleupdate
|
|
@@ -32,7 +32,7 @@ data class BundleInstallParams(
|
|
|
32
32
|
) {
|
|
33
33
|
/* primary constructor */
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
companion object {
|
|
36
36
|
/**
|
|
37
37
|
* Constructor called from C++
|
|
38
38
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// BundleSwitchParams.kt
|
|
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
|
package com.margelo.nitro.reactnativebundleupdate
|
|
@@ -29,7 +29,7 @@ data class BundleSwitchParams(
|
|
|
29
29
|
) {
|
|
30
30
|
/* primary constructor */
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
companion object {
|
|
33
33
|
/**
|
|
34
34
|
* Constructor called from C++
|
|
35
35
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// BundleVerifyASCParams.kt
|
|
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
|
package com.margelo.nitro.reactnativebundleupdate
|
|
@@ -35,7 +35,7 @@ data class BundleVerifyASCParams(
|
|
|
35
35
|
) {
|
|
36
36
|
/* primary constructor */
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
companion object {
|
|
39
39
|
/**
|
|
40
40
|
* Constructor called from C++
|
|
41
41
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// BundleVerifyParams.kt
|
|
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
|
package com.margelo.nitro.reactnativebundleupdate
|
|
@@ -32,7 +32,7 @@ data class BundleVerifyParams(
|
|
|
32
32
|
) {
|
|
33
33
|
/* primary constructor */
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
companion object {
|
|
36
36
|
/**
|
|
37
37
|
* Constructor called from C++
|
|
38
38
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// FallbackBundleInfo.kt
|
|
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
|
package com.margelo.nitro.reactnativebundleupdate
|
|
@@ -29,7 +29,7 @@ data class FallbackBundleInfo(
|
|
|
29
29
|
) {
|
|
30
30
|
/* primary constructor */
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
companion object {
|
|
33
33
|
/**
|
|
34
34
|
* Constructor called from C++
|
|
35
35
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// Func_void_BundleDownloadEvent.kt
|
|
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
|
package com.margelo.nitro.reactnativebundleupdate
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridReactNativeBundleUpdateSpec.kt
|
|
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
|
package com.margelo.nitro.reactnativebundleupdate
|
|
@@ -25,23 +25,6 @@ import com.margelo.nitro.core.HybridObject
|
|
|
25
25
|
"LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName"
|
|
26
26
|
)
|
|
27
27
|
abstract class HybridReactNativeBundleUpdateSpec: HybridObject() {
|
|
28
|
-
@DoNotStrip
|
|
29
|
-
private var mHybridData: HybridData = initHybrid()
|
|
30
|
-
|
|
31
|
-
init {
|
|
32
|
-
super.updateNative(mHybridData)
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
override fun updateNative(hybridData: HybridData) {
|
|
36
|
-
mHybridData = hybridData
|
|
37
|
-
super.updateNative(hybridData)
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// Default implementation of `HybridObject.toString()`
|
|
41
|
-
override fun toString(): String {
|
|
42
|
-
return "[HybridObject ReactNativeBundleUpdate]"
|
|
43
|
-
}
|
|
44
|
-
|
|
45
28
|
// Properties
|
|
46
29
|
|
|
47
30
|
|
|
@@ -191,7 +174,21 @@ abstract class HybridReactNativeBundleUpdateSpec: HybridObject() {
|
|
|
191
174
|
@Keep
|
|
192
175
|
abstract fun removeDownloadListener(id: Double): Unit
|
|
193
176
|
|
|
194
|
-
|
|
177
|
+
// Default implementation of `HybridObject.toString()`
|
|
178
|
+
override fun toString(): String {
|
|
179
|
+
return "[HybridObject ReactNativeBundleUpdate]"
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
// C++ backing class
|
|
183
|
+
@DoNotStrip
|
|
184
|
+
@Keep
|
|
185
|
+
protected open class CxxPart(javaPart: HybridReactNativeBundleUpdateSpec): HybridObject.CxxPart(javaPart) {
|
|
186
|
+
// C++ JHybridReactNativeBundleUpdateSpec::CxxPart::initHybrid(...)
|
|
187
|
+
external override fun initHybrid(): HybridData
|
|
188
|
+
}
|
|
189
|
+
override fun createCxxPart(): CxxPart {
|
|
190
|
+
return CxxPart(this)
|
|
191
|
+
}
|
|
195
192
|
|
|
196
193
|
companion object {
|
|
197
194
|
protected const val TAG = "HybridReactNativeBundleUpdateSpec"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// LocalBundleInfo.kt
|
|
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
|
package com.margelo.nitro.reactnativebundleupdate
|
|
@@ -26,7 +26,7 @@ data class LocalBundleInfo(
|
|
|
26
26
|
) {
|
|
27
27
|
/* primary constructor */
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
companion object {
|
|
30
30
|
/**
|
|
31
31
|
* Constructor called from C++
|
|
32
32
|
*/
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativebundleupdate/TestResult.kt
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// TestResult.kt
|
|
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
|
package com.margelo.nitro.reactnativebundleupdate
|
|
@@ -26,7 +26,7 @@ data class TestResult(
|
|
|
26
26
|
) {
|
|
27
27
|
/* primary constructor */
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
companion object {
|
|
30
30
|
/**
|
|
31
31
|
* Constructor called from C++
|
|
32
32
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// reactnativebundleupdateOnLoad.kt
|
|
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
|
package com.margelo.nitro.reactnativebundleupdate
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# reactnativebundleupdate+autolinking.cmake
|
|
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
|
# This is a CMake file that adds all files generated by Nitrogen
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// reactnativebundleupdate+autolinking.gradle
|
|
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
|
/// This is a Gradle file that adds all files generated by Nitrogen
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// reactnativebundleupdateOnLoad.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
|
#ifndef BUILDING_REACTNATIVEBUNDLEUPDATE_WITH_GENERATED_CMAKE_PROJECT
|
|
@@ -22,25 +22,35 @@
|
|
|
22
22
|
namespace margelo::nitro::reactnativebundleupdate {
|
|
23
23
|
|
|
24
24
|
int initialize(JavaVM* vm) {
|
|
25
|
+
return facebook::jni::initialize(vm, []() {
|
|
26
|
+
::margelo::nitro::reactnativebundleupdate::registerAllNatives();
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
struct JHybridReactNativeBundleUpdateSpecImpl: public jni::JavaClass<JHybridReactNativeBundleUpdateSpecImpl, JHybridReactNativeBundleUpdateSpec::JavaPart> {
|
|
31
|
+
static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/reactnativebundleupdate/ReactNativeBundleUpdate;";
|
|
32
|
+
static std::shared_ptr<JHybridReactNativeBundleUpdateSpec> create() {
|
|
33
|
+
static const auto constructorFn = javaClassStatic()->getConstructor<JHybridReactNativeBundleUpdateSpecImpl::javaobject()>();
|
|
34
|
+
jni::local_ref<JHybridReactNativeBundleUpdateSpec::JavaPart> javaPart = javaClassStatic()->newObject(constructorFn);
|
|
35
|
+
return javaPart->getJHybridReactNativeBundleUpdateSpec();
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
void registerAllNatives() {
|
|
25
40
|
using namespace margelo::nitro;
|
|
26
41
|
using namespace margelo::nitro::reactnativebundleupdate;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
auto instance = object.create();
|
|
40
|
-
return instance->cthis()->shared();
|
|
41
|
-
}
|
|
42
|
-
);
|
|
43
|
-
});
|
|
42
|
+
|
|
43
|
+
// Register native JNI methods
|
|
44
|
+
margelo::nitro::reactnativebundleupdate::JHybridReactNativeBundleUpdateSpec::CxxPart::registerNatives();
|
|
45
|
+
margelo::nitro::reactnativebundleupdate::JFunc_void_BundleDownloadEvent_cxx::registerNatives();
|
|
46
|
+
|
|
47
|
+
// Register Nitro Hybrid Objects
|
|
48
|
+
HybridObjectRegistry::registerHybridObjectConstructor(
|
|
49
|
+
"ReactNativeBundleUpdate",
|
|
50
|
+
[]() -> std::shared_ptr<HybridObject> {
|
|
51
|
+
return JHybridReactNativeBundleUpdateSpecImpl::create();
|
|
52
|
+
}
|
|
53
|
+
);
|
|
44
54
|
}
|
|
45
55
|
|
|
46
56
|
} // namespace margelo::nitro::reactnativebundleupdate
|
|
@@ -2,24 +2,33 @@
|
|
|
2
2
|
/// reactnativebundleupdateOnLoad.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
|
#include <jni.h>
|
|
9
|
+
#include <functional>
|
|
9
10
|
#include <NitroModules/NitroDefines.hpp>
|
|
10
11
|
|
|
11
12
|
namespace margelo::nitro::reactnativebundleupdate {
|
|
12
13
|
|
|
14
|
+
[[deprecated("Use registerNatives() instead.")]]
|
|
15
|
+
int initialize(JavaVM* vm);
|
|
16
|
+
|
|
13
17
|
/**
|
|
14
|
-
*
|
|
15
|
-
* Call this in your `JNI_OnLoad` function (probably inside `cpp-adapter.cpp`)
|
|
18
|
+
* Register the native (C++) part of reactnativebundleupdate, and autolinks all Hybrid Objects.
|
|
19
|
+
* Call this in your `JNI_OnLoad` function (probably inside `cpp-adapter.cpp`),
|
|
20
|
+
* inside a `facebook::jni::initialize(vm, ...)` call.
|
|
16
21
|
* Example:
|
|
17
22
|
* ```cpp (cpp-adapter.cpp)
|
|
18
23
|
* JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void*) {
|
|
19
|
-
* return
|
|
24
|
+
* return facebook::jni::initialize(vm, []() {
|
|
25
|
+
* // register all reactnativebundleupdate HybridObjects
|
|
26
|
+
* margelo::nitro::reactnativebundleupdate::registerNatives();
|
|
27
|
+
* // any other custom registrations go here.
|
|
28
|
+
* });
|
|
20
29
|
* }
|
|
21
30
|
* ```
|
|
22
31
|
*/
|
|
23
|
-
|
|
32
|
+
void registerAllNatives();
|
|
24
33
|
|
|
25
34
|
} // namespace margelo::nitro::reactnativebundleupdate
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# ReactNativeBundleUpdate+autolinking.rb
|
|
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
|
# This is a Ruby script that adds all files generated by Nitrogen
|
|
@@ -52,7 +52,7 @@ def add_nitrogen_files(spec)
|
|
|
52
52
|
spec.pod_target_xcconfig = current_pod_target_xcconfig.merge({
|
|
53
53
|
# Use C++ 20
|
|
54
54
|
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
|
|
55
|
-
# Enables C++ <-> Swift interop (by default it's only
|
|
55
|
+
# Enables C++ <-> Swift interop (by default it's only ObjC)
|
|
56
56
|
"SWIFT_OBJC_INTEROP_MODE" => "objcxx",
|
|
57
57
|
# Enables stricter modular headers
|
|
58
58
|
"DEFINES_MODULE" => "YES",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// ReactNativeBundleUpdate-Swift-Cxx-Bridge.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 "ReactNativeBundleUpdate-Swift-Cxx-Bridge.hpp"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// ReactNativeBundleUpdate-Swift-Cxx-Bridge.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
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// ReactNativeBundleUpdate-Swift-Cxx-Umbrella.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
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// ReactNativeBundleUpdateAutolinking.mm
|
|
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
|
#import <Foundation/Foundation.h>
|
|
@@ -2,19 +2,16 @@
|
|
|
2
2
|
/// ReactNativeBundleUpdateAutolinking.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 NitroModules
|
|
9
|
+
|
|
10
|
+
// TODO: Use empty enums once Swift supports exporting them as namespaces
|
|
11
|
+
// See: https://github.com/swiftlang/swift/pull/83616
|
|
8
12
|
public final class ReactNativeBundleUpdateAutolinking {
|
|
9
13
|
public typealias bridge = margelo.nitro.reactnativebundleupdate.bridge.swift
|
|
10
14
|
|
|
11
|
-
/**
|
|
12
|
-
* Creates an instance of a Swift class that implements `HybridReactNativeBundleUpdateSpec`,
|
|
13
|
-
* and wraps it in a Swift class that can directly interop with C++ (`HybridReactNativeBundleUpdateSpec_cxx`)
|
|
14
|
-
*
|
|
15
|
-
* This is generated by Nitrogen and will initialize the class specified
|
|
16
|
-
* in the `"autolinking"` property of `nitro.json` (in this case, `ReactNativeBundleUpdate`).
|
|
17
|
-
*/
|
|
18
15
|
public static func createReactNativeBundleUpdate() -> bridge.std__shared_ptr_HybridReactNativeBundleUpdateSpec_ {
|
|
19
16
|
let hybridObject = ReactNativeBundleUpdate()
|
|
20
17
|
return { () -> bridge.std__shared_ptr_HybridReactNativeBundleUpdateSpec_ in
|
|
@@ -22,4 +19,8 @@ public final class ReactNativeBundleUpdateAutolinking {
|
|
|
22
19
|
return __cxxWrapped.getCxxPart()
|
|
23
20
|
}()
|
|
24
21
|
}
|
|
22
|
+
|
|
23
|
+
public static func isReactNativeBundleUpdateRecyclable() -> Bool {
|
|
24
|
+
return ReactNativeBundleUpdate.self is any RecyclableView.Type
|
|
25
|
+
}
|
|
25
26
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridReactNativeBundleUpdateSpecSwift.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 "HybridReactNativeBundleUpdateSpecSwift.hpp"
|