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

Upgrade Wakelock into the latest version #54

Closed moshOntong-IT closed 7 months ago

moshOntong-IT commented 7 months ago

I have this issue:

    Because every version of file_management from git depends on video_player_media_kit ^1.0.5 which depends on
      media_kit_video ^1.2.4, every version of file_management from git requires media_kit_video ^1.2.4.
(1) So, because media_kit_video >=1.1.0 depends on wakelock_plus ^1.1.1, every version of file_management from git requires
      wakelock_plus ^1.1.1.

    Because wakelock_plus <1.1.2 depends on package_info_plus ^4.0.2 and wakelock_plus >=1.1.2 <1.1.3 depends on
      package_info_plus >=4.0.2 <6.0.0, wakelock_plus <1.1.3 requires package_info_plus >=4.0.2 <6.0.0.
    And because wakelock_plus >=1.1.3 <1.1.4 depends on package_info_plus ^4.2.0, wakelock_plus <1.1.4 requires
      package_info_plus >=4.0.2 <6.0.0.
    And because wakelock_plus >=1.1.4 <1.2.0 depends on package_info_plus >=4.0.2 <6.0.0 and wakelock_plus >=1.2.0 <1.2.2
      depends on package_info_plus >=4.0.2 <7.0.0, wakelock_plus <1.2.2 requires package_info_plus >=4.0.2 <7.0.0.
    And because wakelock_plus >=1.2.2 <1.2.4 depends on package_info_plus ^6.0.0 and wakelock_plus >=1.2.4 depends on
      package_info_plus >=6.0.0 <8.0.0, every version of wakelock_plus requires package_info_plus >=4.0.2 <8.0.0.
    And because every version of file_management from git requires wakelock_plus ^1.1.1 (1), every version of file_management
      from git requires package_info_plus >=4.0.2 <8.0.0.
    And because appwrite >=12.0.3 depends on package_info_plus ^8.0.0, file_management from git is incompatible with appwrite
      >=12.0.3.
    So, because educanet depends on both appwrite ^12.0.3 and file_management from git, version solving failed.

In summary, I am using appwrite, which appwrite 12.0.3 depends on package info plus: 8.0.0 while our latest version of media_kit_video depends on wakelock 1.1.1. Then the wakelock 1.1.1 depends on package_info_plus: ^4.0.2. In result this is incompatible, I think we need to update the wakelock 1.1.1 into the latest version. I cant downgrade the appwrite since they have this latest query that I need to use.