Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ConnectivityManager instead of ConnectivityManagerCompat #509

Merged
merged 7 commits into from
Oct 22, 2021

Commits on Oct 22, 2021

  1. Use ConnectivityManager instead of ConnectivityManagerCompat

    ReactNativeNetInfo_minSdkVersion=16
    
    https://developer.android.com/training/monitoring-device-state/connectivity-status-type#java
    
    Note: If your app needs to support Android 4.0 (API level 15) and lower, use ConnectivityManagerCompat.isActiveNetworkMetered instead of ConnectivityManager.isActiveNetworkMetered().
    Willham12 committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    c07c6ad View commit details
    Browse the repository at this point in the history
  2. Update build.gradle

    Willham12 committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    57c8767 View commit details
    Browse the repository at this point in the history
  3. Update README.md

    Willham12 committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    fd27705 View commit details
    Browse the repository at this point in the history
  4. Update build.gradle

    Willham12 committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    b26f3a2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c50198a View commit details
    Browse the repository at this point in the history
  6. Update android/build.gradle

    no
    
    Co-authored-by: Mike Hardy <github@mikehardy.net>
    Willham12 and mikehardy committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    a9b0ffa View commit details
    Browse the repository at this point in the history
  7. Update android/src/main/java/com/reactnativecommunity/netinfo/Connect…

    …ivityReceiver.java
    
    
    Check for null connectivity manager before dereferencing
    mikehardy committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    b560c15 View commit details
    Browse the repository at this point in the history