@magicred-1/react-native-lxmf 0.2.25 → 0.2.27

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.
@@ -80,7 +80,7 @@ export interface UseLxmfOptions {
80
80
  mode?: LxmfNodeMode;
81
81
  /** One or more TCP interfaces to connect to (required for Reticulum mode). */
82
82
  tcpInterfaces?: TcpInterface[];
83
- /** Announce interval in ms. Default: 5000 */
83
+ /** Announce interval in ms. Default: 60000 for BLE modes, 5000 for TCP-only. Rust enforces 60s minimum for BLE. */
84
84
  announceIntervalMs?: number;
85
85
  /** BLE MTU hint. Default: 255 */
86
86
  bleMtuHint?: number;
package/build/useLxmf.js CHANGED
@@ -128,7 +128,9 @@ function useLxmf(options = {}) {
128
128
  }
129
129
  const mode = overrides?.mode ?? options.mode ?? LxmfNodeMode.BleOnly;
130
130
  const tcpInterfaces = overrides?.tcpInterfaces ?? options.tcpInterfaces ?? [];
131
- const announceMs = options.announceIntervalMs ?? 5000;
131
+ const BLE_MODES = [LxmfNodeMode.BleOnly, LxmfNodeMode.ReticulumAndBle];
132
+ const defaultAnnounceMs = BLE_MODES.includes(mode) ? 60000 : 5000;
133
+ const announceMs = options.announceIntervalMs ?? defaultAnnounceMs;
132
134
  const bleMtu = options.bleMtuHint ?? 255;
133
135
  const displayName = overrides?.displayName ?? options.displayName ?? '';
134
136
  const isBeacon = overrides?.isBeacon ?? options.isBeacon ?? false;
@@ -8,32 +8,32 @@
8
8
  <key>BinaryPath</key>
9
9
  <string>liblxmf_rn.a</string>
10
10
  <key>LibraryIdentifier</key>
11
- <string>ios-arm64</string>
11
+ <string>ios-arm64_x86_64-simulator</string>
12
12
  <key>LibraryPath</key>
13
13
  <string>liblxmf_rn.a</string>
14
14
  <key>SupportedArchitectures</key>
15
15
  <array>
16
16
  <string>arm64</string>
17
+ <string>x86_64</string>
17
18
  </array>
18
19
  <key>SupportedPlatform</key>
19
20
  <string>ios</string>
21
+ <key>SupportedPlatformVariant</key>
22
+ <string>simulator</string>
20
23
  </dict>
21
24
  <dict>
22
25
  <key>BinaryPath</key>
23
26
  <string>liblxmf_rn.a</string>
24
27
  <key>LibraryIdentifier</key>
25
- <string>ios-arm64_x86_64-simulator</string>
28
+ <string>ios-arm64</string>
26
29
  <key>LibraryPath</key>
27
30
  <string>liblxmf_rn.a</string>
28
31
  <key>SupportedArchitectures</key>
29
32
  <array>
30
33
  <string>arm64</string>
31
- <string>x86_64</string>
32
34
  </array>
33
35
  <key>SupportedPlatform</key>
34
36
  <string>ios</string>
35
- <key>SupportedPlatformVariant</key>
36
- <string>simulator</string>
37
37
  </dict>
38
38
  </array>
39
39
  <key>CFBundlePackageType</key>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magicred-1/react-native-lxmf",
3
- "version": "0.2.25",
3
+ "version": "0.2.27",
4
4
  "description": "LXMF Reticulum mesh networking for React Native + Expo",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",