react-native-zano 0.2.3 → 0.2.5
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 +8 -0
- package/android/src/main/jniLibs/arm64-v8a/librnzano.so +0 -0
- package/android/src/main/jniLibs/armeabi-v7a/librnzano.so +0 -0
- package/android/src/main/jniLibs/x86/librnzano.so +0 -0
- package/android/src/main/jniLibs/x86_64/librnzano.so +0 -0
- package/ios/ZanoModule.mm +8 -8
- package/ios/ZanoModule.xcframework/ios-arm64/libzano-module.a +0 -0
- package/ios/ZanoModule.xcframework/ios-arm64_x86_64-simulator/libzano-module.a +0 -0
- package/lib/scripts/update-sources.d.ts +1 -1
- package/lib/scripts/update-sources.js +6 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.2.5 (2025-11-17)
|
|
6
|
+
|
|
7
|
+
- fixed: Show proper messages for C++ errors.
|
|
8
|
+
|
|
9
|
+
## 0.2.4 (2025-09-19)
|
|
10
|
+
|
|
11
|
+
- fixed: Re-publish with correctly-built binaries.
|
|
12
|
+
|
|
5
13
|
## 0.2.3 (2025-09-18)
|
|
6
14
|
|
|
7
15
|
- fixed: Fix `burnAsset` return value and types
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/ios/ZanoModule.mm
CHANGED
|
@@ -41,7 +41,7 @@ RCT_REMAP_METHOD(
|
|
|
41
41
|
resolve(
|
|
42
42
|
[NSString stringWithCString:out.c_str() encoding:NSUTF8StringEncoding]
|
|
43
43
|
);
|
|
44
|
-
} catch (std::exception e) {
|
|
44
|
+
} catch (std::exception &e) {
|
|
45
45
|
reject(
|
|
46
46
|
@"Error",
|
|
47
47
|
[NSString stringWithCString:e.what() encoding:NSUTF8StringEncoding],
|
|
@@ -68,16 +68,16 @@ RCT_REMAP_METHOD(
|
|
|
68
68
|
encoding:NSUTF8StringEncoding];
|
|
69
69
|
out[i] = name;
|
|
70
70
|
}
|
|
71
|
-
|
|
71
|
+
|
|
72
72
|
NSFileManager *fileManager = [NSFileManager defaultManager];
|
|
73
|
-
NSURL *docsDir = [fileManager URLForDirectory:NSDocumentDirectory
|
|
74
|
-
inDomain:NSUserDomainMask
|
|
75
|
-
appropriateForURL:nil
|
|
76
|
-
create:YES
|
|
73
|
+
NSURL *docsDir = [fileManager URLForDirectory:NSDocumentDirectory
|
|
74
|
+
inDomain:NSUserDomainMask
|
|
75
|
+
appropriateForURL:nil
|
|
76
|
+
create:YES
|
|
77
77
|
error:nil];
|
|
78
78
|
NSString *docsPath = [docsDir path];
|
|
79
|
-
|
|
80
|
-
return @{
|
|
79
|
+
|
|
80
|
+
return @{
|
|
81
81
|
@"methodNames": out,
|
|
82
82
|
@"documentDirectory": docsPath
|
|
83
83
|
};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export {};
|
|
@@ -26,14 +26,13 @@
|
|
|
26
26
|
// so it's simpler to pull that in from CocoaPods directly.
|
|
27
27
|
//
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.srcPath = void 0;
|
|
30
29
|
const promises_1 = require("fs/promises");
|
|
31
30
|
const os_1 = require("os");
|
|
32
31
|
const path_1 = require("path");
|
|
33
32
|
const android_tools_1 = require("./utils/android-tools");
|
|
34
33
|
const common_1 = require("./utils/common");
|
|
35
34
|
const ios_tools_1 = require("./utils/ios-tools");
|
|
36
|
-
|
|
35
|
+
const srcPath = (0, path_1.join)(__dirname, '../src');
|
|
37
36
|
async function main() {
|
|
38
37
|
await (0, promises_1.mkdir)(common_1.tmpPath, { recursive: true });
|
|
39
38
|
await downloadSources();
|
|
@@ -168,19 +167,19 @@ async function buildAndroidZano(platform) {
|
|
|
168
167
|
'-fPIC',
|
|
169
168
|
`-o${(0, path_1.join)(outPath, 'librnzano.so')}`,
|
|
170
169
|
...includePaths.map(path => `-I${(0, path_1.join)(common_1.tmpPath, path)}`),
|
|
171
|
-
...jniSources.map(source => (0, path_1.join)(
|
|
170
|
+
...jniSources.map(source => (0, path_1.join)(srcPath, source)),
|
|
172
171
|
...boostLibs.map(name => (0, path_1.join)(boostPath, `/lib/libboost_${name}.a`)),
|
|
173
172
|
...sslLibs.map(name => (0, path_1.join)(sslPath, `${arch}/lib/lib${name}.a`)),
|
|
174
173
|
...zanoLibs.map(name => (0, path_1.join)(zanoLibPath, `lib${name}.a`)),
|
|
175
174
|
'-llog',
|
|
176
|
-
`-Wl,--version-script=${(0, path_1.join)(
|
|
175
|
+
`-Wl,--version-script=${(0, path_1.join)(srcPath, 'jni/exports.map')}`,
|
|
177
176
|
'-Wl,--no-undefined',
|
|
178
177
|
'-Wl,-z,max-page-size=16384'
|
|
179
178
|
]);
|
|
180
179
|
}
|
|
181
180
|
/**
|
|
182
|
-
* Invokes CMake to build Zano,
|
|
183
|
-
*
|
|
181
|
+
* Invokes CMake to build Zano,
|
|
182
|
+
* then combines everything into a big .o file.
|
|
184
183
|
*/
|
|
185
184
|
async function buildIosZano(platform) {
|
|
186
185
|
const { sdk, arch, cmakePlatform } = platform;
|
|
@@ -220,7 +219,7 @@ async function buildIosZano(platform) {
|
|
|
220
219
|
...(useCxx ? cxxflags : cflags),
|
|
221
220
|
...sdkFlags,
|
|
222
221
|
`-o${object}`,
|
|
223
|
-
(0, path_1.join)(
|
|
222
|
+
(0, path_1.join)(srcPath, source)
|
|
224
223
|
]);
|
|
225
224
|
}
|
|
226
225
|
// Build Zano itself:
|