Skip to content
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

Add Swift Package Manager support #516

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/window_manager/macos/window_manager.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ A new flutter plugin project.
s.license = { :file => '../LICENSE' }
s.author = { 'LiJianying' => '[email protected]' }
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.source_files = 'window_manager/Sources/window_manager/**/*'
s.dependency 'FlutterMacOS'

s.platform = :osx, '10.11'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"object" : {
"artifacts" : [

],
"dependencies" : [

]
},
"version" : 6
}
33 changes: 33 additions & 0 deletions packages/window_manager/macos/window_manager/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// swift-tools-version:5.39
import PackageDescription

let package = Package(
name: "window_manager",
platforms: [
.macOS(.v10_11)
],
products: [
.library(
name: "window_manager",
targets: ["window_manager"]
)
],
dependencies: [],
targets: [
.target(
name: "window_manager",
dependencies: [],
resources: [
// If your plugin requires a privacy manifest, for example if it collects user
// data, update the PrivacyInfo.xcprivacy file to describe your plugin's
// privacy impact, and then uncomment these lines. For more information, see
// https://developer.apple.com/documentation/bundleresources/privacy_manifest_files
// .process("PrivacyInfo.xcprivacy"),

// If you have other resources that need to be bundled with your plugin, refer to
// the following instructions to add them:
// https://developer.apple.com/documentation/xcode/bundling-resources-with-a-swift-package
]
)
]
)
Loading