@onekeyfe/react-native-network-info 6.7.0-13 → 6.7.0-15

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/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @onekeyfe/react-native-network-info
2
2
 
3
+ See the [behavioral contract](docs/SPEC.md) for platform support and validation limits.
4
+
3
5
  Native network information queries for OneKey on iOS and Android. The
4
6
  TurboModule exposes device network addresses and Wi-Fi-related values; it does
5
7
  not initiate a connection or monitor reachability continuously.
package/ios/getgateway.c CHANGED
@@ -19,6 +19,10 @@
19
19
 
20
20
  #include <net/if.h>
21
21
 
22
+ // Catalyst provides the system route structures; iOS needs the definitions below.
23
+ #if TARGET_OS_MACCATALYST
24
+ #include <net/route.h>
25
+ #else
22
26
  // Inline route.h definitions (not available in iOS SDK)
23
27
  #define RTF_GATEWAY 0x2
24
28
  #define NET_RT_FLAGS 2
@@ -54,6 +58,7 @@ struct rt_msghdr {
54
58
  u_long rmx_filler[4];
55
59
  } rtm_rmx;
56
60
  };
61
+ #endif
57
62
  #include <string.h>
58
63
 
59
64
  #define CTL_NET 4 /* network, see socket.h */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-network-info",
3
- "version": "6.7.0-13",
3
+ "version": "6.7.0-15",
4
4
  "description": "react-native-network-info",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",