git ssb

1+

Daan Patchwork / manyverse



Commit 71be139f5504a8685bad3488e2a5110efbdc4a71

ux: connections tab shows whether we have internet conn

Andre Staltz committed on 8/22/2018, 7:55:58 PM
Parent: 143a081678c3e6d385aadc7e0fe9a1dcb717c417

Files changed

android/app/build.gradlechanged
android/app/src/main/java/com/mmmmm/MainApplication.javachanged
android/settings.gradlechanged
package-lock.jsonchanged
package.jsonchanged
src/app/drivers/network.tsadded
src/app/drivers/wifi.tsdeleted
src/app/index.tschanged
src/app/screens/central/connections-tab/index.tschanged
src/app/screens/central/connections-tab/model.tschanged
src/app/screens/central/connections-tab/view.tschanged
src/app/screens/central/index.tschanged
src/app/screens/central/model.tschanged
android/app/build.gradleView
@@ -177,8 +177,9 @@
177177 implementation project(':react-native-navigation')
178178 implementation project(':react-native-workers')
179179 implementation project(':react-native-android-local-notification')
180180 implementation project(':react-native-android-wifi')
181+ implementation project(':react-native-has-internet')
181182 implementation fileTree(dir: "libs", include: ["*.jar"])
182183 implementation("com.android.support:appcompat-v7:25.4.0") {
183184 force = true
184185 }
android/app/src/main/java/com/mmmmm/MainApplication.javaView
@@ -13,8 +13,9 @@
1313 import com.facebook.react.ReactPackage;
1414 import com.facebook.react.shell.MainReactPackage;
1515 import com.reactnativenavigation.NavigationApplication;
1616 import com.staltz.reactnativeandroidlocalnotification.NotificationPackage;
17+import com.staltz.reactnativehasinternet.HasInternetPackage;
1718 import com.devstepbcn.wifi.AndroidWifiPackage;
1819 import org.acra.*;
1920 import org.acra.annotation.*;
2021
@@ -41,8 +42,9 @@
4142 protected List<ReactPackage> getPackages() {
4243 // Add additional packages you require here
4344 // No need to add RnnPackage and MainReactPackage
4445 return Arrays.<ReactPackage>asList(new MainReactPackage(),
46+ new HasInternetPackage(),
4547 new AndroidWifiPackage(), new TcpSocketsModule(), new RNFSPackage(),
4648 new RandomBytesPackage(), new RNNodeJsMobilePackage(), new ReactNativeDialogsPackage(),
4749 new VectorIconsPackage(), new RNOSModule(), new NotificationPackage(),
4850 new WorkersPackage(new NotificationPackage(), new TcpSocketsModule(), new RNOSModule(), new RNFSPackage(),
android/settings.gradleView
@@ -20,6 +20,8 @@
2020 include ':react-native-android-local-notification'
2121 project(':react-native-android-local-notification').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-android-local-notification/android')
2222 include ':react-native-android-wifi'
2323 project(':react-native-android-wifi').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-android-wifi/android')
24+include ':react-native-has-internet'
25+project(':react-native-has-internet').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-has-internet/android')
2426
2527 include ':app'