File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
device/android/src/main/java/com/capacitorjs/plugins/device Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public String getPlatform() {
2929 }
3030
3131 public String getUuid () {
32- return Settings .Secure .getString (this .context .getContentResolver (), android . provider . Settings .Secure .ANDROID_ID );
32+ return Settings .Secure .getString (this .context .getContentResolver (), Settings .Secure .ANDROID_ID );
3333 }
3434
3535 public float getBatteryLevel () {
@@ -59,7 +59,7 @@ public boolean isCharging() {
5959 }
6060
6161 public boolean isVirtual () {
62- return android . os . Build .FINGERPRINT .contains ("generic" ) || android . os . Build .PRODUCT .contains ("sdk" );
62+ return Build .FINGERPRINT .contains ("generic" ) || Build .PRODUCT .contains ("sdk" );
6363 }
6464
6565 public String getName () {
@@ -85,7 +85,7 @@ public String getWebViewVersion() {
8585 return info .versionName ;
8686 }
8787
88- return android . os . Build .VERSION .RELEASE ;
88+ return Build .VERSION .RELEASE ;
8989 }
9090
9191 @ SuppressWarnings ("deprecation" )
Original file line number Diff line number Diff line change @@ -32,12 +32,12 @@ public void getInfo(PluginCall call) {
3232 JSObject r = new JSObject ();
3333
3434 r .put ("memUsed" , implementation .getMemUsed ());
35- r .put ("model" , android . os . Build .MODEL );
35+ r .put ("model" , Build .MODEL );
3636 r .put ("operatingSystem" , "android" );
37- r .put ("osVersion" , android . os . Build .VERSION .RELEASE );
37+ r .put ("osVersion" , Build .VERSION .RELEASE );
3838 r .put ("androidSDKVersion" , Build .VERSION .SDK_INT );
3939 r .put ("platform" , implementation .getPlatform ());
40- r .put ("manufacturer" , android . os . Build .MANUFACTURER );
40+ r .put ("manufacturer" , Build .MANUFACTURER );
4141 r .put ("isVirtual" , implementation .isVirtual ());
4242 r .put ("name" , implementation .getName ());
4343 r .put ("webViewVersion" , implementation .getWebViewVersion ());
You can’t perform that action at this time.
0 commit comments