From d9c9c8dd75efc4f77667e3c22c42812f5e72eb25 Mon Sep 17 00:00:00 2001 From: Kunal Verma Date: Wed, 25 Dec 2019 22:13:50 +0530 Subject: [PATCH] Adding SPM Support --- .../contents.xcworkspacedata | 7 ++++ Package.swift | 33 +++++++++++++++++++ .../xcshareddata/IDEWorkspaceChecks.plist | 8 +++++ 3 files changed, 48 insertions(+) create mode 100644 .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata create mode 100644 Package.swift create mode 100644 iCarousel.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000..919434a625 --- /dev/null +++ b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000000..9f83b99676 --- /dev/null +++ b/Package.swift @@ -0,0 +1,33 @@ +// swift-tools-version:5.0 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "iCarousel", + platforms: [ + .macOS(.v10_12), + .iOS(.v10) + ], + products: [ + // Products define the executables and libraries produced by a package, and make them visible to other packages. + .library( + name: "iCarousel", + targets: ["iCarousel"]) + ], + dependencies: [ + // Dependencies declare other packages that this package depends on. + // .package(url: /* package url */, from: "1.0.0"), + ], + targets: [ + // Targets are the basic building blocks of a package. A target can define a module or a test suite. + // Targets can depend on other targets in this package, and on products in packages which this package depends on. + .target( + name: "iCarousel", + dependencies: [], + path: ".", + sources: ["iCarousel"], + publicHeadersPath: "iCarousel" + ) + ] +) diff --git a/iCarousel.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/iCarousel.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000..18d981003d --- /dev/null +++ b/iCarousel.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + +