Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

macOS support #30

Open
ohitsdaniel opened this issue Apr 16, 2021 · 2 comments
Open

macOS support #30

ohitsdaniel opened this issue Apr 16, 2021 · 2 comments

Comments

@ohitsdaniel
Copy link
Contributor

Currently, we only support iOS and Android.

[snowplow-objc-tracker] also supports iOS 8.0+, macOS 10.9+, tvOS 9.0+ and watchOS 2.0+. Since the release of Flutter 2.0, Flutter also supports building macOS applications. I think we should therefore add support for macOS.

The underlying plugin code should be the same as an iOS. Is there any way to enable platform plugins for multiple platforms?

@MisterJimson
Copy link
Contributor

I believe its possible. This repo is probably the best to model the structure of: https://github.com/fluttercommunity/plus_plugins

@IchordeDionysos
Copy link

The idiomatic approach to building support for multiple platforms is to adopt the Federated Plugin approach, where you have one platform interface package explaining what functions each platform should support/implement.

And for each platform. then a package that adds the support for this package.

So a package setup might look like this:
snowplow_platform_inferface
snowplow (contains Android/iOS and consolidates other platform implementations)
snowplow_web
snowplow_macos
snowplow_linux
snowplow_windows

More info on federated packages:
https://flutter.dev/docs/development/packages-and-plugins/developing-packages#federated-plugins

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants