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

Use a custom kotlinOut for Pigeon codegen to prevent 'Messages_gKt defined multiple times' #63

Closed defuncart closed 4 months ago

defuncart commented 5 months ago

Similar to #18. As per pigeon example, wakelock_plus uses the default Kotlin output file name Messages.g.kt. This can, however, result in compile errors when an app depends on wakelock_plus and another library generated using pigeon. In such cases, compilation is not possible with the error Type Messages_gKt is defined multiple times.