@onekeyfe/react-native-zip-archive 3.0.86 → 3.0.88
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++/JHybridReactNativeZipArchiveSpec.cpp +4 -4
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativeziparchive/HybridReactNativeZipArchiveSpec.kt +2 -0
- package/nitrogen/generated/ios/ReactNativeZipArchive+autolinking.rb +2 -0
- package/package.json +4 -4
|
@@ -113,16 +113,16 @@ namespace margelo::nitro::reactnativeziparchive {
|
|
|
113
113
|
}
|
|
114
114
|
std::shared_ptr<Promise<std::string>> JHybridReactNativeZipArchiveSpec::zipFiles(const std::vector<std::string>& files, const std::string& to) {
|
|
115
115
|
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JPromise::javaobject>(jni::alias_ref<jni::JArrayClass<jni::JString>> /* files */, jni::alias_ref<jni::JString> /* to */)>("zipFiles");
|
|
116
|
-
auto __result = method(_javaPart, [&]() {
|
|
117
|
-
size_t __size =
|
|
116
|
+
auto __result = method(_javaPart, [&](auto&& __input) {
|
|
117
|
+
size_t __size = __input.size();
|
|
118
118
|
jni::local_ref<jni::JArrayClass<jni::JString>> __array = jni::JArrayClass<jni::JString>::newArray(__size);
|
|
119
119
|
for (size_t __i = 0; __i < __size; __i++) {
|
|
120
|
-
const auto& __element =
|
|
120
|
+
const auto& __element = __input[__i];
|
|
121
121
|
auto __elementJni = jni::make_jstring(__element);
|
|
122
122
|
__array->setElement(__i, *__elementJni);
|
|
123
123
|
}
|
|
124
124
|
return __array;
|
|
125
|
-
}(), jni::make_jstring(to));
|
|
125
|
+
}(files), jni::make_jstring(to));
|
|
126
126
|
return [&]() {
|
|
127
127
|
auto __promise = Promise<std::string>::create();
|
|
128
128
|
__result->cthis()->addOnResolvedListener([=](const jni::alias_ref<jni::JObject>& __boxedResult) {
|
|
@@ -10,6 +10,7 @@ package com.margelo.nitro.reactnativeziparchive
|
|
|
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
|
|
|
@@ -63,6 +64,7 @@ abstract class HybridReactNativeZipArchiveSpec: HybridObject() {
|
|
|
63
64
|
@Keep
|
|
64
65
|
protected open class CxxPart(javaPart: HybridReactNativeZipArchiveSpec): HybridObject.CxxPart(javaPart) {
|
|
65
66
|
// C++ JHybridReactNativeZipArchiveSpec::CxxPart::initHybrid(...)
|
|
67
|
+
@FastNative
|
|
66
68
|
external override fun initHybrid(): HybridData
|
|
67
69
|
}
|
|
68
70
|
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-zip-archive",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.88",
|
|
4
4
|
"description": "react-native-zip-archive Nitro HybridObject for OneKey",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|
|
@@ -59,15 +59,15 @@
|
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"react": "*",
|
|
61
61
|
"react-native": "*",
|
|
62
|
-
"react-native-nitro-modules": "0.
|
|
62
|
+
"react-native-nitro-modules": "0.36.5"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@react-native/babel-preset": "0.83.0",
|
|
66
|
-
"nitrogen": "0.
|
|
66
|
+
"nitrogen": "0.36.5",
|
|
67
67
|
"react": "19.2.0",
|
|
68
68
|
"react-native": "patch:react-native@npm%3A0.83.0#~/.yarn/patches/react-native-npm-0.83.0-577d0f2d83.patch",
|
|
69
69
|
"react-native-builder-bob": "^0.40.17",
|
|
70
|
-
"react-native-nitro-modules": "0.
|
|
70
|
+
"react-native-nitro-modules": "0.36.5",
|
|
71
71
|
"typescript": "^5.9.2"
|
|
72
72
|
},
|
|
73
73
|
"react-native-builder-bob": {
|