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

Modernize SimpleNetworkDetector with updated Android network APIs #735

Open
orioonyx opened this issue Jan 9, 2025 · 0 comments · May be fixed by #736
Open

Modernize SimpleNetworkDetector with updated Android network APIs #735

orioonyx opened this issue Jan 9, 2025 · 0 comments · May be fixed by #736

Comments

@orioonyx
Copy link

orioonyx commented Jan 9, 2025

Description

The SimpleNetworkDetector class currently uses deprecated Android APIs:

  1. getActiveNetworkInfo() (deprecated in API 29).
  2. ConnectivityManager.TYPE_* constants (deprecated in API 28).

These deprecated APIs may cause compatibility issues with Android 10 (API 29) and above, and could lead to maintainability challenges as Android evolves.

Why This Is Important

  • Modernizing the implementation ensures compatibility with Android 10 and newer versions.
  • Reduces reliance on deprecated methods, making the codebase more maintainable and future-proof.
  • Aligns the project with modern Android development best practices, benefiting both maintainers and users.

Thank you for considering this issue, and I look forward to contributing to its resolution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant