@onekeyfe/react-native-perp-depth-bar 3.0.85 → 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++/JHybridPerpDepthBarsSpec.cpp +23 -23
- package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/perpdepthbar/Func_void_double.kt +0 -2
- package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/perpdepthbar/HybridPerpDepthBarsSpec.kt +2 -0
- package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/perpdepthbar/HybridPerpSideRatioSpec.kt +2 -0
- package/lib/nitrogen/generated/ios/PerpDepthBar+autolinking.rb +2 -0
- package/lib/nitrogen/generated/shared/c++/views/HybridPerpDepthBarsComponent.cpp +1 -1
- package/lib/nitrogen/generated/shared/c++/views/HybridPerpSideRatioComponent.cpp +1 -1
- package/lib/nitrogen/nitrogen/generated/android/c++/JHybridPerpDepthBarsSpec.cpp +23 -23
- package/lib/nitrogen/nitrogen/generated/android/kotlin/com/margelo/nitro/perpdepthbar/Func_void_double.kt +0 -2
- package/lib/nitrogen/nitrogen/generated/android/kotlin/com/margelo/nitro/perpdepthbar/HybridPerpDepthBarsSpec.kt +2 -0
- package/lib/nitrogen/nitrogen/generated/android/kotlin/com/margelo/nitro/perpdepthbar/HybridPerpSideRatioSpec.kt +2 -0
- package/lib/nitrogen/nitrogen/generated/ios/PerpDepthBar+autolinking.rb +2 -0
- package/lib/nitrogen/nitrogen/generated/shared/c++/views/HybridPerpDepthBarsComponent.cpp +1 -1
- package/lib/nitrogen/nitrogen/generated/shared/c++/views/HybridPerpSideRatioComponent.cpp +1 -1
- package/nitrogen/generated/android/c++/JHybridPerpDepthBarsSpec.cpp +23 -23
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/perpdepthbar/Func_void_double.kt +0 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/perpdepthbar/HybridPerpDepthBarsSpec.kt +2 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/perpdepthbar/HybridPerpSideRatioSpec.kt +2 -0
- package/nitrogen/generated/ios/PerpDepthBar+autolinking.rb +2 -0
- package/nitrogen/generated/shared/c++/views/HybridPerpDepthBarsComponent.cpp +1 -1
- package/nitrogen/generated/shared/c++/views/HybridPerpSideRatioComponent.cpp +1 -1
- package/package.json +4 -4
|
@@ -133,56 +133,56 @@ namespace margelo::nitro::perpdepthbar {
|
|
|
133
133
|
std::vector<std::string> JHybridPerpDepthBarsSpec::getPrices() {
|
|
134
134
|
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JArrayClass<jni::JString>>()>("getPrices");
|
|
135
135
|
auto __result = method(_javaPart);
|
|
136
|
-
return [&]() {
|
|
137
|
-
size_t __size =
|
|
136
|
+
return [&](auto&& __input) {
|
|
137
|
+
size_t __size = __input->size();
|
|
138
138
|
std::vector<std::string> __vector;
|
|
139
139
|
__vector.reserve(__size);
|
|
140
140
|
for (size_t __i = 0; __i < __size; __i++) {
|
|
141
|
-
auto __element =
|
|
141
|
+
auto __element = __input->getElement(__i);
|
|
142
142
|
__vector.push_back(__element->toStdString());
|
|
143
143
|
}
|
|
144
144
|
return __vector;
|
|
145
|
-
}();
|
|
145
|
+
}(__result);
|
|
146
146
|
}
|
|
147
147
|
void JHybridPerpDepthBarsSpec::setPrices(const std::vector<std::string>& prices) {
|
|
148
148
|
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JArrayClass<jni::JString>> /* prices */)>("setPrices");
|
|
149
|
-
method(_javaPart, [&]() {
|
|
150
|
-
size_t __size =
|
|
149
|
+
method(_javaPart, [&](auto&& __input) {
|
|
150
|
+
size_t __size = __input.size();
|
|
151
151
|
jni::local_ref<jni::JArrayClass<jni::JString>> __array = jni::JArrayClass<jni::JString>::newArray(__size);
|
|
152
152
|
for (size_t __i = 0; __i < __size; __i++) {
|
|
153
|
-
const auto& __element =
|
|
153
|
+
const auto& __element = __input[__i];
|
|
154
154
|
auto __elementJni = jni::make_jstring(__element);
|
|
155
155
|
__array->setElement(__i, *__elementJni);
|
|
156
156
|
}
|
|
157
157
|
return __array;
|
|
158
|
-
}());
|
|
158
|
+
}(prices));
|
|
159
159
|
}
|
|
160
160
|
std::vector<std::string> JHybridPerpDepthBarsSpec::getSizes() {
|
|
161
161
|
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JArrayClass<jni::JString>>()>("getSizes");
|
|
162
162
|
auto __result = method(_javaPart);
|
|
163
|
-
return [&]() {
|
|
164
|
-
size_t __size =
|
|
163
|
+
return [&](auto&& __input) {
|
|
164
|
+
size_t __size = __input->size();
|
|
165
165
|
std::vector<std::string> __vector;
|
|
166
166
|
__vector.reserve(__size);
|
|
167
167
|
for (size_t __i = 0; __i < __size; __i++) {
|
|
168
|
-
auto __element =
|
|
168
|
+
auto __element = __input->getElement(__i);
|
|
169
169
|
__vector.push_back(__element->toStdString());
|
|
170
170
|
}
|
|
171
171
|
return __vector;
|
|
172
|
-
}();
|
|
172
|
+
}(__result);
|
|
173
173
|
}
|
|
174
174
|
void JHybridPerpDepthBarsSpec::setSizes(const std::vector<std::string>& sizes) {
|
|
175
175
|
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JArrayClass<jni::JString>> /* sizes */)>("setSizes");
|
|
176
|
-
method(_javaPart, [&]() {
|
|
177
|
-
size_t __size =
|
|
176
|
+
method(_javaPart, [&](auto&& __input) {
|
|
177
|
+
size_t __size = __input.size();
|
|
178
178
|
jni::local_ref<jni::JArrayClass<jni::JString>> __array = jni::JArrayClass<jni::JString>::newArray(__size);
|
|
179
179
|
for (size_t __i = 0; __i < __size; __i++) {
|
|
180
|
-
const auto& __element =
|
|
180
|
+
const auto& __element = __input[__i];
|
|
181
181
|
auto __elementJni = jni::make_jstring(__element);
|
|
182
182
|
__array->setElement(__i, *__elementJni);
|
|
183
183
|
}
|
|
184
184
|
return __array;
|
|
185
|
-
}());
|
|
185
|
+
}(sizes));
|
|
186
186
|
}
|
|
187
187
|
std::string JHybridPerpDepthBarsSpec::getPriceColor() {
|
|
188
188
|
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JString>()>("getPriceColor");
|
|
@@ -272,25 +272,25 @@ namespace margelo::nitro::perpdepthbar {
|
|
|
272
272
|
}
|
|
273
273
|
void JHybridPerpDepthBarsSpec::setText(const std::vector<std::string>& prices, const std::vector<std::string>& sizes) {
|
|
274
274
|
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JArrayClass<jni::JString>> /* prices */, jni::alias_ref<jni::JArrayClass<jni::JString>> /* sizes */)>("setText");
|
|
275
|
-
method(_javaPart, [&]() {
|
|
276
|
-
size_t __size =
|
|
275
|
+
method(_javaPart, [&](auto&& __input) {
|
|
276
|
+
size_t __size = __input.size();
|
|
277
277
|
jni::local_ref<jni::JArrayClass<jni::JString>> __array = jni::JArrayClass<jni::JString>::newArray(__size);
|
|
278
278
|
for (size_t __i = 0; __i < __size; __i++) {
|
|
279
|
-
const auto& __element =
|
|
279
|
+
const auto& __element = __input[__i];
|
|
280
280
|
auto __elementJni = jni::make_jstring(__element);
|
|
281
281
|
__array->setElement(__i, *__elementJni);
|
|
282
282
|
}
|
|
283
283
|
return __array;
|
|
284
|
-
}(), [&]() {
|
|
285
|
-
size_t __size =
|
|
284
|
+
}(prices), [&](auto&& __input) {
|
|
285
|
+
size_t __size = __input.size();
|
|
286
286
|
jni::local_ref<jni::JArrayClass<jni::JString>> __array = jni::JArrayClass<jni::JString>::newArray(__size);
|
|
287
287
|
for (size_t __i = 0; __i < __size; __i++) {
|
|
288
|
-
const auto& __element =
|
|
288
|
+
const auto& __element = __input[__i];
|
|
289
289
|
auto __elementJni = jni::make_jstring(__element);
|
|
290
290
|
__array->setElement(__i, *__elementJni);
|
|
291
291
|
}
|
|
292
292
|
return __array;
|
|
293
|
-
}());
|
|
293
|
+
}(sizes));
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
} // namespace margelo::nitro::perpdepthbar
|
package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/perpdepthbar/Func_void_double.kt
CHANGED
|
@@ -10,7 +10,6 @@ package com.margelo.nitro.perpdepthbar
|
|
|
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
|
|
14
13
|
|
|
15
14
|
|
|
16
15
|
/**
|
|
@@ -59,7 +58,6 @@ class Func_void_double_cxx: Func_void_double {
|
|
|
59
58
|
override fun invoke(rowIndex: Double): Unit
|
|
60
59
|
= invoke_cxx(rowIndex)
|
|
61
60
|
|
|
62
|
-
@FastNative
|
|
63
61
|
private external fun invoke_cxx(rowIndex: Double): Unit
|
|
64
62
|
}
|
|
65
63
|
|
|
@@ -10,6 +10,7 @@ package com.margelo.nitro.perpdepthbar
|
|
|
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.ArrayBuffer
|
|
14
15
|
import com.margelo.nitro.core.HybridObject
|
|
15
16
|
import com.margelo.nitro.views.HybridView
|
|
@@ -162,6 +163,7 @@ abstract class HybridPerpDepthBarsSpec: HybridView() {
|
|
|
162
163
|
@Keep
|
|
163
164
|
protected open class CxxPart(javaPart: HybridPerpDepthBarsSpec): HybridObject.CxxPart(javaPart) {
|
|
164
165
|
// C++ JHybridPerpDepthBarsSpec::CxxPart::initHybrid(...)
|
|
166
|
+
@FastNative
|
|
165
167
|
external override fun initHybrid(): HybridData
|
|
166
168
|
}
|
|
167
169
|
override fun createCxxPart(): CxxPart {
|
|
@@ -10,6 +10,7 @@ package com.margelo.nitro.perpdepthbar
|
|
|
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
|
|
|
@@ -89,6 +90,7 @@ abstract class HybridPerpSideRatioSpec: HybridView() {
|
|
|
89
90
|
@Keep
|
|
90
91
|
protected open class CxxPart(javaPart: HybridPerpSideRatioSpec): HybridObject.CxxPart(javaPart) {
|
|
91
92
|
// C++ JHybridPerpSideRatioSpec::CxxPart::initHybrid(...)
|
|
93
|
+
@FastNative
|
|
92
94
|
external override fun initHybrid(): HybridData
|
|
93
95
|
}
|
|
94
96
|
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
|
|
@@ -244,7 +244,7 @@ namespace margelo::nitro::perpdepthbar::views {
|
|
|
244
244
|
|
|
245
245
|
HybridPerpDepthBarsComponentDescriptor::HybridPerpDepthBarsComponentDescriptor(const react::ComponentDescriptorParameters& parameters)
|
|
246
246
|
: ConcreteComponentDescriptor(parameters,
|
|
247
|
-
react::RawPropsParser(
|
|
247
|
+
react::RawPropsParser()) {}
|
|
248
248
|
|
|
249
249
|
std::shared_ptr<const react::Props> HybridPerpDepthBarsComponentDescriptor::cloneProps(const react::PropsParserContext& context,
|
|
250
250
|
const std::shared_ptr<const react::Props>& props,
|
|
@@ -134,7 +134,7 @@ namespace margelo::nitro::perpdepthbar::views {
|
|
|
134
134
|
|
|
135
135
|
HybridPerpSideRatioComponentDescriptor::HybridPerpSideRatioComponentDescriptor(const react::ComponentDescriptorParameters& parameters)
|
|
136
136
|
: ConcreteComponentDescriptor(parameters,
|
|
137
|
-
react::RawPropsParser(
|
|
137
|
+
react::RawPropsParser()) {}
|
|
138
138
|
|
|
139
139
|
std::shared_ptr<const react::Props> HybridPerpSideRatioComponentDescriptor::cloneProps(const react::PropsParserContext& context,
|
|
140
140
|
const std::shared_ptr<const react::Props>& props,
|
|
@@ -133,56 +133,56 @@ namespace margelo::nitro::perpdepthbar {
|
|
|
133
133
|
std::vector<std::string> JHybridPerpDepthBarsSpec::getPrices() {
|
|
134
134
|
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JArrayClass<jni::JString>>()>("getPrices");
|
|
135
135
|
auto __result = method(_javaPart);
|
|
136
|
-
return [&]() {
|
|
137
|
-
size_t __size =
|
|
136
|
+
return [&](auto&& __input) {
|
|
137
|
+
size_t __size = __input->size();
|
|
138
138
|
std::vector<std::string> __vector;
|
|
139
139
|
__vector.reserve(__size);
|
|
140
140
|
for (size_t __i = 0; __i < __size; __i++) {
|
|
141
|
-
auto __element =
|
|
141
|
+
auto __element = __input->getElement(__i);
|
|
142
142
|
__vector.push_back(__element->toStdString());
|
|
143
143
|
}
|
|
144
144
|
return __vector;
|
|
145
|
-
}();
|
|
145
|
+
}(__result);
|
|
146
146
|
}
|
|
147
147
|
void JHybridPerpDepthBarsSpec::setPrices(const std::vector<std::string>& prices) {
|
|
148
148
|
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JArrayClass<jni::JString>> /* prices */)>("setPrices");
|
|
149
|
-
method(_javaPart, [&]() {
|
|
150
|
-
size_t __size =
|
|
149
|
+
method(_javaPart, [&](auto&& __input) {
|
|
150
|
+
size_t __size = __input.size();
|
|
151
151
|
jni::local_ref<jni::JArrayClass<jni::JString>> __array = jni::JArrayClass<jni::JString>::newArray(__size);
|
|
152
152
|
for (size_t __i = 0; __i < __size; __i++) {
|
|
153
|
-
const auto& __element =
|
|
153
|
+
const auto& __element = __input[__i];
|
|
154
154
|
auto __elementJni = jni::make_jstring(__element);
|
|
155
155
|
__array->setElement(__i, *__elementJni);
|
|
156
156
|
}
|
|
157
157
|
return __array;
|
|
158
|
-
}());
|
|
158
|
+
}(prices));
|
|
159
159
|
}
|
|
160
160
|
std::vector<std::string> JHybridPerpDepthBarsSpec::getSizes() {
|
|
161
161
|
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JArrayClass<jni::JString>>()>("getSizes");
|
|
162
162
|
auto __result = method(_javaPart);
|
|
163
|
-
return [&]() {
|
|
164
|
-
size_t __size =
|
|
163
|
+
return [&](auto&& __input) {
|
|
164
|
+
size_t __size = __input->size();
|
|
165
165
|
std::vector<std::string> __vector;
|
|
166
166
|
__vector.reserve(__size);
|
|
167
167
|
for (size_t __i = 0; __i < __size; __i++) {
|
|
168
|
-
auto __element =
|
|
168
|
+
auto __element = __input->getElement(__i);
|
|
169
169
|
__vector.push_back(__element->toStdString());
|
|
170
170
|
}
|
|
171
171
|
return __vector;
|
|
172
|
-
}();
|
|
172
|
+
}(__result);
|
|
173
173
|
}
|
|
174
174
|
void JHybridPerpDepthBarsSpec::setSizes(const std::vector<std::string>& sizes) {
|
|
175
175
|
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JArrayClass<jni::JString>> /* sizes */)>("setSizes");
|
|
176
|
-
method(_javaPart, [&]() {
|
|
177
|
-
size_t __size =
|
|
176
|
+
method(_javaPart, [&](auto&& __input) {
|
|
177
|
+
size_t __size = __input.size();
|
|
178
178
|
jni::local_ref<jni::JArrayClass<jni::JString>> __array = jni::JArrayClass<jni::JString>::newArray(__size);
|
|
179
179
|
for (size_t __i = 0; __i < __size; __i++) {
|
|
180
|
-
const auto& __element =
|
|
180
|
+
const auto& __element = __input[__i];
|
|
181
181
|
auto __elementJni = jni::make_jstring(__element);
|
|
182
182
|
__array->setElement(__i, *__elementJni);
|
|
183
183
|
}
|
|
184
184
|
return __array;
|
|
185
|
-
}());
|
|
185
|
+
}(sizes));
|
|
186
186
|
}
|
|
187
187
|
std::string JHybridPerpDepthBarsSpec::getPriceColor() {
|
|
188
188
|
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JString>()>("getPriceColor");
|
|
@@ -272,25 +272,25 @@ namespace margelo::nitro::perpdepthbar {
|
|
|
272
272
|
}
|
|
273
273
|
void JHybridPerpDepthBarsSpec::setText(const std::vector<std::string>& prices, const std::vector<std::string>& sizes) {
|
|
274
274
|
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JArrayClass<jni::JString>> /* prices */, jni::alias_ref<jni::JArrayClass<jni::JString>> /* sizes */)>("setText");
|
|
275
|
-
method(_javaPart, [&]() {
|
|
276
|
-
size_t __size =
|
|
275
|
+
method(_javaPart, [&](auto&& __input) {
|
|
276
|
+
size_t __size = __input.size();
|
|
277
277
|
jni::local_ref<jni::JArrayClass<jni::JString>> __array = jni::JArrayClass<jni::JString>::newArray(__size);
|
|
278
278
|
for (size_t __i = 0; __i < __size; __i++) {
|
|
279
|
-
const auto& __element =
|
|
279
|
+
const auto& __element = __input[__i];
|
|
280
280
|
auto __elementJni = jni::make_jstring(__element);
|
|
281
281
|
__array->setElement(__i, *__elementJni);
|
|
282
282
|
}
|
|
283
283
|
return __array;
|
|
284
|
-
}(), [&]() {
|
|
285
|
-
size_t __size =
|
|
284
|
+
}(prices), [&](auto&& __input) {
|
|
285
|
+
size_t __size = __input.size();
|
|
286
286
|
jni::local_ref<jni::JArrayClass<jni::JString>> __array = jni::JArrayClass<jni::JString>::newArray(__size);
|
|
287
287
|
for (size_t __i = 0; __i < __size; __i++) {
|
|
288
|
-
const auto& __element =
|
|
288
|
+
const auto& __element = __input[__i];
|
|
289
289
|
auto __elementJni = jni::make_jstring(__element);
|
|
290
290
|
__array->setElement(__i, *__elementJni);
|
|
291
291
|
}
|
|
292
292
|
return __array;
|
|
293
|
-
}());
|
|
293
|
+
}(sizes));
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
} // namespace margelo::nitro::perpdepthbar
|
|
@@ -10,7 +10,6 @@ package com.margelo.nitro.perpdepthbar
|
|
|
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
|
|
14
13
|
|
|
15
14
|
|
|
16
15
|
/**
|
|
@@ -59,7 +58,6 @@ class Func_void_double_cxx: Func_void_double {
|
|
|
59
58
|
override fun invoke(rowIndex: Double): Unit
|
|
60
59
|
= invoke_cxx(rowIndex)
|
|
61
60
|
|
|
62
|
-
@FastNative
|
|
63
61
|
private external fun invoke_cxx(rowIndex: Double): Unit
|
|
64
62
|
}
|
|
65
63
|
|
|
@@ -10,6 +10,7 @@ package com.margelo.nitro.perpdepthbar
|
|
|
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.ArrayBuffer
|
|
14
15
|
import com.margelo.nitro.core.HybridObject
|
|
15
16
|
import com.margelo.nitro.views.HybridView
|
|
@@ -162,6 +163,7 @@ abstract class HybridPerpDepthBarsSpec: HybridView() {
|
|
|
162
163
|
@Keep
|
|
163
164
|
protected open class CxxPart(javaPart: HybridPerpDepthBarsSpec): HybridObject.CxxPart(javaPart) {
|
|
164
165
|
// C++ JHybridPerpDepthBarsSpec::CxxPart::initHybrid(...)
|
|
166
|
+
@FastNative
|
|
165
167
|
external override fun initHybrid(): HybridData
|
|
166
168
|
}
|
|
167
169
|
override fun createCxxPart(): CxxPart {
|
|
@@ -10,6 +10,7 @@ package com.margelo.nitro.perpdepthbar
|
|
|
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
|
|
|
@@ -89,6 +90,7 @@ abstract class HybridPerpSideRatioSpec: HybridView() {
|
|
|
89
90
|
@Keep
|
|
90
91
|
protected open class CxxPart(javaPart: HybridPerpSideRatioSpec): HybridObject.CxxPart(javaPart) {
|
|
91
92
|
// C++ JHybridPerpSideRatioSpec::CxxPart::initHybrid(...)
|
|
93
|
+
@FastNative
|
|
92
94
|
external override fun initHybrid(): HybridData
|
|
93
95
|
}
|
|
94
96
|
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
|
|
@@ -244,7 +244,7 @@ namespace margelo::nitro::perpdepthbar::views {
|
|
|
244
244
|
|
|
245
245
|
HybridPerpDepthBarsComponentDescriptor::HybridPerpDepthBarsComponentDescriptor(const react::ComponentDescriptorParameters& parameters)
|
|
246
246
|
: ConcreteComponentDescriptor(parameters,
|
|
247
|
-
react::RawPropsParser(
|
|
247
|
+
react::RawPropsParser()) {}
|
|
248
248
|
|
|
249
249
|
std::shared_ptr<const react::Props> HybridPerpDepthBarsComponentDescriptor::cloneProps(const react::PropsParserContext& context,
|
|
250
250
|
const std::shared_ptr<const react::Props>& props,
|
|
@@ -134,7 +134,7 @@ namespace margelo::nitro::perpdepthbar::views {
|
|
|
134
134
|
|
|
135
135
|
HybridPerpSideRatioComponentDescriptor::HybridPerpSideRatioComponentDescriptor(const react::ComponentDescriptorParameters& parameters)
|
|
136
136
|
: ConcreteComponentDescriptor(parameters,
|
|
137
|
-
react::RawPropsParser(
|
|
137
|
+
react::RawPropsParser()) {}
|
|
138
138
|
|
|
139
139
|
std::shared_ptr<const react::Props> HybridPerpSideRatioComponentDescriptor::cloneProps(const react::PropsParserContext& context,
|
|
140
140
|
const std::shared_ptr<const react::Props>& props,
|
|
@@ -133,56 +133,56 @@ namespace margelo::nitro::perpdepthbar {
|
|
|
133
133
|
std::vector<std::string> JHybridPerpDepthBarsSpec::getPrices() {
|
|
134
134
|
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JArrayClass<jni::JString>>()>("getPrices");
|
|
135
135
|
auto __result = method(_javaPart);
|
|
136
|
-
return [&]() {
|
|
137
|
-
size_t __size =
|
|
136
|
+
return [&](auto&& __input) {
|
|
137
|
+
size_t __size = __input->size();
|
|
138
138
|
std::vector<std::string> __vector;
|
|
139
139
|
__vector.reserve(__size);
|
|
140
140
|
for (size_t __i = 0; __i < __size; __i++) {
|
|
141
|
-
auto __element =
|
|
141
|
+
auto __element = __input->getElement(__i);
|
|
142
142
|
__vector.push_back(__element->toStdString());
|
|
143
143
|
}
|
|
144
144
|
return __vector;
|
|
145
|
-
}();
|
|
145
|
+
}(__result);
|
|
146
146
|
}
|
|
147
147
|
void JHybridPerpDepthBarsSpec::setPrices(const std::vector<std::string>& prices) {
|
|
148
148
|
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JArrayClass<jni::JString>> /* prices */)>("setPrices");
|
|
149
|
-
method(_javaPart, [&]() {
|
|
150
|
-
size_t __size =
|
|
149
|
+
method(_javaPart, [&](auto&& __input) {
|
|
150
|
+
size_t __size = __input.size();
|
|
151
151
|
jni::local_ref<jni::JArrayClass<jni::JString>> __array = jni::JArrayClass<jni::JString>::newArray(__size);
|
|
152
152
|
for (size_t __i = 0; __i < __size; __i++) {
|
|
153
|
-
const auto& __element =
|
|
153
|
+
const auto& __element = __input[__i];
|
|
154
154
|
auto __elementJni = jni::make_jstring(__element);
|
|
155
155
|
__array->setElement(__i, *__elementJni);
|
|
156
156
|
}
|
|
157
157
|
return __array;
|
|
158
|
-
}());
|
|
158
|
+
}(prices));
|
|
159
159
|
}
|
|
160
160
|
std::vector<std::string> JHybridPerpDepthBarsSpec::getSizes() {
|
|
161
161
|
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JArrayClass<jni::JString>>()>("getSizes");
|
|
162
162
|
auto __result = method(_javaPart);
|
|
163
|
-
return [&]() {
|
|
164
|
-
size_t __size =
|
|
163
|
+
return [&](auto&& __input) {
|
|
164
|
+
size_t __size = __input->size();
|
|
165
165
|
std::vector<std::string> __vector;
|
|
166
166
|
__vector.reserve(__size);
|
|
167
167
|
for (size_t __i = 0; __i < __size; __i++) {
|
|
168
|
-
auto __element =
|
|
168
|
+
auto __element = __input->getElement(__i);
|
|
169
169
|
__vector.push_back(__element->toStdString());
|
|
170
170
|
}
|
|
171
171
|
return __vector;
|
|
172
|
-
}();
|
|
172
|
+
}(__result);
|
|
173
173
|
}
|
|
174
174
|
void JHybridPerpDepthBarsSpec::setSizes(const std::vector<std::string>& sizes) {
|
|
175
175
|
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JArrayClass<jni::JString>> /* sizes */)>("setSizes");
|
|
176
|
-
method(_javaPart, [&]() {
|
|
177
|
-
size_t __size =
|
|
176
|
+
method(_javaPart, [&](auto&& __input) {
|
|
177
|
+
size_t __size = __input.size();
|
|
178
178
|
jni::local_ref<jni::JArrayClass<jni::JString>> __array = jni::JArrayClass<jni::JString>::newArray(__size);
|
|
179
179
|
for (size_t __i = 0; __i < __size; __i++) {
|
|
180
|
-
const auto& __element =
|
|
180
|
+
const auto& __element = __input[__i];
|
|
181
181
|
auto __elementJni = jni::make_jstring(__element);
|
|
182
182
|
__array->setElement(__i, *__elementJni);
|
|
183
183
|
}
|
|
184
184
|
return __array;
|
|
185
|
-
}());
|
|
185
|
+
}(sizes));
|
|
186
186
|
}
|
|
187
187
|
std::string JHybridPerpDepthBarsSpec::getPriceColor() {
|
|
188
188
|
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JString>()>("getPriceColor");
|
|
@@ -272,25 +272,25 @@ namespace margelo::nitro::perpdepthbar {
|
|
|
272
272
|
}
|
|
273
273
|
void JHybridPerpDepthBarsSpec::setText(const std::vector<std::string>& prices, const std::vector<std::string>& sizes) {
|
|
274
274
|
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JArrayClass<jni::JString>> /* prices */, jni::alias_ref<jni::JArrayClass<jni::JString>> /* sizes */)>("setText");
|
|
275
|
-
method(_javaPart, [&]() {
|
|
276
|
-
size_t __size =
|
|
275
|
+
method(_javaPart, [&](auto&& __input) {
|
|
276
|
+
size_t __size = __input.size();
|
|
277
277
|
jni::local_ref<jni::JArrayClass<jni::JString>> __array = jni::JArrayClass<jni::JString>::newArray(__size);
|
|
278
278
|
for (size_t __i = 0; __i < __size; __i++) {
|
|
279
|
-
const auto& __element =
|
|
279
|
+
const auto& __element = __input[__i];
|
|
280
280
|
auto __elementJni = jni::make_jstring(__element);
|
|
281
281
|
__array->setElement(__i, *__elementJni);
|
|
282
282
|
}
|
|
283
283
|
return __array;
|
|
284
|
-
}(), [&]() {
|
|
285
|
-
size_t __size =
|
|
284
|
+
}(prices), [&](auto&& __input) {
|
|
285
|
+
size_t __size = __input.size();
|
|
286
286
|
jni::local_ref<jni::JArrayClass<jni::JString>> __array = jni::JArrayClass<jni::JString>::newArray(__size);
|
|
287
287
|
for (size_t __i = 0; __i < __size; __i++) {
|
|
288
|
-
const auto& __element =
|
|
288
|
+
const auto& __element = __input[__i];
|
|
289
289
|
auto __elementJni = jni::make_jstring(__element);
|
|
290
290
|
__array->setElement(__i, *__elementJni);
|
|
291
291
|
}
|
|
292
292
|
return __array;
|
|
293
|
-
}());
|
|
293
|
+
}(sizes));
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
} // namespace margelo::nitro::perpdepthbar
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/perpdepthbar/Func_void_double.kt
CHANGED
|
@@ -10,7 +10,6 @@ package com.margelo.nitro.perpdepthbar
|
|
|
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
|
|
14
13
|
|
|
15
14
|
|
|
16
15
|
/**
|
|
@@ -59,7 +58,6 @@ class Func_void_double_cxx: Func_void_double {
|
|
|
59
58
|
override fun invoke(rowIndex: Double): Unit
|
|
60
59
|
= invoke_cxx(rowIndex)
|
|
61
60
|
|
|
62
|
-
@FastNative
|
|
63
61
|
private external fun invoke_cxx(rowIndex: Double): Unit
|
|
64
62
|
}
|
|
65
63
|
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/perpdepthbar/HybridPerpDepthBarsSpec.kt
CHANGED
|
@@ -10,6 +10,7 @@ package com.margelo.nitro.perpdepthbar
|
|
|
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.ArrayBuffer
|
|
14
15
|
import com.margelo.nitro.core.HybridObject
|
|
15
16
|
import com.margelo.nitro.views.HybridView
|
|
@@ -162,6 +163,7 @@ abstract class HybridPerpDepthBarsSpec: HybridView() {
|
|
|
162
163
|
@Keep
|
|
163
164
|
protected open class CxxPart(javaPart: HybridPerpDepthBarsSpec): HybridObject.CxxPart(javaPart) {
|
|
164
165
|
// C++ JHybridPerpDepthBarsSpec::CxxPart::initHybrid(...)
|
|
166
|
+
@FastNative
|
|
165
167
|
external override fun initHybrid(): HybridData
|
|
166
168
|
}
|
|
167
169
|
override fun createCxxPart(): CxxPart {
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/perpdepthbar/HybridPerpSideRatioSpec.kt
CHANGED
|
@@ -10,6 +10,7 @@ package com.margelo.nitro.perpdepthbar
|
|
|
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
|
|
|
@@ -89,6 +90,7 @@ abstract class HybridPerpSideRatioSpec: HybridView() {
|
|
|
89
90
|
@Keep
|
|
90
91
|
protected open class CxxPart(javaPart: HybridPerpSideRatioSpec): HybridObject.CxxPart(javaPart) {
|
|
91
92
|
// C++ JHybridPerpSideRatioSpec::CxxPart::initHybrid(...)
|
|
93
|
+
@FastNative
|
|
92
94
|
external override fun initHybrid(): HybridData
|
|
93
95
|
}
|
|
94
96
|
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
|
|
@@ -244,7 +244,7 @@ namespace margelo::nitro::perpdepthbar::views {
|
|
|
244
244
|
|
|
245
245
|
HybridPerpDepthBarsComponentDescriptor::HybridPerpDepthBarsComponentDescriptor(const react::ComponentDescriptorParameters& parameters)
|
|
246
246
|
: ConcreteComponentDescriptor(parameters,
|
|
247
|
-
react::RawPropsParser(
|
|
247
|
+
react::RawPropsParser()) {}
|
|
248
248
|
|
|
249
249
|
std::shared_ptr<const react::Props> HybridPerpDepthBarsComponentDescriptor::cloneProps(const react::PropsParserContext& context,
|
|
250
250
|
const std::shared_ptr<const react::Props>& props,
|
|
@@ -134,7 +134,7 @@ namespace margelo::nitro::perpdepthbar::views {
|
|
|
134
134
|
|
|
135
135
|
HybridPerpSideRatioComponentDescriptor::HybridPerpSideRatioComponentDescriptor(const react::ComponentDescriptorParameters& parameters)
|
|
136
136
|
: ConcreteComponentDescriptor(parameters,
|
|
137
|
-
react::RawPropsParser(
|
|
137
|
+
react::RawPropsParser()) {}
|
|
138
138
|
|
|
139
139
|
std::shared_ptr<const react::Props> HybridPerpSideRatioComponentDescriptor::cloneProps(const react::PropsParserContext& context,
|
|
140
140
|
const std::shared_ptr<const react::Props>& props,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/react-native-perp-depth-bar",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.87",
|
|
4
4
|
"description": "react-native-perp-depth-bar",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|
|
@@ -77,12 +77,12 @@
|
|
|
77
77
|
"eslint-plugin-prettier": "^5.5.4",
|
|
78
78
|
"jest": "^29.7.0",
|
|
79
79
|
"lefthook": "^2.0.3",
|
|
80
|
-
"nitrogen": "0.
|
|
80
|
+
"nitrogen": "0.36.5",
|
|
81
81
|
"prettier": "^2.8.8",
|
|
82
82
|
"react": "19.2.0",
|
|
83
83
|
"react-native": "patch:react-native@npm%3A0.83.0#~/.yarn/patches/react-native-npm-0.83.0-577d0f2d83.patch",
|
|
84
84
|
"react-native-builder-bob": "^0.40.13",
|
|
85
|
-
"react-native-nitro-modules": "0.
|
|
85
|
+
"react-native-nitro-modules": "0.36.5",
|
|
86
86
|
"release-it": "^19.0.4",
|
|
87
87
|
"turbo": "^2.5.6",
|
|
88
88
|
"typescript": "^5.9.2"
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"peerDependencies": {
|
|
91
91
|
"react": "*",
|
|
92
92
|
"react-native": "*",
|
|
93
|
-
"react-native-nitro-modules": "0.
|
|
93
|
+
"react-native-nitro-modules": "0.36.5"
|
|
94
94
|
},
|
|
95
95
|
"packageManager": "yarn@4.11.0",
|
|
96
96
|
"react-native-builder-bob": {
|