Commit 1ec397f3 authored by Mehdi Achour's avatar Mehdi Achour

style: reformat files

parent ed5bc527
...@@ -13,8 +13,7 @@ import java.util.List; ...@@ -13,8 +13,7 @@ import java.util.List;
public class RNDeviceInfo implements ReactPackage { public class RNDeviceInfo implements ReactPackage {
@Override @Override
public List<NativeModule> createNativeModules( public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
ReactApplicationContext reactContext) {
List<NativeModule> modules = new ArrayList<>(); List<NativeModule> modules = new ArrayList<>();
modules.add(new RNDeviceModule(reactContext)); modules.add(new RNDeviceModule(reactContext));
......
...@@ -51,7 +51,7 @@ public class RNDeviceModule extends ReactContextBaseJavaModule { ...@@ -51,7 +51,7 @@ public class RNDeviceModule extends ReactContextBaseJavaModule {
} }
private WifiInfo getWifiInfo() { private WifiInfo getWifiInfo() {
if ( this.wifiInfo == null ) { if (this.wifiInfo == null) {
WifiManager manager = (WifiManager) reactContext.getApplicationContext().getSystemService(Context.WIFI_SERVICE); WifiManager manager = (WifiManager) reactContext.getApplicationContext().getSystemService(Context.WIFI_SERVICE);
this.wifiInfo = manager.getConnectionInfo(); this.wifiInfo = manager.getConnectionInfo();
} }
...@@ -135,7 +135,8 @@ public class RNDeviceModule extends ReactContextBaseJavaModule { ...@@ -135,7 +135,8 @@ public class RNDeviceModule extends ReactContextBaseJavaModule {
} }
@Override @Override
public @Nullable Map<String, Object> getConstants() { public @Nullable
Map<String, Object> getConstants() {
HashMap<String, Object> constants = new HashMap<String, Object>(); HashMap<String, Object> constants = new HashMap<String, Object>();
PackageManager packageManager = this.reactContext.getPackageManager(); PackageManager packageManager = this.reactContext.getPackageManager();
...@@ -175,7 +176,6 @@ public class RNDeviceModule extends ReactContextBaseJavaModule { ...@@ -175,7 +176,6 @@ public class RNDeviceModule extends ReactContextBaseJavaModule {
} }
try { try {
if (Class.forName("com.google.android.gms.iid.InstanceID") != null) { if (Class.forName("com.google.android.gms.iid.InstanceID") != null) {
constants.put("instanceId", com.google.android.gms.iid.InstanceID.getInstance(this.reactContext).getId()); constants.put("instanceId", com.google.android.gms.iid.InstanceID.getInstance(this.reactContext).getId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment