@capacitor/device 7.0.4 → 7.0.5-dev-2501-20260319T170552.0
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.
|
@@ -29,7 +29,7 @@ public class Device {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
public String getUuid() {
|
|
32
|
-
return Settings.Secure.getString(this.context.getContentResolver(),
|
|
32
|
+
return Settings.Secure.getString(this.context.getContentResolver(), Settings.Secure.ANDROID_ID);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
public float getBatteryLevel() {
|
|
@@ -59,7 +59,7 @@ public class Device {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
public boolean isVirtual() {
|
|
62
|
-
return
|
|
62
|
+
return Build.FINGERPRINT.contains("generic") || Build.PRODUCT.contains("sdk");
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
public String getName() {
|
|
@@ -85,7 +85,7 @@ public class Device {
|
|
|
85
85
|
return info.versionName;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
return
|
|
88
|
+
return Build.VERSION.RELEASE;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
@SuppressWarnings("deprecation")
|
|
@@ -32,12 +32,12 @@ public class DevicePlugin extends Plugin {
|
|
|
32
32
|
JSObject r = new JSObject();
|
|
33
33
|
|
|
34
34
|
r.put("memUsed", implementation.getMemUsed());
|
|
35
|
-
r.put("model",
|
|
35
|
+
r.put("model", Build.MODEL);
|
|
36
36
|
r.put("operatingSystem", "android");
|
|
37
|
-
r.put("osVersion",
|
|
37
|
+
r.put("osVersion", Build.VERSION.RELEASE);
|
|
38
38
|
r.put("androidSDKVersion", Build.VERSION.SDK_INT);
|
|
39
39
|
r.put("platform", implementation.getPlatform());
|
|
40
|
-
r.put("manufacturer",
|
|
40
|
+
r.put("manufacturer", Build.MANUFACTURER);
|
|
41
41
|
r.put("isVirtual", implementation.isVirtual());
|
|
42
42
|
r.put("name", implementation.getName());
|
|
43
43
|
r.put("webViewVersion", implementation.getWebViewVersion());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor/device",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.5-dev-2501-20260319T170552.0",
|
|
4
4
|
"description": "The Device API exposes internal information about the device, such as the model and operating system version, along with user information such as unique ids.",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -84,6 +84,5 @@
|
|
|
84
84
|
},
|
|
85
85
|
"publishConfig": {
|
|
86
86
|
"access": "public"
|
|
87
|
-
}
|
|
88
|
-
"gitHead": "8b8d7e5bc406a4ac00545131dcf4287a7964f208"
|
|
87
|
+
}
|
|
89
88
|
}
|