-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable searching for Flutter plugins specifying supported native platforms (e.g. Android, iOS) #187
Comments
Related bug for package detail page: #144 |
Blocked on flutter/flutter#10288 |
@mit-mit Moving this to M4. We can re-triage once there is a plan on the flutter side to provide the needed info |
@mit-mit: what is the latest on detecting whether a package works on ios, android or both? |
I marked this as M4 – since we have no plan in the short term to address this |
Correct, we don't have platform support for this yet. |
Any estimation on when this will arrive? Could imagine there'll be an increase in packages published the more popular Flutter becomes |
Also would be nice to be able to filter if it's Java/objC vs kotlin/swift as kotlin/swift is more painful to maintain and personally I try to avoid them |
Would be perfect if there was a way to request help from people with iOS side for packages which only have Android side implemented and vice versa |
@jaumard what are the issues with kotlin? |
@fmatosqg when you have multiple flutter plugin using kotlin, if one have an old version of kotlin your all project doesn't compile anymore... Or the opposite one plugin is really up to date but not you, still you can't compile unless you migrate all your plugin to the same kotlin version (or acceptable range of versions) but maybe one plugin is not yours and you're blocked... It's exactly same story as swift. That's why I ban those languages for flutter plugins. And I've seen many plugins migrate to Java/objC from swift/kotlin because of that, because maintaining an open source plugin using those languages force you to update then just to have languages version up to date, even if there no new feature or bug fixing. |
@jaumard having worked with kotlin for a while in native android this is an interesting surprise, specially considering how strong backwards compatibility is. I'd be very interesting in seeing that failing for myself, can you post a link to such a project? Now on the swift side I know how painful it can be, but that's the first time I hear similar issues on kotlin for any platform or framework. My obvious suggestion is upgrading your project to the latest version. Maybe we need to add that to documentation, maybe we need a tool to do it for people. |
@fmatosqg I've worked a lot with kotlin myself and had no issues for android projects, but with flutter it's not the same story because plugins are loaded as "module" on our project, meaning they have they're own gradle/kotlin supported version and that's the problem as they can use a very old version and you'll not be able to compile anymore. So even if you are upgrading your project to the latest version, it doesn't mean that all the plugin you use will do too. I don't have a link to provide as it's my company project and it doesn't fail anymore as we migrate to only java/objC plugins to avoid those problems. but you can check |
I feel like there should be some warning making everyone aware of what you're talking about @jaumard. Would be very useful whenever creating new projects and just informative on the Flutter docs. You should open a PR on the Flutter website and add that key piece of information. |
I'm agree with, but I'm not sure it will be accepted @MarkOSullivan94 as saying "Swift/Kotlin is considered bad practice for Flutter plugin and should be avoided" might not be a good selling point ^^ |
@jaumard, @MarkOSullivan94, whether to discourage swift/kotlin is a flutter concern, maybe @amirh have more insights on this. In any event it seems like something worth debating in a Flutter issue :) |
Please also add the Web to the list of platforms to search by. |
See, e.g. flutter/flutter#40360 |
When searching among Flutter packages, support narrowing the search to only packages that work on a particular platform (android, ios, web, desktop)
The text was updated successfully, but these errors were encountered: