@onekeyfe/react-native-native-logger 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.
|
@@ -68,16 +68,16 @@ namespace margelo::nitro::nativelogger {
|
|
|
68
68
|
auto __promise = Promise<std::vector<std::string>>::create();
|
|
69
69
|
__result->cthis()->addOnResolvedListener([=](const jni::alias_ref<jni::JObject>& __boxedResult) {
|
|
70
70
|
auto __result = jni::static_ref_cast<jni::JArrayClass<jni::JString>>(__boxedResult);
|
|
71
|
-
__promise->resolve([&]() {
|
|
72
|
-
size_t __size =
|
|
71
|
+
__promise->resolve([&](auto&& __input) {
|
|
72
|
+
size_t __size = __input->size();
|
|
73
73
|
std::vector<std::string> __vector;
|
|
74
74
|
__vector.reserve(__size);
|
|
75
75
|
for (size_t __i = 0; __i < __size; __i++) {
|
|
76
|
-
auto __element =
|
|
76
|
+
auto __element = __input->getElement(__i);
|
|
77
77
|
__vector.push_back(__element->toStdString());
|
|
78
78
|
}
|
|
79
79
|
return __vector;
|
|
80
|
-
}());
|
|
80
|
+
}(__result));
|
|
81
81
|
});
|
|
82
82
|
__result->cthis()->addOnRejectedListener([=](const jni::alias_ref<jni::JThrowable>& __throwable) {
|
|
83
83
|
jni::JniException __jniError(__throwable);
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelogger/HybridNativeLoggerSpec.kt
CHANGED
|
@@ -10,6 +10,7 @@ package com.margelo.nitro.nativelogger
|
|
|
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.Promise
|
|
14
15
|
import com.margelo.nitro.core.HybridObject
|
|
15
16
|
|
|
@@ -59,6 +60,7 @@ abstract class HybridNativeLoggerSpec: HybridObject() {
|
|
|
59
60
|
@Keep
|
|
60
61
|
protected open class CxxPart(javaPart: HybridNativeLoggerSpec): HybridObject.CxxPart(javaPart) {
|
|
61
62
|
// C++ JHybridNativeLoggerSpec::CxxPart::initHybrid(...)
|
|
63
|
+
@FastNative
|
|
62
64
|
external override fun initHybrid(): HybridData
|
|
63
65
|
}
|
|
64
66
|
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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/react-native-native-logger",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.87",
|
|
4
4
|
"description": "react-native-native-logger",
|
|
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
|
"react-native-builder-bob": {
|
|
97
97
|
"source": "src",
|