react-native-zano 0.2.4 → 0.2.6

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 CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.2.6 (2026-01-29)
6
+
7
+ - changed: Update `zano_native_lib` to `239d4a39`
8
+
9
+ ## 0.2.5 (2025-11-17)
10
+
11
+ - fixed: Show proper messages for C++ errors.
12
+
5
13
  ## 0.2.4 (2025-09-19)
6
14
 
7
15
  - fixed: Re-publish with correctly-built binaries.
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
  };
@@ -8,32 +8,32 @@
8
8
  <key>BinaryPath</key>
9
9
  <string>libzano-module.a</string>
10
10
  <key>LibraryIdentifier</key>
11
- <string>ios-arm64_x86_64-simulator</string>
11
+ <string>ios-arm64</string>
12
12
  <key>LibraryPath</key>
13
13
  <string>libzano-module.a</string>
14
14
  <key>SupportedArchitectures</key>
15
15
  <array>
16
16
  <string>arm64</string>
17
- <string>x86_64</string>
18
17
  </array>
19
18
  <key>SupportedPlatform</key>
20
19
  <string>ios</string>
21
- <key>SupportedPlatformVariant</key>
22
- <string>simulator</string>
23
20
  </dict>
24
21
  <dict>
25
22
  <key>BinaryPath</key>
26
23
  <string>libzano-module.a</string>
27
24
  <key>LibraryIdentifier</key>
28
- <string>ios-arm64</string>
25
+ <string>ios-arm64_x86_64-simulator</string>
29
26
  <key>LibraryPath</key>
30
27
  <string>libzano-module.a</string>
31
28
  <key>SupportedArchitectures</key>
32
29
  <array>
33
30
  <string>arm64</string>
31
+ <string>x86_64</string>
34
32
  </array>
35
33
  <key>SupportedPlatform</key>
36
34
  <string>ios</string>
35
+ <key>SupportedPlatformVariant</key>
36
+ <string>simulator</string>
37
37
  </dict>
38
38
  </array>
39
39
  <key>CFBundlePackageType</key>
@@ -48,7 +48,7 @@ async function main() {
48
48
  await packageIosZano();
49
49
  }
50
50
  async function downloadSources() {
51
- await (0, common_1.getRepo)('zano_native_lib', 'https://github.com/hyle-team/zano_native_lib.git', '391a965d1d609f917cc97908b9d354a7f54e0258');
51
+ await (0, common_1.getRepo)('zano_native_lib', 'https://github.com/hyle-team/zano_native_lib.git', '239d4a391a92e6f1816540084b725499d9f4accc');
52
52
  await (0, common_1.getRepo)('Boost-for-Android', 'https://github.com/moritz-wundke/Boost-for-Android.git', '51924ec5533a4fefb5edf99feaeded794c06a4fb');
53
53
  // Rename the compress function in RIPEMD160.c,
54
54
  // since that conflicts with Zlib:
@@ -253,7 +253,9 @@ async function buildIosZano(platform) {
253
253
  '--config',
254
254
  'Release',
255
255
  '--target',
256
- 'install'
256
+ 'install',
257
+ '--',
258
+ 'CODE_SIGNING_ALLOWED=NO'
257
259
  ]);
258
260
  // Link everything together into a single giant .o file:
259
261
  console.log(`Linking zano-module.o for ${sdk} ${arch}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-zano",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "React Native bindings for the Zano blockchain",
5
5
  "homepage": "https://github.com/EdgeApp/react-native-zano",
6
6
  "repository": {