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

style: reformat files

parent ed5bc527
......@@ -13,8 +13,7 @@ import java.util.List;
public class RNDeviceInfo implements ReactPackage {
@Override
public List<NativeModule> createNativeModules(
ReactApplicationContext reactContext) {
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
List<NativeModule> modules = new ArrayList<>();
modules.add(new RNDeviceModule(reactContext));
......
......@@ -51,7 +51,7 @@ public class RNDeviceModule extends ReactContextBaseJavaModule {
}
private WifiInfo getWifiInfo() {
if ( this.wifiInfo == null ) {
if (this.wifiInfo == null) {
WifiManager manager = (WifiManager) reactContext.getApplicationContext().getSystemService(Context.WIFI_SERVICE);
this.wifiInfo = manager.getConnectionInfo();
}
......@@ -135,7 +135,8 @@ public class RNDeviceModule extends ReactContextBaseJavaModule {
}
@Override
public @Nullable Map<String, Object> getConstants() {
public @Nullable
Map<String, Object> getConstants() {
HashMap<String, Object> constants = new HashMap<String, Object>();
PackageManager packageManager = this.reactContext.getPackageManager();
......@@ -175,7 +176,6 @@ public class RNDeviceModule extends ReactContextBaseJavaModule {
}
try {
if (Class.forName("com.google.android.gms.iid.InstanceID") != null) {
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