@onekeyfe/react-native-skeleton 3.0.86 → 3.0.87
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/lib/nitrogen/generated/android/c++/JHybridSkeletonSpec.cpp +8 -8
- package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/skeleton/HybridSkeletonSpec.kt +2 -0
- package/lib/nitrogen/generated/ios/Skeleton+autolinking.rb +2 -0
- package/lib/nitrogen/generated/shared/c++/views/HybridSkeletonComponent.cpp +1 -1
- package/nitrogen/generated/android/c++/JHybridSkeletonSpec.cpp +8 -8
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/skeleton/HybridSkeletonSpec.kt +2 -0
- package/nitrogen/generated/ios/Skeleton+autolinking.rb +2 -0
- package/nitrogen/generated/shared/c++/views/HybridSkeletonComponent.cpp +1 -1
- package/package.json +4 -4
|
@@ -55,29 +55,29 @@ namespace margelo::nitro::skeleton {
|
|
|
55
55
|
std::optional<std::vector<std::string>> JHybridSkeletonSpec::getShimmerGradientColors() {
|
|
56
56
|
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JArrayClass<jni::JString>>()>("getShimmerGradientColors");
|
|
57
57
|
auto __result = method(_javaPart);
|
|
58
|
-
return __result != nullptr ? std::make_optional([&]() {
|
|
59
|
-
size_t __size =
|
|
58
|
+
return __result != nullptr ? std::make_optional([&](auto&& __input) {
|
|
59
|
+
size_t __size = __input->size();
|
|
60
60
|
std::vector<std::string> __vector;
|
|
61
61
|
__vector.reserve(__size);
|
|
62
62
|
for (size_t __i = 0; __i < __size; __i++) {
|
|
63
|
-
auto __element =
|
|
63
|
+
auto __element = __input->getElement(__i);
|
|
64
64
|
__vector.push_back(__element->toStdString());
|
|
65
65
|
}
|
|
66
66
|
return __vector;
|
|
67
|
-
}()) : std::nullopt;
|
|
67
|
+
}(__result)) : std::nullopt;
|
|
68
68
|
}
|
|
69
69
|
void JHybridSkeletonSpec::setShimmerGradientColors(const std::optional<std::vector<std::string>>& shimmerGradientColors) {
|
|
70
70
|
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JArrayClass<jni::JString>> /* shimmerGradientColors */)>("setShimmerGradientColors");
|
|
71
|
-
method(_javaPart, shimmerGradientColors.has_value() ? [&]() {
|
|
72
|
-
size_t __size =
|
|
71
|
+
method(_javaPart, shimmerGradientColors.has_value() ? [&](auto&& __input) {
|
|
72
|
+
size_t __size = __input.size();
|
|
73
73
|
jni::local_ref<jni::JArrayClass<jni::JString>> __array = jni::JArrayClass<jni::JString>::newArray(__size);
|
|
74
74
|
for (size_t __i = 0; __i < __size; __i++) {
|
|
75
|
-
const auto& __element =
|
|
75
|
+
const auto& __element = __input[__i];
|
|
76
76
|
auto __elementJni = jni::make_jstring(__element);
|
|
77
77
|
__array->setElement(__i, *__elementJni);
|
|
78
78
|
}
|
|
79
79
|
return __array;
|
|
80
|
-
}() : nullptr);
|
|
80
|
+
}(shimmerGradientColors.value()) : nullptr);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
// Methods
|
package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/skeleton/HybridSkeletonSpec.kt
CHANGED
|
@@ -10,6 +10,7 @@ package com.margelo.nitro.skeleton
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.jni.HybridData
|
|
12
12
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
13
|
+
import dalvik.annotation.optimization.FastNative
|
|
13
14
|
import com.margelo.nitro.core.HybridObject
|
|
14
15
|
import com.margelo.nitro.views.HybridView
|
|
15
16
|
|
|
@@ -51,6 +52,7 @@ abstract class HybridSkeletonSpec: HybridView() {
|
|
|
51
52
|
@Keep
|
|
52
53
|
protected open class CxxPart(javaPart: HybridSkeletonSpec): HybridObject.CxxPart(javaPart) {
|
|
53
54
|
// C++ JHybridSkeletonSpec::CxxPart::initHybrid(...)
|
|
55
|
+
@FastNative
|
|
54
56
|
external override fun initHybrid(): HybridData
|
|
55
57
|
}
|
|
56
58
|
override fun createCxxPart(): CxxPart {
|
|
@@ -56,5 +56,7 @@ def add_nitrogen_files(spec)
|
|
|
56
56
|
"SWIFT_OBJC_INTEROP_MODE" => "objcxx",
|
|
57
57
|
# Enables stricter modular headers
|
|
58
58
|
"DEFINES_MODULE" => "YES",
|
|
59
|
+
# Disable auto-generated ObjC header for Swift (Static linkage on Xcode 26.4 breaks here)
|
|
60
|
+
"SWIFT_INSTALL_OBJC_HEADER" => "NO",
|
|
59
61
|
})
|
|
60
62
|
end
|
|
@@ -68,7 +68,7 @@ namespace margelo::nitro::skeleton::views {
|
|
|
68
68
|
|
|
69
69
|
HybridSkeletonComponentDescriptor::HybridSkeletonComponentDescriptor(const react::ComponentDescriptorParameters& parameters)
|
|
70
70
|
: ConcreteComponentDescriptor(parameters,
|
|
71
|
-
react::RawPropsParser(
|
|
71
|
+
react::RawPropsParser()) {}
|
|
72
72
|
|
|
73
73
|
std::shared_ptr<const react::Props> HybridSkeletonComponentDescriptor::cloneProps(const react::PropsParserContext& context,
|
|
74
74
|
const std::shared_ptr<const react::Props>& props,
|
|
@@ -55,29 +55,29 @@ namespace margelo::nitro::skeleton {
|
|
|
55
55
|
std::optional<std::vector<std::string>> JHybridSkeletonSpec::getShimmerGradientColors() {
|
|
56
56
|
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JArrayClass<jni::JString>>()>("getShimmerGradientColors");
|
|
57
57
|
auto __result = method(_javaPart);
|
|
58
|
-
return __result != nullptr ? std::make_optional([&]() {
|
|
59
|
-
size_t __size =
|
|
58
|
+
return __result != nullptr ? std::make_optional([&](auto&& __input) {
|
|
59
|
+
size_t __size = __input->size();
|
|
60
60
|
std::vector<std::string> __vector;
|
|
61
61
|
__vector.reserve(__size);
|
|
62
62
|
for (size_t __i = 0; __i < __size; __i++) {
|
|
63
|
-
auto __element =
|
|
63
|
+
auto __element = __input->getElement(__i);
|
|
64
64
|
__vector.push_back(__element->toStdString());
|
|
65
65
|
}
|
|
66
66
|
return __vector;
|
|
67
|
-
}()) : std::nullopt;
|
|
67
|
+
}(__result)) : std::nullopt;
|
|
68
68
|
}
|
|
69
69
|
void JHybridSkeletonSpec::setShimmerGradientColors(const std::optional<std::vector<std::string>>& shimmerGradientColors) {
|
|
70
70
|
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JArrayClass<jni::JString>> /* shimmerGradientColors */)>("setShimmerGradientColors");
|
|
71
|
-
method(_javaPart, shimmerGradientColors.has_value() ? [&]() {
|
|
72
|
-
size_t __size =
|
|
71
|
+
method(_javaPart, shimmerGradientColors.has_value() ? [&](auto&& __input) {
|
|
72
|
+
size_t __size = __input.size();
|
|
73
73
|
jni::local_ref<jni::JArrayClass<jni::JString>> __array = jni::JArrayClass<jni::JString>::newArray(__size);
|
|
74
74
|
for (size_t __i = 0; __i < __size; __i++) {
|
|
75
|
-
const auto& __element =
|
|
75
|
+
const auto& __element = __input[__i];
|
|
76
76
|
auto __elementJni = jni::make_jstring(__element);
|
|
77
77
|
__array->setElement(__i, *__elementJni);
|
|
78
78
|
}
|
|
79
79
|
return __array;
|
|
80
|
-
}() : nullptr);
|
|
80
|
+
}(shimmerGradientColors.value()) : nullptr);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
// Methods
|
|
@@ -10,6 +10,7 @@ package com.margelo.nitro.skeleton
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.jni.HybridData
|
|
12
12
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
13
|
+
import dalvik.annotation.optimization.FastNative
|
|
13
14
|
import com.margelo.nitro.core.HybridObject
|
|
14
15
|
import com.margelo.nitro.views.HybridView
|
|
15
16
|
|
|
@@ -51,6 +52,7 @@ abstract class HybridSkeletonSpec: HybridView() {
|
|
|
51
52
|
@Keep
|
|
52
53
|
protected open class CxxPart(javaPart: HybridSkeletonSpec): HybridObject.CxxPart(javaPart) {
|
|
53
54
|
// C++ JHybridSkeletonSpec::CxxPart::initHybrid(...)
|
|
55
|
+
@FastNative
|
|
54
56
|
external override fun initHybrid(): HybridData
|
|
55
57
|
}
|
|
56
58
|
override fun createCxxPart(): CxxPart {
|
|
@@ -56,5 +56,7 @@ def add_nitrogen_files(spec)
|
|
|
56
56
|
"SWIFT_OBJC_INTEROP_MODE" => "objcxx",
|
|
57
57
|
# Enables stricter modular headers
|
|
58
58
|
"DEFINES_MODULE" => "YES",
|
|
59
|
+
# Disable auto-generated ObjC header for Swift (Static linkage on Xcode 26.4 breaks here)
|
|
60
|
+
"SWIFT_INSTALL_OBJC_HEADER" => "NO",
|
|
59
61
|
})
|
|
60
62
|
end
|
|
@@ -68,7 +68,7 @@ namespace margelo::nitro::skeleton::views {
|
|
|
68
68
|
|
|
69
69
|
HybridSkeletonComponentDescriptor::HybridSkeletonComponentDescriptor(const react::ComponentDescriptorParameters& parameters)
|
|
70
70
|
: ConcreteComponentDescriptor(parameters,
|
|
71
|
-
react::RawPropsParser(
|
|
71
|
+
react::RawPropsParser()) {}
|
|
72
72
|
|
|
73
73
|
std::shared_ptr<const react::Props> HybridSkeletonComponentDescriptor::cloneProps(const react::PropsParserContext& context,
|
|
74
74
|
const std::shared_ptr<const react::Props>& props,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/react-native-skeleton",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.87",
|
|
4
4
|
"description": "react-native-skeleton",
|
|
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.36.5",
|
|
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.36.5",
|
|
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.36.5"
|
|
95
95
|
},
|
|
96
96
|
"packageManager": "yarn@4.11.0",
|
|
97
97
|
"react-native-builder-bob": {
|