Closed sevdog closed 4 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 70.28%. Comparing base (
9fbab31
) to head (c54230f
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Thank you for making this MR. The patch was instead resolving two issues, making firebase_admin
optional as well as moving the required .gcm
methods to appropriate area.
firebase_admin
issue, not required. That said, once this conflict herein is fixed. It is good as mergedI have rebased over #707, now this PR makes a single import statement instead of two to handle FCM in models.py.
I have rebased over #707, now this PR makes a single import statement instead of two to handle FCM in models.py.
I would make one more quick pass, and merge into the main
trunk.
Once again, thank you for pulling in this patch.
As pointed out in this comment https://github.com/jazzband/django-push-notifications/pull/702#discussion_r1489160018 importing
firebase_admin
orgcm
at top level inmodels.py
turns thefirebase_admin
package as a mandatory requirements while it should not.To address this I have moved the imports inside the appropriated methods. This allow the codebase to run even without the firebase package (which is optional).