expo-device 5.9.0 → 5.9.2
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,14 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 5.9.2 — 2024-01-10
|
|
14
|
+
|
|
15
|
+
_This version does not introduce any user-facing changes._
|
|
16
|
+
|
|
17
|
+
## 5.9.1 — 2023-12-19
|
|
18
|
+
|
|
19
|
+
_This version does not introduce any user-facing changes._
|
|
20
|
+
|
|
13
21
|
## 5.9.0 — 2023-11-14
|
|
14
22
|
|
|
15
23
|
### 🛠 Breaking changes
|
package/android/build.gradle
CHANGED
|
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
|
|
|
3
3
|
apply plugin: 'maven-publish'
|
|
4
4
|
|
|
5
5
|
group = 'host.exp.exponent'
|
|
6
|
-
version = '5.9.
|
|
6
|
+
version = '5.9.2'
|
|
7
7
|
|
|
8
8
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
9
9
|
if (expoModulesCorePlugin.exists()) {
|
|
@@ -94,7 +94,7 @@ android {
|
|
|
94
94
|
namespace "expo.modules.device"
|
|
95
95
|
defaultConfig {
|
|
96
96
|
versionCode 12
|
|
97
|
-
versionName '5.9.
|
|
97
|
+
versionName '5.9.2'
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
|
|
@@ -25,7 +25,7 @@ class DeviceModule : Module() {
|
|
|
25
25
|
PHONE(1),
|
|
26
26
|
TABLET(2),
|
|
27
27
|
DESKTOP(3),
|
|
28
|
-
TV(4)
|
|
28
|
+
TV(4)
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
private val context: Context
|
|
@@ -58,10 +58,11 @@ class DeviceModule : Module() {
|
|
|
58
58
|
"osInternalBuildId" to Build.ID,
|
|
59
59
|
"osBuildFingerprint" to Build.FINGERPRINT,
|
|
60
60
|
"platformApiLevel" to Build.VERSION.SDK_INT,
|
|
61
|
-
"deviceName" to if (Build.VERSION.SDK_INT <= 31)
|
|
61
|
+
"deviceName" to if (Build.VERSION.SDK_INT <= 31) {
|
|
62
62
|
Settings.Secure.getString(context.contentResolver, "bluetooth_name")
|
|
63
|
-
else
|
|
63
|
+
} else {
|
|
64
64
|
Settings.Global.getString(context.contentResolver, Settings.Global.DEVICE_NAME)
|
|
65
|
+
}
|
|
65
66
|
)
|
|
66
67
|
}
|
|
67
68
|
|
package/expo-module.config.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-device",
|
|
3
|
-
"version": "5.9.
|
|
3
|
+
"version": "5.9.2",
|
|
4
4
|
"description": "A universal module that gets physical information about the device running the application",
|
|
5
5
|
"main": "build/Device.js",
|
|
6
6
|
"types": "build/Device.d.ts",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"expo": "*"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "ca014bf2516c7644ef303f4c21fdd68de4d99f76"
|
|
45
45
|
}
|