From fc1c6cae17247bff077fc45193ce400c75f0b895 Mon Sep 17 00:00:00 2001 From: "alekseev.pg" Date: Tue, 29 Aug 2023 16:15:24 +0700 Subject: [PATCH] update package --- .../contents.xcworkspacedata | 7 +++++++ Package.swift | 18 +++++++++++++++--- Sources/SidebarOverlay/SidebarOverlay.swift | 2 ++ 3 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata create mode 100644 Sources/SidebarOverlay/SidebarOverlay.swift diff --git a/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Package.swift b/Package.swift index c2edaa2..03f18ec 100644 --- a/Package.swift +++ b/Package.swift @@ -1,8 +1,20 @@ -import PackageDescription +// swift-tools-version: 5.8 +// The swift-tools-version declares the minimum version of Swift required to build this package. +import PackageDescription let package = Package( name: "SidebarOverlay", - dependencies : [], - exclude: ["Tests"] + products: [ + // Products define the executables and libraries a package produces, making them visible to other packages. + .library( + name: "SidebarOverlay", + targets: ["SidebarOverlay"]), + ], + targets: [ + // Targets are the basic building blocks of a package, defining a module or a test suite. + // Targets can depend on other targets in this package and products from dependencies. + .target( + name: "SidebarOverlay"), + ] ) diff --git a/Sources/SidebarOverlay/SidebarOverlay.swift b/Sources/SidebarOverlay/SidebarOverlay.swift new file mode 100644 index 0000000..08b22b8 --- /dev/null +++ b/Sources/SidebarOverlay/SidebarOverlay.swift @@ -0,0 +1,2 @@ +// The Swift Programming Language +// https://docs.swift.org/swift-book