@onekeyfe/react-native-splash-screen 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++/JHybridReactNativeSplashScreenSpec.cpp +22 -21
- package/nitrogen/generated/android/c++/JHybridReactNativeSplashScreenSpec.hpp +20 -22
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativesplashscreen/HybridReactNativeSplashScreenSpec.kt +16 -19
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativesplashscreen/reactnativesplashscreenOnLoad.kt +1 -1
- package/nitrogen/generated/android/reactnativesplashscreen+autolinking.cmake +1 -1
- package/nitrogen/generated/android/reactnativesplashscreen+autolinking.gradle +1 -1
- package/nitrogen/generated/android/reactnativesplashscreenOnLoad.cpp +27 -17
- package/nitrogen/generated/android/reactnativesplashscreenOnLoad.hpp +14 -5
- package/nitrogen/generated/ios/ReactNativeSplashScreen+autolinking.rb +2 -2
- package/nitrogen/generated/ios/ReactNativeSplashScreen-Swift-Cxx-Bridge.cpp +1 -1
- package/nitrogen/generated/ios/ReactNativeSplashScreen-Swift-Cxx-Bridge.hpp +1 -1
- package/nitrogen/generated/ios/ReactNativeSplashScreen-Swift-Cxx-Umbrella.hpp +1 -1
- package/nitrogen/generated/ios/ReactNativeSplashScreenAutolinking.mm +1 -1
- package/nitrogen/generated/ios/ReactNativeSplashScreenAutolinking.swift +9 -8
- package/nitrogen/generated/ios/c++/HybridReactNativeSplashScreenSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridReactNativeSplashScreenSpecSwift.hpp +7 -1
- package/nitrogen/generated/ios/swift/Func_void_bool.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +1 -2
- package/nitrogen/generated/ios/swift/HybridReactNativeSplashScreenSpec.swift +3 -4
- package/nitrogen/generated/ios/swift/HybridReactNativeSplashScreenSpec_cxx.swift +9 -2
- package/nitrogen/generated/shared/c++/HybridReactNativeSplashScreenSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridReactNativeSplashScreenSpec.hpp +1 -1
- package/package.json +5 -6
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// JHybridReactNativeSplashScreenSpec.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 "JHybridReactNativeSplashScreenSpec.hpp"
|
|
@@ -14,30 +14,31 @@
|
|
|
14
14
|
|
|
15
15
|
namespace margelo::nitro::reactnativesplashscreen {
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
});
|
|
17
|
+
std::shared_ptr<JHybridReactNativeSplashScreenSpec> JHybridReactNativeSplashScreenSpec::JavaPart::getJHybridReactNativeSplashScreenSpec() {
|
|
18
|
+
auto hybridObject = JHybridObject::JavaPart::getJHybridObject();
|
|
19
|
+
auto castHybridObject = std::dynamic_pointer_cast<JHybridReactNativeSplashScreenSpec>(hybridObject);
|
|
20
|
+
if (castHybridObject == nullptr) [[unlikely]] {
|
|
21
|
+
throw std::runtime_error("Failed to downcast JHybridObject to JHybridReactNativeSplashScreenSpec!");
|
|
22
|
+
}
|
|
23
|
+
return castHybridObject;
|
|
25
24
|
}
|
|
26
25
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
return method(_javaPart);
|
|
26
|
+
jni::local_ref<JHybridReactNativeSplashScreenSpec::CxxPart::jhybriddata> JHybridReactNativeSplashScreenSpec::CxxPart::initHybrid(jni::alias_ref<jhybridobject> jThis) {
|
|
27
|
+
return makeCxxInstance(jThis);
|
|
30
28
|
}
|
|
31
29
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
std::shared_ptr<JHybridObject> JHybridReactNativeSplashScreenSpec::CxxPart::createHybridObject(const jni::local_ref<JHybridObject::JavaPart>& javaPart) {
|
|
31
|
+
auto castJavaPart = jni::dynamic_ref_cast<JHybridReactNativeSplashScreenSpec::JavaPart>(javaPart);
|
|
32
|
+
if (castJavaPart == nullptr) [[unlikely]] {
|
|
33
|
+
throw std::runtime_error("Failed to cast JHybridObject::JavaPart to JHybridReactNativeSplashScreenSpec::JavaPart!");
|
|
34
|
+
}
|
|
35
|
+
return std::make_shared<JHybridReactNativeSplashScreenSpec>(castJavaPart);
|
|
35
36
|
}
|
|
36
37
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
void JHybridReactNativeSplashScreenSpec::CxxPart::registerNatives() {
|
|
39
|
+
registerHybrid({
|
|
40
|
+
makeNativeMethod("initHybrid", JHybridReactNativeSplashScreenSpec::CxxPart::initHybrid),
|
|
41
|
+
});
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
// Properties
|
|
@@ -45,7 +46,7 @@ namespace margelo::nitro::reactnativesplashscreen {
|
|
|
45
46
|
|
|
46
47
|
// Methods
|
|
47
48
|
std::shared_ptr<Promise<bool>> JHybridReactNativeSplashScreenSpec::preventAutoHideAsync() {
|
|
48
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("preventAutoHideAsync");
|
|
49
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("preventAutoHideAsync");
|
|
49
50
|
auto __result = method(_javaPart);
|
|
50
51
|
return [&]() {
|
|
51
52
|
auto __promise = Promise<bool>::create();
|
|
@@ -61,7 +62,7 @@ namespace margelo::nitro::reactnativesplashscreen {
|
|
|
61
62
|
}();
|
|
62
63
|
}
|
|
63
64
|
std::shared_ptr<Promise<bool>> JHybridReactNativeSplashScreenSpec::hideAsync() {
|
|
64
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("hideAsync");
|
|
65
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>()>("hideAsync");
|
|
65
66
|
auto __result = method(_javaPart);
|
|
66
67
|
return [&]() {
|
|
67
68
|
auto __promise = Promise<bool>::create();
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridReactNativeSplashScreenSpec.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::reactnativesplashscreen {
|
|
|
18
18
|
|
|
19
19
|
using namespace facebook;
|
|
20
20
|
|
|
21
|
-
class JHybridReactNativeSplashScreenSpec: public
|
|
22
|
-
public virtual HybridReactNativeSplashScreenSpec {
|
|
21
|
+
class JHybridReactNativeSplashScreenSpec: public virtual HybridReactNativeSplashScreenSpec, 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/reactnativesplashscreen/HybridReactNativeSplashScreenSpec;";
|
|
25
|
+
std::shared_ptr<JHybridReactNativeSplashScreenSpec> getJHybridReactNativeSplashScreenSpec();
|
|
26
|
+
};
|
|
27
|
+
struct CxxPart: public jni::HybridClass<CxxPart, JHybridObject::CxxPart> {
|
|
28
|
+
static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/reactnativesplashscreen/HybridReactNativeSplashScreenSpec$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 JHybridReactNativeSplashScreenSpec(const jni::local_ref<JHybridReactNativeSplashScreenSpec::JavaPart>& javaPart):
|
|
38
|
+
HybridObject(HybridReactNativeSplashScreenSpec::TAG),
|
|
39
|
+
JHybridObject(javaPart),
|
|
40
|
+
_javaPart(jni::make_global(javaPart)) {}
|
|
36
41
|
~JHybridReactNativeSplashScreenSpec() 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<JHybridReactNativeSplashScreenSpec::javaobject>& getJavaPart() const noexcept {
|
|
47
|
+
inline const jni::global_ref<JHybridReactNativeSplashScreenSpec::JavaPart>& getJavaPart() const noexcept {
|
|
48
48
|
return _javaPart;
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -58,9 +58,7 @@ namespace margelo::nitro::reactnativesplashscreen {
|
|
|
58
58
|
std::shared_ptr<Promise<bool>> hideAsync() override;
|
|
59
59
|
|
|
60
60
|
private:
|
|
61
|
-
|
|
62
|
-
using HybridBase::HybridBase;
|
|
63
|
-
jni::global_ref<JHybridReactNativeSplashScreenSpec::javaobject> _javaPart;
|
|
61
|
+
jni::global_ref<JHybridReactNativeSplashScreenSpec::JavaPart> _javaPart;
|
|
64
62
|
};
|
|
65
63
|
|
|
66
64
|
} // namespace margelo::nitro::reactnativesplashscreen
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridReactNativeSplashScreenSpec.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.reactnativesplashscreen
|
|
@@ -25,23 +25,6 @@ import com.margelo.nitro.core.HybridObject
|
|
|
25
25
|
"LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName"
|
|
26
26
|
)
|
|
27
27
|
abstract class HybridReactNativeSplashScreenSpec: 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 ReactNativeSplashScreen]"
|
|
43
|
-
}
|
|
44
|
-
|
|
45
28
|
// Properties
|
|
46
29
|
|
|
47
30
|
|
|
@@ -54,7 +37,21 @@ abstract class HybridReactNativeSplashScreenSpec: HybridObject() {
|
|
|
54
37
|
@Keep
|
|
55
38
|
abstract fun hideAsync(): Promise<Boolean>
|
|
56
39
|
|
|
57
|
-
|
|
40
|
+
// Default implementation of `HybridObject.toString()`
|
|
41
|
+
override fun toString(): String {
|
|
42
|
+
return "[HybridObject ReactNativeSplashScreen]"
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// C++ backing class
|
|
46
|
+
@DoNotStrip
|
|
47
|
+
@Keep
|
|
48
|
+
protected open class CxxPart(javaPart: HybridReactNativeSplashScreenSpec): HybridObject.CxxPart(javaPart) {
|
|
49
|
+
// C++ JHybridReactNativeSplashScreenSpec::CxxPart::initHybrid(...)
|
|
50
|
+
external override fun initHybrid(): HybridData
|
|
51
|
+
}
|
|
52
|
+
override fun createCxxPart(): CxxPart {
|
|
53
|
+
return CxxPart(this)
|
|
54
|
+
}
|
|
58
55
|
|
|
59
56
|
companion object {
|
|
60
57
|
protected const val TAG = "HybridReactNativeSplashScreenSpec"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// reactnativesplashscreenOnLoad.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.reactnativesplashscreen
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# reactnativesplashscreen+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
|
/// reactnativesplashscreen+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
|
/// reactnativesplashscreenOnLoad.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_REACTNATIVESPLASHSCREEN_WITH_GENERATED_CMAKE_PROJECT
|
|
@@ -21,24 +21,34 @@
|
|
|
21
21
|
namespace margelo::nitro::reactnativesplashscreen {
|
|
22
22
|
|
|
23
23
|
int initialize(JavaVM* vm) {
|
|
24
|
+
return facebook::jni::initialize(vm, []() {
|
|
25
|
+
::margelo::nitro::reactnativesplashscreen::registerAllNatives();
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
struct JHybridReactNativeSplashScreenSpecImpl: public jni::JavaClass<JHybridReactNativeSplashScreenSpecImpl, JHybridReactNativeSplashScreenSpec::JavaPart> {
|
|
30
|
+
static constexpr auto kJavaDescriptor = "Lcom/margelo/nitro/reactnativesplashscreen/ReactNativeSplashScreen;";
|
|
31
|
+
static std::shared_ptr<JHybridReactNativeSplashScreenSpec> create() {
|
|
32
|
+
static const auto constructorFn = javaClassStatic()->getConstructor<JHybridReactNativeSplashScreenSpecImpl::javaobject()>();
|
|
33
|
+
jni::local_ref<JHybridReactNativeSplashScreenSpec::JavaPart> javaPart = javaClassStatic()->newObject(constructorFn);
|
|
34
|
+
return javaPart->getJHybridReactNativeSplashScreenSpec();
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
void registerAllNatives() {
|
|
24
39
|
using namespace margelo::nitro;
|
|
25
40
|
using namespace margelo::nitro::reactnativesplashscreen;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
auto instance = object.create();
|
|
38
|
-
return instance->cthis()->shared();
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
});
|
|
41
|
+
|
|
42
|
+
// Register native JNI methods
|
|
43
|
+
margelo::nitro::reactnativesplashscreen::JHybridReactNativeSplashScreenSpec::CxxPart::registerNatives();
|
|
44
|
+
|
|
45
|
+
// Register Nitro Hybrid Objects
|
|
46
|
+
HybridObjectRegistry::registerHybridObjectConstructor(
|
|
47
|
+
"ReactNativeSplashScreen",
|
|
48
|
+
[]() -> std::shared_ptr<HybridObject> {
|
|
49
|
+
return JHybridReactNativeSplashScreenSpecImpl::create();
|
|
50
|
+
}
|
|
51
|
+
);
|
|
42
52
|
}
|
|
43
53
|
|
|
44
54
|
} // namespace margelo::nitro::reactnativesplashscreen
|
|
@@ -2,24 +2,33 @@
|
|
|
2
2
|
/// reactnativesplashscreenOnLoad.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::reactnativesplashscreen {
|
|
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 reactnativesplashscreen, 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 reactnativesplashscreen HybridObjects
|
|
26
|
+
* margelo::nitro::reactnativesplashscreen::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::reactnativesplashscreen
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# ReactNativeSplashScreen+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
|
/// ReactNativeSplashScreen-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 "ReactNativeSplashScreen-Swift-Cxx-Bridge.hpp"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// ReactNativeSplashScreen-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
|
/// ReactNativeSplashScreen-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
|
/// ReactNativeSplashScreenAutolinking.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
|
/// ReactNativeSplashScreenAutolinking.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 ReactNativeSplashScreenAutolinking {
|
|
9
13
|
public typealias bridge = margelo.nitro.reactnativesplashscreen.bridge.swift
|
|
10
14
|
|
|
11
|
-
/**
|
|
12
|
-
* Creates an instance of a Swift class that implements `HybridReactNativeSplashScreenSpec`,
|
|
13
|
-
* and wraps it in a Swift class that can directly interop with C++ (`HybridReactNativeSplashScreenSpec_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, `ReactNativeSplashScreen`).
|
|
17
|
-
*/
|
|
18
15
|
public static func createReactNativeSplashScreen() -> bridge.std__shared_ptr_HybridReactNativeSplashScreenSpec_ {
|
|
19
16
|
let hybridObject = ReactNativeSplashScreen()
|
|
20
17
|
return { () -> bridge.std__shared_ptr_HybridReactNativeSplashScreenSpec_ in
|
|
@@ -22,4 +19,8 @@ public final class ReactNativeSplashScreenAutolinking {
|
|
|
22
19
|
return __cxxWrapped.getCxxPart()
|
|
23
20
|
}()
|
|
24
21
|
}
|
|
22
|
+
|
|
23
|
+
public static func isReactNativeSplashScreenRecyclable() -> Bool {
|
|
24
|
+
return ReactNativeSplashScreen.self is any RecyclableView.Type
|
|
25
|
+
}
|
|
25
26
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridReactNativeSplashScreenSpecSwift.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 "HybridReactNativeSplashScreenSpecSwift.hpp"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridReactNativeSplashScreenSpecSwift.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
|
|
@@ -47,6 +47,12 @@ namespace margelo::nitro::reactnativesplashscreen {
|
|
|
47
47
|
inline size_t getExternalMemorySize() noexcept override {
|
|
48
48
|
return _swiftPart.getMemorySize();
|
|
49
49
|
}
|
|
50
|
+
bool equals(const std::shared_ptr<HybridObject>& other) override {
|
|
51
|
+
if (auto otherCast = std::dynamic_pointer_cast<HybridReactNativeSplashScreenSpecSwift>(other)) {
|
|
52
|
+
return _swiftPart.equals(otherCast->_swiftPart);
|
|
53
|
+
}
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
50
56
|
void dispose() noexcept override {
|
|
51
57
|
_swiftPart.dispose();
|
|
52
58
|
}
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
/// Func_void_bool.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
import Foundation
|
|
9
8
|
import NitroModules
|
|
10
9
|
|
|
11
10
|
/**
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
/// Func_void_std__exception_ptr.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
import Foundation
|
|
9
8
|
import NitroModules
|
|
10
9
|
|
|
11
10
|
/**
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
/// HybridReactNativeSplashScreenSpec.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
import Foundation
|
|
9
8
|
import NitroModules
|
|
10
9
|
|
|
11
10
|
/// See ``HybridReactNativeSplashScreenSpec``
|
|
@@ -31,14 +30,14 @@ open class HybridReactNativeSplashScreenSpec_base {
|
|
|
31
30
|
public init() { }
|
|
32
31
|
public func getCxxWrapper() -> HybridReactNativeSplashScreenSpec_cxx {
|
|
33
32
|
#if DEBUG
|
|
34
|
-
guard self is HybridReactNativeSplashScreenSpec else {
|
|
33
|
+
guard self is any HybridReactNativeSplashScreenSpec else {
|
|
35
34
|
fatalError("`self` is not a `HybridReactNativeSplashScreenSpec`! Did you accidentally inherit from `HybridReactNativeSplashScreenSpec_base` instead of `HybridReactNativeSplashScreenSpec`?")
|
|
36
35
|
}
|
|
37
36
|
#endif
|
|
38
37
|
if let cxxWrapper = self.cxxWrapper {
|
|
39
38
|
return cxxWrapper
|
|
40
39
|
} else {
|
|
41
|
-
let cxxWrapper = HybridReactNativeSplashScreenSpec_cxx(self as! HybridReactNativeSplashScreenSpec)
|
|
40
|
+
let cxxWrapper = HybridReactNativeSplashScreenSpec_cxx(self as! any HybridReactNativeSplashScreenSpec)
|
|
42
41
|
self.cxxWrapper = cxxWrapper
|
|
43
42
|
return cxxWrapper
|
|
44
43
|
}
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
/// HybridReactNativeSplashScreenSpec_cxx.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
import Foundation
|
|
9
8
|
import NitroModules
|
|
10
9
|
|
|
11
10
|
/**
|
|
@@ -96,6 +95,14 @@ open class HybridReactNativeSplashScreenSpec_cxx {
|
|
|
96
95
|
return MemoryHelper.getSizeOf(self.__implementation) + self.__implementation.memorySize
|
|
97
96
|
}
|
|
98
97
|
|
|
98
|
+
/**
|
|
99
|
+
* Compares this object with the given [other] object for reference equality.
|
|
100
|
+
*/
|
|
101
|
+
@inline(__always)
|
|
102
|
+
public func equals(other: HybridReactNativeSplashScreenSpec_cxx) -> Bool {
|
|
103
|
+
return self.__implementation === other.__implementation
|
|
104
|
+
}
|
|
105
|
+
|
|
99
106
|
/**
|
|
100
107
|
* Call dispose() on the Swift class.
|
|
101
108
|
* This _may_ be called manually from JS.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridReactNativeSplashScreenSpec.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 "HybridReactNativeSplashScreenSpec.hpp"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/react-native-splash-screen",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.82",
|
|
4
4
|
"description": "react-native-splash-screen",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|
|
@@ -78,12 +78,12 @@
|
|
|
78
78
|
"eslint-plugin-prettier": "^5.5.4",
|
|
79
79
|
"jest": "^29.7.0",
|
|
80
80
|
"lefthook": "^2.0.3",
|
|
81
|
-
"nitrogen": "0.
|
|
81
|
+
"nitrogen": "0.35.2",
|
|
82
82
|
"prettier": "^2.8.8",
|
|
83
83
|
"react": "19.2.0",
|
|
84
84
|
"react-native": "patch:react-native@npm%3A0.83.0#~/.yarn/patches/react-native-npm-0.83.0-577d0f2d83.patch",
|
|
85
85
|
"react-native-builder-bob": "^0.40.13",
|
|
86
|
-
"react-native-nitro-modules": "0.
|
|
86
|
+
"react-native-nitro-modules": "0.35.2",
|
|
87
87
|
"release-it": "^19.0.4",
|
|
88
88
|
"turbo": "^2.5.6",
|
|
89
89
|
"typescript": "^5.9.2"
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"peerDependencies": {
|
|
92
92
|
"react": "*",
|
|
93
93
|
"react-native": "*",
|
|
94
|
-
"react-native-nitro-modules": "0.
|
|
94
|
+
"react-native-nitro-modules": "0.35.2"
|
|
95
95
|
},
|
|
96
96
|
"react-native-builder-bob": {
|
|
97
97
|
"source": "src",
|
|
@@ -166,6 +166,5 @@
|
|
|
166
166
|
"release-it"
|
|
167
167
|
],
|
|
168
168
|
"version": "0.56.0"
|
|
169
|
-
}
|
|
170
|
-
"stableVersion": "3.0.80"
|
|
169
|
+
}
|
|
171
170
|
}
|