feat: One module for iOS and MacOS instead of two #42
Labels
feature
A new feature or request
needs triage
Issue requires triage
product: very_good_flutter_plugin
Changes that affect the Very Good Flutter Plugin template.
Description
There is a way to declare that you want to use the same code for iOS and MacOS. There was a proposal which explained it quite well. This is already in use e.g. for the path_provider package. Which this feature you can avoid a lot of duplicated code (I expect that you do the same on both platforms).
Requirements
Additional Context
Here is an example how the
MyPlugin.swift
should look like afterwards:The
podfile
should look like this:The
my_plugin_darwin/pubspec.yaml
like this:Those are of cause not all changes, but that should reflect the most relevant.
The text was updated successfully, but these errors were encountered: