capacitor-community / fcm

Enable Firebase Cloud Messaging for Capacitor apps
https://capacitor.ionicframework.com/docs/
MIT License
237 stars 83 forks source link

Add AndroidX compatibility #30

Closed lights0123 closed 4 years ago

lights0123 commented 4 years ago

Capacitor 2 is switching to use the new AndroidX library, but this library depends on android.support. Instead of doing something to switch between the versions, this PR simply replaces the @NonNull annotation with a lambda function.

lights0123 commented 4 years ago

I didn't see the past PRs #20 and #22, but this PR should be compatible with both android and androidx.

lights0123 commented 4 years ago

@stewwan it's on.

stewones commented 4 years ago

published to 2.0.0