nitrowind-native 0.0.0-stage → 0.1.0
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/CHANGELOG.md +16 -0
- package/LICENSE +21 -0
- package/Package.swift +104 -0
- package/README.md +35 -2
- package/android/src/main/java/com/margelo/nitro/nitrowind/HybridReducedMotion.kt +79 -0
- package/android/src/main/java/com/margelo/nitro/nitrowind/HybridThemeCover.kt +38 -0
- package/android/src/main/java/com/margelo/nitro/nitrowind/NitroWindCoverLog.kt +36 -0
- package/android/src/main/java/com/margelo/nitro/nitrowind/ThemeCoverActivityInitializer.kt +11 -0
- package/android/src/main/java/com/margelo/nitro/nitrowind/ThemeCoverController.kt +619 -0
- package/ios/HybridReducedMotion.swift +50 -0
- package/ios/HybridThemeCover.swift +46 -0
- package/ios/NitroWindCoverLog.swift +40 -0
- package/ios/ThemeCoverWindow.swift +324 -0
- package/nitro.json +13 -0
- package/nitrogen/generated/.gitattributes +1 -0
- package/nitrogen/generated/android/NitroWindNative+autolinking.cmake +34 -0
- package/nitrogen/generated/android/NitroWindNative+autolinking.gradle +10 -0
- package/nitrogen/generated/android/NitroWindNativeOnLoad.cpp +25 -0
- package/nitrogen/generated/android/c++/JCallback_void.cpp +54 -0
- package/nitrogen/generated/android/c++/JCallback_void_bool.cpp +56 -0
- package/nitrogen/generated/android/c++/JCoverRequest.cpp +42 -0
- package/nitrogen/generated/android/c++/JHybridReducedMotionSpec.cpp +84 -0
- package/nitrogen/generated/android/c++/JHybridThemeCoverSpec.cpp +114 -0
- package/nitrogen/generated/android/c++/JListenerSubscription.cpp +34 -0
- package/nitrogen/generated/android/c++/JThemeTransitionDirection.cpp +52 -0
- package/nitrogen/generated/android/c++/JThemeTransitionStyle.cpp +58 -0
- package/nitrogen/generated/android/c++/include/NitroWindNative/private/JCallback_void.hpp +53 -0
- package/nitrogen/generated/android/c++/include/NitroWindNative/private/JCallback_void_bool.hpp +55 -0
- package/nitrogen/generated/android/c++/include/NitroWindNative/private/JCoverRequest.hpp +73 -0
- package/nitrogen/generated/android/c++/include/NitroWindNative/private/JHybridReducedMotionSpec.hpp +90 -0
- package/nitrogen/generated/android/c++/include/NitroWindNative/private/JHybridReducedMotionSpecJavaPart.hpp +26 -0
- package/nitrogen/generated/android/c++/include/NitroWindNative/private/JHybridThemeCoverSpec.hpp +96 -0
- package/nitrogen/generated/android/c++/include/NitroWindNative/private/JHybridThemeCoverSpecJavaPart.hpp +26 -0
- package/nitrogen/generated/android/c++/include/NitroWindNative/private/JListenerSubscription.hpp +49 -0
- package/nitrogen/generated/android/c++/include/NitroWindNative/private/JThemeTransitionDirection.hpp +72 -0
- package/nitrogen/generated/android/c++/include/NitroWindNative/private/JThemeTransitionStyle.hpp +82 -0
- package/nitrogen/generated/android/include/NitroWindNative/private/NitroWindNativeOnLoad.hpp +13 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrowind/Callback_void.kt +69 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrowind/Callback_void_bool.kt +69 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrowind/CoverRequest.kt +67 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrowind/HybridReducedMotionSpec.kt +89 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrowind/HybridThemeCoverSpec.kt +107 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrowind/ListenerSubscription.kt +46 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrowind/NitroWindNativeOnLoad.kt +22 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrowind/ThemeTransitionDirection.kt +46 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrowind/ThemeTransitionStyle.kt +52 -0
- package/nitrogen/generated/apple/NitroWindNative-Swift-Cxx-Bridge.cpp +68 -0
- package/nitrogen/generated/apple/NitroWindNativeAppleCxx/NitroWindNativeAppleCxx.cpp +9 -0
- package/nitrogen/generated/apple/NitroWindNativeAppleCxx/include/NitroWindNativeAppleCxx/NitroWindNativeAppleCxx.h +64 -0
- package/nitrogen/generated/apple/NitroWindNativeAutolinking.cpp +22 -0
- package/nitrogen/generated/apple/NitroWindNativeAutolinking.mm +24 -0
- package/nitrogen/generated/apple/c++/CoverRequest-Swift.cpp +36 -0
- package/nitrogen/generated/apple/c++/HybridReducedMotionSpecSwift.cpp +62 -0
- package/nitrogen/generated/apple/c++/HybridReducedMotionSpec_cxx-Swift.cpp +28 -0
- package/nitrogen/generated/apple/c++/HybridThemeCoverSpecSwift.cpp +104 -0
- package/nitrogen/generated/apple/c++/HybridThemeCoverSpec_cxx-Swift.cpp +28 -0
- package/nitrogen/generated/apple/c++/ListenerSubscription-Swift.cpp +37 -0
- package/nitrogen/generated/apple/c++/ThemeTransitionDirection-Swift.cpp +46 -0
- package/nitrogen/generated/apple/c++/ThemeTransitionStyle-Swift.cpp +52 -0
- package/nitrogen/generated/apple/c++/include/NitroWindNative/NitroWindNativeAutolinking.hpp +13 -0
- package/nitrogen/generated/apple/c++/include/NitroWindNative/private/CoverRequest-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroWindNative/private/HybridReducedMotionSpecSwift.hpp +74 -0
- package/nitrogen/generated/apple/c++/include/NitroWindNative/private/HybridReducedMotionSpec_cxx-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroWindNative/private/HybridThemeCoverSpecSwift.hpp +79 -0
- package/nitrogen/generated/apple/c++/include/NitroWindNative/private/HybridThemeCoverSpec_cxx-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroWindNative/private/ListenerSubscription-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroWindNative/private/NitroWindNative-Swift-Cxx-Umbrella.hpp +41 -0
- package/nitrogen/generated/apple/c++/include/NitroWindNative/private/ThemeTransitionDirection-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/NitroWindNative/private/ThemeTransitionStyle-Swift.hpp +23 -0
- package/nitrogen/generated/apple/c++/include/module.modulemap +12 -0
- package/nitrogen/generated/apple/swift/Callback_void.swift +60 -0
- package/nitrogen/generated/apple/swift/Callback_void_bool.swift +60 -0
- package/nitrogen/generated/apple/swift/CoverRequest.swift +56 -0
- package/nitrogen/generated/apple/swift/HybridReducedMotionSpec.swift +66 -0
- package/nitrogen/generated/apple/swift/HybridReducedMotionSpec_cxx.swift +164 -0
- package/nitrogen/generated/apple/swift/HybridThemeCoverSpec.swift +70 -0
- package/nitrogen/generated/apple/swift/HybridThemeCoverSpec_cxx.swift +207 -0
- package/nitrogen/generated/apple/swift/ListenerSubscription.swift +29 -0
- package/nitrogen/generated/apple/swift/Promise_bool.swift +100 -0
- package/nitrogen/generated/apple/swift/Promise_void.swift +100 -0
- package/nitrogen/generated/apple/swift/ThemeTransitionDirection.swift +54 -0
- package/nitrogen/generated/apple/swift/ThemeTransitionStyle.swift +64 -0
- package/nitrogen/generated/hybrid-classes.json +33 -0
- package/nitrogen/generated/shared/c++/NitroWindNativeCxxModule.cpp +2 -0
- package/nitrogen/generated/shared/c++/include/NitroWindNative/NitroWindNativeCxxModule.hpp +2 -0
- package/nitrogen/generated/shared/javascript/ReducedMotion.cjs +19 -0
- package/nitrogen/generated/shared/javascript/ReducedMotion.d.cts +9 -0
- package/nitrogen/generated/shared/javascript/ThemeCover.cjs +19 -0
- package/nitrogen/generated/shared/javascript/ThemeCover.d.cts +9 -0
- package/package.json +69 -4
- package/src/index.ts +59 -0
- package/src/specs/ListenerSubscription.ts +3 -0
- package/src/specs/ReducedMotion.nitro.ts +19 -0
- package/src/specs/ThemeCover.nitro.ts +49 -0
- package/src/testing.ts +18 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridThemeCoverSpecSwift.cpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/margelo/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#include <NitroWindNative/private/HybridThemeCoverSpecSwift.hpp>
|
|
9
|
+
#include <NitroModules/SwiftConverter.hpp>
|
|
10
|
+
#include <NitroModules/SwiftResult.hpp>
|
|
11
|
+
#include <optional>
|
|
12
|
+
|
|
13
|
+
namespace margelo::nitro::nitrowind {
|
|
14
|
+
|
|
15
|
+
std::string HybridThemeCoverSpecSwift::toString() {
|
|
16
|
+
return SwiftConverter<std::string, swift::String>::fromSwift(_swiftPart.toString());
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// Properties
|
|
20
|
+
|
|
21
|
+
bool HybridThemeCoverSpecSwift::getIsSyncCaptureSupported() {
|
|
22
|
+
return _swiftPart.getIsSyncCaptureSupported();
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Methods
|
|
26
|
+
|
|
27
|
+
bool HybridThemeCoverSpecSwift::captureCoverSync(const ::NitroWindNative::CoverRequest& request) {
|
|
28
|
+
auto __result = _swiftPart.captureCoverSync(request);
|
|
29
|
+
if (__result.hasError()) [[unlikely]] {
|
|
30
|
+
std::rethrow_exception(__result.error());
|
|
31
|
+
}
|
|
32
|
+
return std::move(__result.value());
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
Promise<bool> HybridThemeCoverSpecSwift::captureCoverAsync(const ::NitroWindNative::CoverRequest& request) {
|
|
36
|
+
auto __result = withCxxResult<Promise<bool>>([&](void* __outResult) {
|
|
37
|
+
return _swiftPart.captureCoverAsync(request, __outResult);
|
|
38
|
+
});
|
|
39
|
+
if (__result.hasError()) [[unlikely]] {
|
|
40
|
+
std::rethrow_exception(__result.error());
|
|
41
|
+
}
|
|
42
|
+
return std::move(__result.value());
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
Promise<void> HybridThemeCoverSpecSwift::finishCover() {
|
|
46
|
+
auto __result = withCxxResult<Promise<void>>([&](void* __outResult) {
|
|
47
|
+
return _swiftPart.finishCover(__outResult);
|
|
48
|
+
});
|
|
49
|
+
if (__result.hasError()) [[unlikely]] {
|
|
50
|
+
std::rethrow_exception(__result.error());
|
|
51
|
+
}
|
|
52
|
+
return std::move(__result.value());
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
void HybridThemeCoverSpecSwift::cancelCover() {
|
|
56
|
+
auto __result = _swiftPart.cancelCover();
|
|
57
|
+
if (__result.hasError()) [[unlikely]] {
|
|
58
|
+
std::rethrow_exception(__result.error());
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
bool HybridThemeCoverSpecSwift::isCoverActive() {
|
|
63
|
+
auto __result = _swiftPart.isCoverActive();
|
|
64
|
+
if (__result.hasError()) [[unlikely]] {
|
|
65
|
+
std::rethrow_exception(__result.error());
|
|
66
|
+
}
|
|
67
|
+
return std::move(__result.value());
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
swift::String HybridThemeCoverSpecSwift::lastCaptureOutcome() {
|
|
71
|
+
auto __result = receiveSwiftResult<swift::String>([&](const void* __onResult) {
|
|
72
|
+
return _swiftPart.lastCaptureOutcome(__onResult);
|
|
73
|
+
});
|
|
74
|
+
if (__result.hasError()) [[unlikely]] {
|
|
75
|
+
std::rethrow_exception(__result.error());
|
|
76
|
+
}
|
|
77
|
+
return std::move(__result.value());
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// Constructor
|
|
81
|
+
|
|
82
|
+
::NitroWindNative::HybridThemeCoverSpec_cxx HybridThemeCoverSpecSwift::constructor() {
|
|
83
|
+
auto __result = ::NitroWindNative::HybridThemeCoverSpec_cxx::constructor();
|
|
84
|
+
if (__result.hasError()) [[unlikely]] {
|
|
85
|
+
std::rethrow_exception(__result.error());
|
|
86
|
+
}
|
|
87
|
+
return ::NitroWindNative::HybridThemeCoverSpec_cxx::fromUnsafe(__result.value());
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
const std::shared_ptr<const HybridClass>& HybridThemeCoverSpecSwift::Class::get() {
|
|
91
|
+
static const auto hybridClass = HybridClass::create<Class>([](HybridClass& clazz) {
|
|
92
|
+
clazz.registerHybridProperty("isSyncCaptureSupported", &HybridThemeCoverSpecSwift::getIsSyncCaptureSupported);
|
|
93
|
+
clazz.registerHybridMethod("captureCoverSync", &HybridThemeCoverSpecSwift::captureCoverSync);
|
|
94
|
+
clazz.registerHybridMethod("captureCoverAsync", &HybridThemeCoverSpecSwift::captureCoverAsync);
|
|
95
|
+
clazz.registerHybridMethod("finishCover", &HybridThemeCoverSpecSwift::finishCover);
|
|
96
|
+
clazz.registerHybridMethod("cancelCover", &HybridThemeCoverSpecSwift::cancelCover);
|
|
97
|
+
clazz.registerHybridMethod("isCoverActive", &HybridThemeCoverSpecSwift::isCoverActive);
|
|
98
|
+
clazz.registerHybridMethod("lastCaptureOutcome", &HybridThemeCoverSpecSwift::lastCaptureOutcome);
|
|
99
|
+
clazz.registerHybridConstructor(&HybridThemeCoverSpecSwift::constructor);
|
|
100
|
+
});
|
|
101
|
+
return hybridClass;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
} // namespace margelo::nitro::nitrowind
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridThemeCoverSpec_cxx-Swift.cpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/margelo/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#include <NitroWindNative/private/HybridThemeCoverSpec_cxx-Swift.hpp>
|
|
9
|
+
#include <NitroWindNative/private/NitroWindNative-Swift-Cxx-Umbrella.hpp>
|
|
10
|
+
#include <NitroWindNative/private/HybridThemeCoverSpecSwift.hpp>
|
|
11
|
+
|
|
12
|
+
namespace margelo::nitro {
|
|
13
|
+
|
|
14
|
+
::NitroWindNative::HybridThemeCoverSpec_cxx JSIConverter<::NitroWindNative::HybridThemeCoverSpec_cxx>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
15
|
+
auto hybridSpec = JSIConverter<std::shared_ptr<margelo::nitro::nitrowind::HybridThemeCoverSpecSwift>>::fromJSI(runtime, value);
|
|
16
|
+
return ::NitroWindNative::HybridThemeCoverSpec_cxx::fromUnsafe(margelo::nitro::nitrowind::swift_bridge::get_std__shared_ptr_margelo__nitro__nitrowind__HybridThemeCoverSpec_(hybridSpec));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
jsi::Value JSIConverter<::NitroWindNative::HybridThemeCoverSpec_cxx>::toJSI(jsi::Runtime& runtime, const ::NitroWindNative::HybridThemeCoverSpec_cxx& value) {
|
|
20
|
+
auto hybridSpec = ::NitroWindNative::HybridThemeCoverSpec_cxx::getCxxPart(value);
|
|
21
|
+
return JSIConverter<std::shared_ptr<margelo::nitro::nitrowind::HybridThemeCoverSpecSwift>>::toJSI(runtime, hybridSpec);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
bool JSIConverter<::NitroWindNative::HybridThemeCoverSpec_cxx>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
25
|
+
return JSIConverter<std::shared_ptr<margelo::nitro::nitrowind::HybridThemeCoverSpecSwift>>::canConvert(runtime, value);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// ListenerSubscription-Swift.cpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/margelo/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#include <NitroWindNative/private/ListenerSubscription-Swift.hpp>
|
|
9
|
+
#include <NitroWindNative/private/NitroWindNative-Swift-Cxx-Umbrella.hpp>
|
|
10
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
11
|
+
#include <NitroModules/SwiftResult.hpp>
|
|
12
|
+
#include <memory>
|
|
13
|
+
|
|
14
|
+
namespace margelo::nitro {
|
|
15
|
+
|
|
16
|
+
::NitroWindNative::ListenerSubscription JSIConverter<::NitroWindNative::ListenerSubscription>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
17
|
+
auto object = value.asObject(runtime);
|
|
18
|
+
auto __remove = JSIConverter<Callback<void()>>::fromJSI(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "remove")));
|
|
19
|
+
return ::NitroWindNative::ListenerSubscription::init_cxx(std::addressof(__remove));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
jsi::Value JSIConverter<::NitroWindNative::ListenerSubscription>::toJSI(jsi::Runtime& runtime, const ::NitroWindNative::ListenerSubscription& value) {
|
|
23
|
+
jsi::Object object(runtime);
|
|
24
|
+
object.setProperty(runtime, PropNameIDCache::get(runtime, "remove"), JSIConverter<Callback<void()>>::toJSI(runtime, makeCxxValue<Callback<void()>>([&](void* __outResult) {
|
|
25
|
+
value.getRemove_cxx(__outResult);
|
|
26
|
+
})));
|
|
27
|
+
return object;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
bool JSIConverter<::NitroWindNative::ListenerSubscription>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
31
|
+
if (!value.isObject()) return false;
|
|
32
|
+
auto object = value.getObject(runtime);
|
|
33
|
+
if (!isPlainObject(runtime, object)) return false;
|
|
34
|
+
return JSIConverter<Callback<void()>>::canConvert(runtime, object.getProperty(runtime, PropNameIDCache::get(runtime, "remove")));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// ThemeTransitionDirection-Swift.cpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/margelo/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#include <NitroWindNative/private/ThemeTransitionDirection-Swift.hpp>
|
|
9
|
+
#include <NitroWindNative/private/NitroWindNative-Swift-Cxx-Umbrella.hpp>
|
|
10
|
+
#include <NitroModules/NitroDefines.hpp>
|
|
11
|
+
#include <NitroModules/NitroHash.hpp>
|
|
12
|
+
#include <NitroModules/NumberUtils.hpp>
|
|
13
|
+
#include <NitroModules/JSIString.hpp>
|
|
14
|
+
|
|
15
|
+
namespace margelo::nitro {
|
|
16
|
+
|
|
17
|
+
::NitroWindNative::ThemeTransitionDirection JSIConverter<::NitroWindNative::ThemeTransitionDirection>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
18
|
+
const auto string = value.asString(runtime).utf8(runtime);
|
|
19
|
+
switch (hashString(string)) {
|
|
20
|
+
case hashString("left"): return ::NitroWindNative::ThemeTransitionDirection::fromRawValue(0);
|
|
21
|
+
case hashString("right"): return ::NitroWindNative::ThemeTransitionDirection::fromRawValue(1);
|
|
22
|
+
default: [[unlikely]]
|
|
23
|
+
throw std::invalid_argument("Cannot convert \"" + string + "\" to enum ThemeTransitionDirection - invalid value!");
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
jsi::Value JSIConverter<::NitroWindNative::ThemeTransitionDirection>::toJSI(jsi::Runtime& runtime, const ::NitroWindNative::ThemeTransitionDirection& value) {
|
|
28
|
+
switch (value.getRawValue()) {
|
|
29
|
+
case 0: return createJSIString<"left">(runtime);
|
|
30
|
+
case 1: return createJSIString<"right">(runtime);
|
|
31
|
+
default: [[unlikely]]
|
|
32
|
+
throw std::invalid_argument("Cannot convert ThemeTransitionDirection to JS - invalid value: " + std::to_string(value.getRawValue()) + "!");
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
bool JSIConverter<::NitroWindNative::ThemeTransitionDirection>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
37
|
+
if (!value.isString()) return false;
|
|
38
|
+
const auto string = value.getString(runtime).utf8(runtime);
|
|
39
|
+
switch (hashString(string)) {
|
|
40
|
+
case hashString("left"): return true;
|
|
41
|
+
case hashString("right"): return true;
|
|
42
|
+
default: return false;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// ThemeTransitionStyle-Swift.cpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/margelo/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#include <NitroWindNative/private/ThemeTransitionStyle-Swift.hpp>
|
|
9
|
+
#include <NitroWindNative/private/NitroWindNative-Swift-Cxx-Umbrella.hpp>
|
|
10
|
+
#include <NitroModules/NitroDefines.hpp>
|
|
11
|
+
#include <NitroModules/NitroHash.hpp>
|
|
12
|
+
#include <NitroModules/NumberUtils.hpp>
|
|
13
|
+
#include <NitroModules/JSIString.hpp>
|
|
14
|
+
|
|
15
|
+
namespace margelo::nitro {
|
|
16
|
+
|
|
17
|
+
::NitroWindNative::ThemeTransitionStyle JSIConverter<::NitroWindNative::ThemeTransitionStyle>::fromJSI(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
18
|
+
const auto string = value.asString(runtime).utf8(runtime);
|
|
19
|
+
switch (hashString(string)) {
|
|
20
|
+
case hashString("fade"): return ::NitroWindNative::ThemeTransitionStyle::fromRawValue(0);
|
|
21
|
+
case hashString("circle"): return ::NitroWindNative::ThemeTransitionStyle::fromRawValue(1);
|
|
22
|
+
case hashString("slide"): return ::NitroWindNative::ThemeTransitionStyle::fromRawValue(2);
|
|
23
|
+
case hashString("blur"): return ::NitroWindNative::ThemeTransitionStyle::fromRawValue(3);
|
|
24
|
+
default: [[unlikely]]
|
|
25
|
+
throw std::invalid_argument("Cannot convert \"" + string + "\" to enum ThemeTransitionStyle - invalid value!");
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
jsi::Value JSIConverter<::NitroWindNative::ThemeTransitionStyle>::toJSI(jsi::Runtime& runtime, const ::NitroWindNative::ThemeTransitionStyle& value) {
|
|
30
|
+
switch (value.getRawValue()) {
|
|
31
|
+
case 0: return createJSIString<"fade">(runtime);
|
|
32
|
+
case 1: return createJSIString<"circle">(runtime);
|
|
33
|
+
case 2: return createJSIString<"slide">(runtime);
|
|
34
|
+
case 3: return createJSIString<"blur">(runtime);
|
|
35
|
+
default: [[unlikely]]
|
|
36
|
+
throw std::invalid_argument("Cannot convert ThemeTransitionStyle to JS - invalid value: " + std::to_string(value.getRawValue()) + "!");
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
bool JSIConverter<::NitroWindNative::ThemeTransitionStyle>::canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
41
|
+
if (!value.isString()) return false;
|
|
42
|
+
const auto string = value.getString(runtime).utf8(runtime);
|
|
43
|
+
switch (hashString(string)) {
|
|
44
|
+
case hashString("fade"): return true;
|
|
45
|
+
case hashString("circle"): return true;
|
|
46
|
+
case hashString("slide"): return true;
|
|
47
|
+
case hashString("blur"): return true;
|
|
48
|
+
default: return false;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// NitroWindNativeAutolinking.hpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/margelo/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
namespace margelo::nitro::nitrowind {
|
|
11
|
+
// Register all generated HybridObject classes
|
|
12
|
+
void registerHybridClasses();
|
|
13
|
+
} // namespace margelo::nitro::nitrowind
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// CoverRequest-Swift.hpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/margelo/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
#include <NitroModules/JSIConverter.hpp>
|
|
11
|
+
// Forward declaration of `CoverRequest` to properly resolve imports.
|
|
12
|
+
namespace NitroWindNative { class CoverRequest; }
|
|
13
|
+
|
|
14
|
+
namespace margelo::nitro {
|
|
15
|
+
|
|
16
|
+
template <>
|
|
17
|
+
struct JSIConverter<::NitroWindNative::CoverRequest> {
|
|
18
|
+
static ::NitroWindNative::CoverRequest fromJSI(jsi::Runtime& runtime, const jsi::Value& value);
|
|
19
|
+
static jsi::Value toJSI(jsi::Runtime& runtime, const ::NitroWindNative::CoverRequest& value);
|
|
20
|
+
static bool canConvert(jsi::Runtime& runtime, const jsi::Value& value);
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridReducedMotionSpecSwift.hpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/margelo/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
#include <NitroModules/HybridObject.hpp>
|
|
11
|
+
#include <NitroModules/HybridClass.hpp>
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
// This implementation header is consumed only by C++ translation units.
|
|
15
|
+
#include <NitroWindNative/private/NitroWindNative-Swift-Cxx-Umbrella.hpp>
|
|
16
|
+
|
|
17
|
+
namespace margelo::nitro::nitrowind {
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The C++ part of HybridReducedMotionSpec_cxx.swift.
|
|
21
|
+
*
|
|
22
|
+
* HybridReducedMotionSpecSwift accesses the concrete Swift wrapper and registers
|
|
23
|
+
* its Swift signatures for JS. C++ callers use a separate adapter when needed.
|
|
24
|
+
*/
|
|
25
|
+
class HybridReducedMotionSpecSwift final : public HybridObject {
|
|
26
|
+
public:
|
|
27
|
+
struct Class {
|
|
28
|
+
using Base = HybridObject::Class;
|
|
29
|
+
static constexpr const char* name = "ReducedMotion";
|
|
30
|
+
static const std::shared_ptr<const HybridClass>& get();
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
public:
|
|
34
|
+
// Constructor from a Swift instance
|
|
35
|
+
explicit HybridReducedMotionSpecSwift(const ::NitroWindNative::HybridReducedMotionSpec_cxx& swiftPart):
|
|
36
|
+
HybridObject(),
|
|
37
|
+
_swiftPart(swiftPart) { }
|
|
38
|
+
|
|
39
|
+
public:
|
|
40
|
+
// Get the Swift part
|
|
41
|
+
::NitroWindNative::HybridReducedMotionSpec_cxx& getSwiftPart() noexcept {
|
|
42
|
+
return _swiftPart;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// HybridObject overrides
|
|
46
|
+
size_t getExternalMemorySize() noexcept override {
|
|
47
|
+
return _swiftPart.getMemorySize();
|
|
48
|
+
}
|
|
49
|
+
bool equals(const std::shared_ptr<HybridObject>& other) override {
|
|
50
|
+
auto value = std::dynamic_pointer_cast<HybridReducedMotionSpecSwift>(other);
|
|
51
|
+
return value && _swiftPart.equals(value->_swiftPart);
|
|
52
|
+
}
|
|
53
|
+
void dispose() override {
|
|
54
|
+
_swiftPart.dispose();
|
|
55
|
+
}
|
|
56
|
+
std::string toString() override;
|
|
57
|
+
|
|
58
|
+
// Properties
|
|
59
|
+
// Methods
|
|
60
|
+
bool isReducedMotionEnabled();
|
|
61
|
+
::NitroWindNative::ListenerSubscription addOnReducedMotionChangedListener(const Callback<void(bool)>& listener);
|
|
62
|
+
// Constructor
|
|
63
|
+
static ::NitroWindNative::HybridReducedMotionSpec_cxx constructor();
|
|
64
|
+
|
|
65
|
+
protected:
|
|
66
|
+
const std::shared_ptr<const HybridClass>& getHybridClass() override {
|
|
67
|
+
return Class::get();
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
private:
|
|
71
|
+
::NitroWindNative::HybridReducedMotionSpec_cxx _swiftPart;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
} // namespace margelo::nitro::nitrowind
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridReducedMotionSpec_cxx-Swift.hpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/margelo/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
#include <NitroModules/JSIConverter.hpp>
|
|
11
|
+
// Forward declaration of `HybridReducedMotionSpec_cxx` to properly resolve imports.
|
|
12
|
+
namespace NitroWindNative { class HybridReducedMotionSpec_cxx; }
|
|
13
|
+
|
|
14
|
+
namespace margelo::nitro {
|
|
15
|
+
|
|
16
|
+
template <>
|
|
17
|
+
struct JSIConverter<::NitroWindNative::HybridReducedMotionSpec_cxx> {
|
|
18
|
+
static ::NitroWindNative::HybridReducedMotionSpec_cxx fromJSI(jsi::Runtime& runtime, const jsi::Value& value);
|
|
19
|
+
static jsi::Value toJSI(jsi::Runtime& runtime, const ::NitroWindNative::HybridReducedMotionSpec_cxx& value);
|
|
20
|
+
static bool canConvert(jsi::Runtime& runtime, const jsi::Value& value);
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
} // namespace margelo::nitro
|
package/nitrogen/generated/apple/c++/include/NitroWindNative/private/HybridThemeCoverSpecSwift.hpp
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridThemeCoverSpecSwift.hpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/margelo/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
#include <NitroModules/HybridObject.hpp>
|
|
11
|
+
#include <NitroModules/HybridClass.hpp>
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
// This implementation header is consumed only by C++ translation units.
|
|
15
|
+
#include <NitroWindNative/private/NitroWindNative-Swift-Cxx-Umbrella.hpp>
|
|
16
|
+
|
|
17
|
+
namespace margelo::nitro::nitrowind {
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The C++ part of HybridThemeCoverSpec_cxx.swift.
|
|
21
|
+
*
|
|
22
|
+
* HybridThemeCoverSpecSwift accesses the concrete Swift wrapper and registers
|
|
23
|
+
* its Swift signatures for JS. C++ callers use a separate adapter when needed.
|
|
24
|
+
*/
|
|
25
|
+
class HybridThemeCoverSpecSwift final : public HybridObject {
|
|
26
|
+
public:
|
|
27
|
+
struct Class {
|
|
28
|
+
using Base = HybridObject::Class;
|
|
29
|
+
static constexpr const char* name = "ThemeCover";
|
|
30
|
+
static const std::shared_ptr<const HybridClass>& get();
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
public:
|
|
34
|
+
// Constructor from a Swift instance
|
|
35
|
+
explicit HybridThemeCoverSpecSwift(const ::NitroWindNative::HybridThemeCoverSpec_cxx& swiftPart):
|
|
36
|
+
HybridObject(),
|
|
37
|
+
_swiftPart(swiftPart) { }
|
|
38
|
+
|
|
39
|
+
public:
|
|
40
|
+
// Get the Swift part
|
|
41
|
+
::NitroWindNative::HybridThemeCoverSpec_cxx& getSwiftPart() noexcept {
|
|
42
|
+
return _swiftPart;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// HybridObject overrides
|
|
46
|
+
size_t getExternalMemorySize() noexcept override {
|
|
47
|
+
return _swiftPart.getMemorySize();
|
|
48
|
+
}
|
|
49
|
+
bool equals(const std::shared_ptr<HybridObject>& other) override {
|
|
50
|
+
auto value = std::dynamic_pointer_cast<HybridThemeCoverSpecSwift>(other);
|
|
51
|
+
return value && _swiftPart.equals(value->_swiftPart);
|
|
52
|
+
}
|
|
53
|
+
void dispose() override {
|
|
54
|
+
_swiftPart.dispose();
|
|
55
|
+
}
|
|
56
|
+
std::string toString() override;
|
|
57
|
+
|
|
58
|
+
// Properties
|
|
59
|
+
bool getIsSyncCaptureSupported();
|
|
60
|
+
// Methods
|
|
61
|
+
bool captureCoverSync(const ::NitroWindNative::CoverRequest& request);
|
|
62
|
+
Promise<bool> captureCoverAsync(const ::NitroWindNative::CoverRequest& request);
|
|
63
|
+
Promise<void> finishCover();
|
|
64
|
+
void cancelCover();
|
|
65
|
+
bool isCoverActive();
|
|
66
|
+
swift::String lastCaptureOutcome();
|
|
67
|
+
// Constructor
|
|
68
|
+
static ::NitroWindNative::HybridThemeCoverSpec_cxx constructor();
|
|
69
|
+
|
|
70
|
+
protected:
|
|
71
|
+
const std::shared_ptr<const HybridClass>& getHybridClass() override {
|
|
72
|
+
return Class::get();
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
private:
|
|
76
|
+
::NitroWindNative::HybridThemeCoverSpec_cxx _swiftPart;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
} // namespace margelo::nitro::nitrowind
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridThemeCoverSpec_cxx-Swift.hpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/margelo/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
#include <NitroModules/JSIConverter.hpp>
|
|
11
|
+
// Forward declaration of `HybridThemeCoverSpec_cxx` to properly resolve imports.
|
|
12
|
+
namespace NitroWindNative { class HybridThemeCoverSpec_cxx; }
|
|
13
|
+
|
|
14
|
+
namespace margelo::nitro {
|
|
15
|
+
|
|
16
|
+
template <>
|
|
17
|
+
struct JSIConverter<::NitroWindNative::HybridThemeCoverSpec_cxx> {
|
|
18
|
+
static ::NitroWindNative::HybridThemeCoverSpec_cxx fromJSI(jsi::Runtime& runtime, const jsi::Value& value);
|
|
19
|
+
static jsi::Value toJSI(jsi::Runtime& runtime, const ::NitroWindNative::HybridThemeCoverSpec_cxx& value);
|
|
20
|
+
static bool canConvert(jsi::Runtime& runtime, const jsi::Value& value);
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
} // namespace margelo::nitro
|
package/nitrogen/generated/apple/c++/include/NitroWindNative/private/ListenerSubscription-Swift.hpp
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// ListenerSubscription-Swift.hpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/margelo/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
#include <NitroModules/JSIConverter.hpp>
|
|
11
|
+
// Forward declaration of `ListenerSubscription` to properly resolve imports.
|
|
12
|
+
namespace NitroWindNative { class ListenerSubscription; }
|
|
13
|
+
|
|
14
|
+
namespace margelo::nitro {
|
|
15
|
+
|
|
16
|
+
template <>
|
|
17
|
+
struct JSIConverter<::NitroWindNative::ListenerSubscription> {
|
|
18
|
+
static ::NitroWindNative::ListenerSubscription fromJSI(jsi::Runtime& runtime, const jsi::Value& value);
|
|
19
|
+
static jsi::Value toJSI(jsi::Runtime& runtime, const ::NitroWindNative::ListenerSubscription& value);
|
|
20
|
+
static bool canConvert(jsi::Runtime& runtime, const jsi::Value& value);
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// NitroWindNative-Swift-Cxx-Umbrella.hpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/margelo/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
// Private C++ implementation includes. Never import this umbrella from Swift.
|
|
11
|
+
// Include Swift defined types. They define swift::Optional and swift::Array,
|
|
12
|
+
// which the C++ helpers below only forward-declare for Swift's importer.
|
|
13
|
+
#include <NitroModules/NitroModules-Swift-Cxx-Umbrella.hpp>
|
|
14
|
+
|
|
15
|
+
// C++ helpers for Swift
|
|
16
|
+
#include <NitroWindNativeAppleCxx/NitroWindNativeAppleCxx.h>
|
|
17
|
+
|
|
18
|
+
#if __has_include("NitroWindNative-Swift.h")
|
|
19
|
+
// This header is generated by Xcode/Swift on every app build.
|
|
20
|
+
// If it cannot be found, make sure the Swift module's name (= podspec name) is actually "NitroWindNative".
|
|
21
|
+
#include "NitroWindNative-Swift.h"
|
|
22
|
+
// Same as above, but used when building with frameworks (`use_frameworks`)
|
|
23
|
+
#elif __has_include(<NitroWindNative/NitroWindNative-Swift.h>)
|
|
24
|
+
#include <NitroWindNative/NitroWindNative-Swift.h>
|
|
25
|
+
#else
|
|
26
|
+
#error NitroWindNative's autogenerated Swift header cannot be found! Make sure the Swift module's name (= podspec name) is actually "NitroWindNative", and try building the app first.
|
|
27
|
+
#endif
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
#include <NitroWindNative/private/HybridReducedMotionSpec_cxx-Swift.hpp>
|
|
31
|
+
#include <NitroModules/Callback.hpp>
|
|
32
|
+
#include <NitroWindNative/private/ListenerSubscription-Swift.hpp>
|
|
33
|
+
#include <NitroModules/Result.hpp>
|
|
34
|
+
#include <NitroWindNative/private/HybridThemeCoverSpec_cxx-Swift.hpp>
|
|
35
|
+
#include <NitroModules/Promise.hpp>
|
|
36
|
+
#include <NitroModules/NitroModules-Swift-Cxx-Umbrella.hpp>
|
|
37
|
+
#include <NitroModules/JSIConverter+SwiftString.hpp>
|
|
38
|
+
#include <NitroWindNative/private/ThemeTransitionStyle-Swift.hpp>
|
|
39
|
+
#include <NitroModules/JSIConverter+SwiftOptional.hpp>
|
|
40
|
+
#include <NitroWindNative/private/ThemeTransitionDirection-Swift.hpp>
|
|
41
|
+
#include <NitroWindNative/private/CoverRequest-Swift.hpp>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// ThemeTransitionDirection-Swift.hpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/margelo/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
#include <NitroModules/JSIConverter.hpp>
|
|
11
|
+
// Forward declaration of `ThemeTransitionDirection` to properly resolve imports.
|
|
12
|
+
namespace NitroWindNative { class ThemeTransitionDirection; }
|
|
13
|
+
|
|
14
|
+
namespace margelo::nitro {
|
|
15
|
+
|
|
16
|
+
template <>
|
|
17
|
+
struct JSIConverter<::NitroWindNative::ThemeTransitionDirection> {
|
|
18
|
+
static ::NitroWindNative::ThemeTransitionDirection fromJSI(jsi::Runtime& runtime, const jsi::Value& value);
|
|
19
|
+
static jsi::Value toJSI(jsi::Runtime& runtime, const ::NitroWindNative::ThemeTransitionDirection& value);
|
|
20
|
+
static bool canConvert(jsi::Runtime& runtime, const jsi::Value& value);
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
} // namespace margelo::nitro
|
package/nitrogen/generated/apple/c++/include/NitroWindNative/private/ThemeTransitionStyle-Swift.hpp
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// ThemeTransitionStyle-Swift.hpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/margelo/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
#include <NitroModules/JSIConverter.hpp>
|
|
11
|
+
// Forward declaration of `ThemeTransitionStyle` to properly resolve imports.
|
|
12
|
+
namespace NitroWindNative { class ThemeTransitionStyle; }
|
|
13
|
+
|
|
14
|
+
namespace margelo::nitro {
|
|
15
|
+
|
|
16
|
+
template <>
|
|
17
|
+
struct JSIConverter<::NitroWindNative::ThemeTransitionStyle> {
|
|
18
|
+
static ::NitroWindNative::ThemeTransitionStyle fromJSI(jsi::Runtime& runtime, const jsi::Value& value);
|
|
19
|
+
static jsi::Value toJSI(jsi::Runtime& runtime, const ::NitroWindNative::ThemeTransitionStyle& value);
|
|
20
|
+
static bool canConvert(jsi::Runtime& runtime, const jsi::Value& value);
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// module.modulemap
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/margelo/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
// Headers used by Swift belong to the AppleCxx module.
|
|
9
|
+
// This implementation target must not claim them through an umbrella directory.
|
|
10
|
+
module NitroWindNativeSwiftBridge {
|
|
11
|
+
requires cplusplus
|
|
12
|
+
}
|