This android librray checks whether the device has the active internet connection or not. Based on the result it shows snackbar in the bottom of the app.
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.hashimshafiq:NetworkSenseAndroidLib:v0.0.1'
}
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.hashimshafiq</groupId>
<artifactId>NetworkSenseAndroidLib</artifactId>
<version>v0.0.1</version>
</dependency>