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

WIP (Help needed): Add switch to only download with wifi connection. #336

Closed
wants to merge 2 commits into from

Conversation

Y0ngg4n
Copy link
Contributor

@Y0ngg4n Y0ngg4n commented Sep 23, 2022

This adds a basic switch to the settings menu to only download music with wifi connection. But i need help with this to save to hive db and register the notifier with provider. Dont want to destroy the current models.

@Y0ngg4n
Copy link
Contributor Author

Y0ngg4n commented Dec 19, 2022

@jmshrv could you help here?

@jmshrv
Copy link
Owner

jmshrv commented Dec 19, 2022

Just pushed the stuff to save the setting in FinampSettings, you can access the value with FinampSettingsHelper.finampSettings.onlyDownloadWithWifi. I'll look at the other stuff tomorrow since I'm tired 🙃

@Y0ngg4n
Copy link
Contributor Author

Y0ngg4n commented Dec 20, 2022

@jmshrv hey thank you thats great 🥳
Have a nice day :)

@jmshrv
Copy link
Owner

jmshrv commented Mar 28, 2023

Hi, sorry for the delay, I'm working through my pile of emails right now :)

flutter_downloader added support for only downloading via WiFi, it would be easier to handle it through there: https://pub.dev/documentation/flutter_downloader/latest/flutter_downloader/DownloadTask/allowCellular.html

We'll need to jump to a new version of flutter_downloader, it's been pinned on my own branch of it for a while. Shouldn't cause any issues, the fix in my branch has been merged into a release.

@Chaphasilor
Copy link
Collaborator

@Y0ngg4n do you want to try and update flutter_downloader and go through it instead? Otherwise I could try doing it myself :)

@Y0ngg4n
Copy link
Contributor Author

Y0ngg4n commented Oct 18, 2023

@Chaphasilor currently i don´t have the capacities for it sorry :(

@Chaphasilor Chaphasilor self-assigned this Nov 26, 2023
@Chaphasilor
Copy link
Collaborator

This will probably be superseded by #568, but I can still try to get this merged before the next version is released :)

@Y0ngg4n
Copy link
Contributor Author

Y0ngg4n commented Dec 25, 2023

Na i think we can close this then if it is going to be superseded.

@Chaphasilor
Copy link
Collaborator

I mean the other PR targets redesign, so for the people who don't want to switch to the beta version this would be nice. And I guess we can just keep your current flutter_downloader-based implementation, as that would be more stable than a fresh implementation...

I'll see if I have the time to fix the merge conflicts...

Oh and Merry Christmas! 🎄

@Y0ngg4n
Copy link
Contributor Author

Y0ngg4n commented Dec 25, 2023

Ok i understand 🤔 would be nice. But this MR wasnt working either.

And Merry Christmas to you too :)

@Chaphasilor
Copy link
Collaborator

@Y0ngg4n could you tell me what wasn't working? I'm not sure I have the capacity to fix it up, but if it's only a small-ish issue I might do it.
Otherwise I'll probably close this PR instead an focus on the redesign for now 😅

@Y0ngg4n
Copy link
Contributor Author

Y0ngg4n commented Jan 10, 2024

@Chaphasilor close it :)

@Y0ngg4n Y0ngg4n closed this Jan 10, 2024
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.

3 participants