expo-network 7.0.3 → 7.0.4

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
@@ -10,6 +10,12 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 7.0.4 — 2024-12-16
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - On `Android`, Prevent crash from the `networkCallback` calling `fetchNetworkState`. ([#33563](https://github.com/expo/expo/pull/33563) by [@alanjhughes](https://github.com/alanjhughes))
18
+
13
19
  ## 7.0.3 — 2024-12-02
14
20
 
15
21
  ### 🐛 Bug fixes
@@ -1,7 +1,7 @@
1
1
  apply plugin: 'com.android.library'
2
2
 
3
3
  group = 'host.exp.exponent'
4
- version = '7.0.3'
4
+ version = '7.0.4'
5
5
 
6
6
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
7
7
  apply from: expoModulesCorePlugin
@@ -14,6 +14,6 @@ android {
14
14
  namespace "expo.modules.network"
15
15
  defaultConfig {
16
16
  versionCode 11
17
- versionName '7.0.3'
17
+ versionName '7.0.4'
18
18
  }
19
19
  }
@@ -123,7 +123,12 @@ class NetworkModule : Module() {
123
123
  return result
124
124
  }
125
125
  } catch (e: Exception) {
126
- throw NetworkAccessException(e)
126
+ result.apply {
127
+ putString("type", NetworkStateType.UNKNOWN.value)
128
+ putBoolean("isInternetReachable", false)
129
+ putBoolean("isConnected", false)
130
+ }
131
+ return result
127
132
  }
128
133
  }
129
134
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-network",
3
- "version": "7.0.3",
3
+ "version": "7.0.4",
4
4
  "description": "Provides useful information about the device's network such as its IP address, MAC address, and airplane mode status",
5
5
  "main": "build/Network.js",
6
6
  "types": "build/Network.d.ts",
@@ -37,5 +37,5 @@
37
37
  "expo": "*",
38
38
  "react": "*"
39
39
  },
40
- "gitHead": "bc1fea6bcab47889e2922d543920397691b200f3"
40
+ "gitHead": "637acf537a92ac6209bfced71e097ba736b43fef"
41
41
  }