Skip to content

Conversation

@Youssefmb
Copy link

Summary
This PR updates the Android implementation to replace deprecated android.support.* imports with their androidx.* equivalents. This ensures compatibility with modern React Native projects, which use AndroidX by default.

Changes Made

In RNPlayServicesLocationProvider.java:

Replaced android.support.annotation.NonNull with androidx.annotation.NonNull

Replaced android.support.v4.app.ActivityCompat with androidx.core.app.ActivityCompat

In Utils.java:

Replaced android.support.annotation.Nullable with androidx.annotation.Nullable

Why This Change Is Needed

The Android Support Library is deprecated and no longer maintained.

Newer React Native versions and Android builds require AndroidX.

Without this change, projects using AndroidX fail to compile when depending on this library.

Impact

No functional changes — only import updates.

Fully backward-compatible with AndroidX-enabled projects.

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