Skyost / Bonsoir

A Zeroconf library that allows you to discover network services and to broadcast your own. Based on Apple Bonjour and Android NSD.
http://bonsoir.skyost.eu/
Other
107 stars 49 forks source link

About transition to federated plugin #10

Closed Skyost closed 3 years ago

Skyost commented 3 years ago

This issue has been created to keep talking about #9. So, as I said in https://github.com/Skyost/Bonsoir/pull/9#issuecomment-793633033, I have done refactoring in cea115abf6b41d20d4674065ca4043b344a3ab1d and 5556a7b1a129c44ba64bdc3ff073cfcd47ec79e5 :

What do you think about it @Piero512 ?

Piero512 commented 3 years ago

This is very bad. The merge of platform interface with the method channel is bad, other plug-ins don't necessarily need to use a method channel to implement a platform interface, so it should be separated. See https://github.com/flutter/plugins/tree/master/packages/url_launcher/url_launcher_platform_interface/lib as an example.

Piero512 commented 3 years ago

You might also check out my plugin extending the ~current~ previous platform. https://github.com/Piero512/bonsoir_linux_dbus

Skyost commented 3 years ago

The merge of platform interface with the method channel is bad, other plug-ins don't necessarily need to use a method channel to implement a platform interface, so it should be separated.

I see. I reverted the change in 0b0475ee130edabe9b2e579979628c72555dd049.