fluttercommunity / wakelock_plus

Flutter plugin that allows you to keep the device screen awake on Android, iOS, macOS, Windows, Linux, and web.
BSD 3-Clause "New" or "Revised" License
71 stars 54 forks source link

fix(wakelock_plus): WASM-compatible conditional imports #44

Closed IchordeDionysos closed 7 months ago

IchordeDionysos commented 7 months ago

Description

Migrates the conditional imports to support WASM (see https://dart.dev/interop/js-interop/package-web#conditional-imports)

diegotori commented 7 months ago

LGTM. Once it passes automation, I'll merge it in.

If I have time today, I'll publish a new version. Otherwise tomorrow.

IchordeDionysos commented 7 months ago

The failing check seems unrelated to the PR changes 🤔

diegotori commented 7 months ago

The failing check seems unrelated to the PR changes 🤔

Yeah, that happens from time to time. I'll retry it.

Once it goes green, you should be good to go.

IchordeDionysos commented 7 months ago

@diegotori nice tests now all passed 💪

diegotori commented 7 months ago

@IchordeDionysos thank you for your contribution.