From f38b1c2be254816146ad72cfd7d2a0029330684f Mon Sep 17 00:00:00 2001 From: Vijay Tholpadi Date: Mon, 18 Mar 2024 11:42:20 +0800 Subject: [PATCH 1/2] Adds SPM support --- Package.swift | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Package.swift diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..b769072 --- /dev/null +++ b/Package.swift @@ -0,0 +1,22 @@ +// swift-tools-version:5.9 +import PackageDescription + +let package = Package( + name: "JSBadgeView", + platforms: [ + .iOS(.v12) + ], + products: [ + .library( + name: "JSBadgeView", + targets: ["JSBadgeView"] + ) + ], + targets: [ + .target( + name: "JSBadgeView", + path: "JSBadgeView", + publicHeadersPath: "." + ) + ] +) From e0622d5e6f9f4e9c361ce63e8c8327e0307c395d Mon Sep 17 00:00:00 2001 From: Vijay Tholpadi Date: Mon, 18 Mar 2024 11:44:17 +0800 Subject: [PATCH 2/2] Updates .gitignore for SPM artifacts --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 95112fc..bc740fa 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,9 @@ build/* xcuserdata *.xcuserdatad +#SPM +.swiftpm/ + # Textmate - if you build your xcode projects with it *.tm_build_errors