You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ened thank you for your question. The web version is a consolidation of the original wakelock plugin that federated each platform into its own package. As a result, it adds this script, but rest assured, its only ever used in web.
Not to mention that the size of the script is negligible in terms of footprint due to it being part of the implementation.
Lastly, there is currently an open issue for the Flutter team to add support for platform-specific assets. However, no movement has been made on that issue thus far. Feel free to give it a thumbs up so that it gets their attention.
In terms of compressing that script in question, I dunno how to specifically do that for JavaScript files. However, I do accept PRs to that effect and will review them once submitted.
This no_sleep.js file should only be used for web projects (and perhaps be compressed as well).
The text was updated successfully, but these errors were encountered: