@capgo/capacitor-device-info 8.0.0 → 8.0.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.
|
@@ -58,7 +58,7 @@ public class DeviceInfo {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
public String getPluginVersion() {
|
|
61
|
-
return "8.0.
|
|
61
|
+
return "8.0.1";
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
private JSObject getCpuInfo() {
|
|
@@ -121,7 +121,7 @@ public class DeviceInfo {
|
|
|
121
121
|
private JSObject getStorageInfo(Context context) {
|
|
122
122
|
JSObject storage = new JSObject();
|
|
123
123
|
File filesDir = context.getFilesDir();
|
|
124
|
-
File target = filesDir != null ? filesDir : context.
|
|
124
|
+
File target = filesDir != null ? filesDir : new File(context.getApplicationInfo().dataDir);
|
|
125
125
|
StatFs statFs = new StatFs(target.getAbsolutePath());
|
|
126
126
|
long totalBytes = statFs.getTotalBytes();
|
|
127
127
|
long freeBytes = statFs.getAvailableBytes();
|
package/package.json
CHANGED