Skip to content

Deprecated API usage updates - #958

Open
mdanylov-sigma wants to merge 1 commit into
masterfrom
feature/956-device-and-user-info-deprecated-API
Open

Deprecated API usage updates#958
mdanylov-sigma wants to merge 1 commit into
masterfrom
feature/956-device-and-user-info-deprecated-API

Conversation

@mdanylov-sigma

Copy link
Copy Markdown
Collaborator

#956

Summary

  • Updated location handling to respect coarse vs fine permissions:

    • GPS provider is used only with ACCESS_FINE_LOCATION.
    • Network provider is used with coarse or fine location permission.
  • Updated screen size detection:

    • Uses WindowMetrics on API 30+.
    • Keeps legacy Display fallback for older Android versions.
  • Updated network connectivity detection:

    • Uses NetworkCapabilities on API 23+.
    • Requires both NET_CAPABILITY_INTERNET and NET_CAPABILITY_VALIDATED.
    • Keeps legacy NetworkInfo fallback for older Android versions.
  • Added/updated unit tests for location permission handling, modern network detection, unvalidated network behavior, and modern screen metrics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant