-
Notifications
You must be signed in to change notification settings - Fork 59
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
https://github.com/fluttercommunity/wakelock_plus/commit/847f3171916c9237fcf885039d4a0c9079430f83 #48
Comments
@syleishere you have to run Lastly, you may have to force |
The issue is this is not a flutter project, it is a flet project. Flet will go off and build this in a temporary directory, if I could override this in pubspec with a normal flutter project I would :). This was working fine compiling for me for months, then last couple of weeks I figured because of android studio upgrade of kotlin that was the problem, but when I saw this commit I realized this is what has been breaking it for weeks now... |
Unfortunately, you'll have to take it up with the flet folks. Right now, they are declaring One solution is to have |
Sadly I've done both in different threads on both of those projects, media_kit seems inactive for last 5 months, flet's developers busy on building an official release of flet for the year, now I've posted to all 3 projects and my project still remains broken :( |
Why downgrade kotlin to begin with? People upgrade android studio, it should work with current kotlin |
Actually maybe I can override C:\Users\dan\AppData\Local\Pub\Cache\hosted\pub.dev\wakelock_plus-1.2.1\ in manually from error messages not sure... |
You can try blasting your pub cache if all else fails. |
Yeah won't matter, I did a fresh install of windows 11 on my laptop last night hoping I could with a fresh install have older version of kotlin, got same error. All this started when I had an older flutter project I loaded in android studio that asked me to upgrade the gradle, and boom flet project went booom |
Another thing that you can do is upgrade the Android SDK and create a dummy flutter project that uses wakelock plus and then run Otherwise, flet should be modified so that it performs a |
hmm that's a great idea I'll give it a shot |
Strange thing here is it downloads 1.2.1 when set to 1.1.1 upgradeable. I tried what you said create flutter project with 1.2.4, that downloaded it, but it still used 1.2.1. So I nuked 1.2.1 and replaced directory with 1.2.4 and build failed same way... |
Then the generated project from flet needs to either use a dependency override, or The former might be the solution that will work more effectively to be honest. If you can isolate the temporary project and manually add the dependency override, that might force it to use that version. You'll have to reach out to the folks at flet so that they can add the ability to customize the pubspec for situations such as this one. |
hmm interesting: when forcing it in media_kit:
Hmm interesting, having more of a look..... |
You'll have to also force The long term solution is to submit a PR that updates |
media-kit/media-kit#771 as well as: All this happening because of gradle upgrade in kotlin lol. Maybe best solution is try to rollback to a previous android studio version till all this is resolved, but I am unsure how to downgrade kotlin, I've played with all the options nothing seems to work :( |
Well I forced package_info_plus, and that did the trick, compiles, so forcing newest wakelock_plus as well as package_info_plus did the trick. I much appreciate your time today, I'll submit a PR to flet github with fixes needed. |
I have tested your plugin so far on web, and works wonderfully btw :) I'll test on android in a bit, but a bit concerned with new issues around google, without issuing foreground service calls, wakelock may not work soon they have stated on newer APIs, along with needing a youtube video to show off app before being allowed. I am not sure if your plugin does foreground service request on android with new needed format..... |
As far as Android is concerned, the plugin merely keeps the screen on through the Activity's Based on the current docs, it doesn't look like that flag isn't going away anytime soon. I could be mistaken though. Anything beyond that (i.e. CPU wakelocks) are beyond the scope of this library. |
Tested on android as an app and in chrome browser on android accessing app remotely. With chrome version. I can shut screen off and still plays music endlessly which is great, even adds something to shut off screen what remote url it is playing. As an app, does keep screen on, but when I shut off screen, music plays for a few minutes at best then shuts off. Curious if anything can do here... |
I decided to move to python because of AI aspects, and always hated working with spaghetti flutter code. Plus now that mojo has been made open source, won't be long before python runs faster than c++ and rust |
It's fixed now in Flet 0.23. Sorry it took so long. |
@diegotori Thanks for your help here 🙏🏻 - really appreciate your timely responses though it's Flet's issue. |
This is breaking flet's video plugin with following:
At least for version 1.2.1 that video currently uses. We have no control over running flutter pub upgrades etc on a flet build, the commit essentially breaks the complete package when I try to include video plugin as media_kit includes this in it's own dependencies.
The text was updated successfully, but these errors were encountered: