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

feat(android): Remove all gms usages and use guava instead #510

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

meypod
Copy link
Contributor

@meypod meypod commented Sep 4, 2022

hi @mikehardy , sorry about mentioning, please take a look at this PR if you can merge this
this is related to #493

I tried running tests and all passed
the code may look inconsistent in indentations, this is intentional, since there were many changes, I want to keep the noise down
you can format the code later using the formatter you use to fix the formatting issues.

thanks !

@CLAassistant
Copy link

CLAassistant commented Sep 4, 2022

CLA assistant check
All committers have signed the CLA.

@meypod meypod changed the title remove all gms usages and use guava instead Android: Remove all gms usages and use guava instead Sep 4, 2022
@meypod meypod changed the title Android: Remove all gms usages and use guava instead feat(android): Remove all gms usages and use guava instead Sep 4, 2022
@mikehardy
Copy link
Contributor

wow! pretty quick from idea to a PR, very cool. This isn't the sort of change I can (or should or would) ingest unilaterally so I need to find some time to sync up with @helenaford on it, but the general idea of "replacing async programming library with something that works the same but is 'free software' compatible is something I support. And the churn in the diff isn't too crazy, though it needs review of course

left just a couple specific comments which you've likely already seen...

@codecov
Copy link

codecov bot commented Sep 4, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.25%. Comparing base (ac1645f) to head (ab4a3aa).
Report is 40 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #510   +/-   ##
=======================================
  Coverage   77.25%   77.25%           
=======================================
  Files          34       34           
  Lines        1701     1701           
  Branches      566      566           
=======================================
  Hits         1314     1314           
  Misses        337      337           
  Partials       50       50           

@helenaford
Copy link
Member

helenaford commented Sep 4, 2022

ah nice, i like this idea of having everything fully open source :) happy to release this as an alpha from your p/r if that helps? but won't be able to fully test this before merging to master for a couple of weeks as I'm going away.

@meypod
Copy link
Contributor Author

meypod commented Sep 4, 2022

It would be very helpful,
I haven't test if it passes f-droid checks yet, but I just went with the idea to see how it goes

edit: I probably will update this branch tomorrow around the same time, are you available till then ?

@helenaford
Copy link
Member

@meypod nope unfortunately not... but there's a way to use patch-package i believe. I'm going on vacation for two weeks from tomorrow

@mikehardy
Copy link
Contributor

I'm not sure this one works well with patch-package, however I know from previous collaboration on the idea that you a build script that pulls notifee core from git and references it from source when building the react-native module - no reason you can't switch both of those to point at your local branch.

More than anything, I think it was important just to see what Helena's initial reaction was - that was important for me anyway. Seeing it start with "ah nice" makes me think this will merge over time so it shouldn't be too dangerous to go off your branches for a bit while we work through it

@meypod
Copy link
Contributor Author

meypod commented Sep 5, 2022

Have a good vacation !
and I think you are right mikehardy, I can switch to my own branch on the script for now
thanks a lot for the info, help and idea on this !

@helenaford
Copy link
Member

Thank you. I had a great vacation. I am always open to moving to open source libraries, I'm not going to lie though that this change does make me feel a bit nervous as it's a big change 😅 Just might need some more testing than smaller p/rs

@meypod
Copy link
Contributor Author

meypod commented Sep 22, 2022

Nice
meanwhile since I needed this change, I used it inside my app and got it released on f-droid, and It's been working fine so far

Copy link
Contributor

@mikehardy mikehardy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, and honestly, there is nothing better for making sure something works than an actual deployed app with users (and you have 8 stars on github - no joke, just having the first few people watch/follow/use an app is where almost all the issues are discovered...)

Nice one

@meypod
Copy link
Contributor Author

meypod commented Sep 24, 2022

I'm getting few reports from my app users that it's not getting triggered reliably despite disabling battery optimizations

Since it's started happening after this update, I'd say it's possible that I have broken sth that I'm not aware

The app been triggering as expected for myself so I have my doubts if it's the update causing this problem alone

@meypod
Copy link
Contributor Author

meypod commented Sep 24, 2022

Is it possible that it has caused a memory leak and os terminating it due to leak after sometime on low end devices?

@mikehardy
Copy link
Contributor

@meypod anything is possible? Using the Android Studio profiler can say

@meypod
Copy link
Contributor Author

meypod commented Sep 27, 2022

well, profiler did not show any sign of leak, memory usage was consistent
I guess the problem is somewhere else then

edit: it seems my app was crashing sometimes due to service trying to unbind under some condition that would throw an exception, so that maybe was why app was not working properly sometimes

@meypod
Copy link
Contributor Author

meypod commented Oct 3, 2022

After hours of debugging I figured there was indeed some issue with the PR
it seems that while the tests passed, there was still some issues that wasn't really visible until I filtered the logs for notifee package

I hope it was the only fixes needed

@meypod
Copy link
Contributor Author

meypod commented Oct 19, 2022

@mikehardy any idea when and if this will be merged?

@mikehardy
Copy link
Contributor

I'm still paying attention here for what it's worth, and I've got some time budgeted for notifee maintenance now and for the next few weeks. Hoping to square this away + get it merged. You've been extraordinarily patient

@8BallBomBom
Copy link

Ahaha, thank you 😸

Copy link

github-actions bot commented Dec 8, 2023

Hello 👋, this PR has been opened for more than 2 months with no activity on it.

If you think this is a mistake please comment and ping a maintainer to get this merged ASAP! Thanks for contributing!

You have 15 days until this gets closed automatically

@github-actions github-actions bot added the Stale label Dec 8, 2023
@meypod
Copy link
Contributor Author

meypod commented Dec 8, 2023

Hi @mikehardy , is this still planned ?

@mikehardy
Copy link
Contributor

Yes!

@github-actions github-actions bot removed the Stale label Dec 8, 2023
Copy link

github-actions bot commented Jan 5, 2024

Hello 👋, this PR has been opened for more than 2 months with no activity on it.

If you think this is a mistake please comment and ping a maintainer to get this merged ASAP! Thanks for contributing!

You have 15 days until this gets closed automatically

@github-actions github-actions bot added Stale and removed Stale labels Jan 5, 2024
@8BallBomBom
Copy link

🤷🏻‍♂️ 😞

@mikehardy
Copy link
Contributor

No stale bot, no. This PR is gold, it will go in

Copy link

github-actions bot commented Feb 3, 2024

Hello 👋, this PR has been opened for more than 2 months with no activity on it.

If you think this is a mistake please comment and ping a maintainer to get this merged ASAP! Thanks for contributing!

You have 15 days until this gets closed automatically

@github-actions github-actions bot added Stale and removed Stale labels Feb 3, 2024
@mikehardy
Copy link
Contributor

not going to let it close without merging

Copy link

github-actions bot commented Mar 4, 2024

Hello 👋, this PR has been opened for more than 2 months with no activity on it.

If you think this is a mistake please comment and ping a maintainer to get this merged ASAP! Thanks for contributing!

You have 15 days until this gets closed automatically

@github-actions github-actions bot added Stale and removed Stale labels Mar 4, 2024
@Rexogamer
Copy link

bad bot 😠

@Rexogamer
Copy link

@meypod apologies and no rush but if you get a chance would you mind fixing the conflicts/merging the upstream changes again? i'd love to switch to this branch for my app (until it gets merged) but i'd rather not lose any upstream fixes

Copy link

Hello 👋, this PR has been opened for more than 2 months with no activity on it.

If you think this is a mistake please comment and ping a maintainer to get this merged ASAP! Thanks for contributing!

You have 15 days until this gets closed automatically

@github-actions github-actions bot added the Stale label Apr 12, 2024
@Rexogamer
Copy link

not stale

@github-actions github-actions bot removed the Stale label Apr 13, 2024
Copy link

Hello 👋, this PR has been opened for more than 2 months with no activity on it.

If you think this is a mistake please comment and ping a maintainer to get this merged ASAP! Thanks for contributing!

You have 15 days until this gets closed automatically

@github-actions github-actions bot added the Stale label May 11, 2024
@Rexogamer
Copy link

not stale, although it'd be good to get an idea of when y'all will be able to review this/get it closer to merging? i get the impression y'all are busy with the Firebase libraries though, so no pressure/judgement :3

@github-actions github-actions bot removed the Stale label May 16, 2024
@8BallBomBom
Copy link

Would be nice before it hits the 2 year mark 🤔

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

Successfully merging this pull request may close these issues.

None yet

8 participants