From 270d4d4157902de8a01f3d214a34f8e9adfedfa5 Mon Sep 17 00:00:00 2001 From: Sarathkumar Date: Tue, 29 Mar 2022 22:52:07 +0530 Subject: [PATCH 1/6] initial commit for Popover SPM support --- Package.swift | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Package.swift diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..ae33be8 --- /dev/null +++ b/Package.swift @@ -0,0 +1,20 @@ +// swift-tools-version: 5.6 + +import PackageDescription + +let package = Package( + name: "Popover", + products: [ + .library( + name: "Popover", + targets: ["Popover"]), + ], + dependencies: [ + ], + targets: [ + .target( + name: "Popover", + dependencies: [], + path: "Classes/"), + ] +) From 88f8362999f5ef9067be80a12a87b49f70349cd6 Mon Sep 17 00:00:00 2001 From: Sarathkumar Date: Tue, 29 Mar 2022 23:19:00 +0530 Subject: [PATCH 2/6] added platforms and language versionsupport --- Package.swift | 4 +++- README.md | 13 +++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index ae33be8..1cf28bf 100644 --- a/Package.swift +++ b/Package.swift @@ -4,6 +4,7 @@ import PackageDescription let package = Package( name: "Popover", + platforms: [.iOS(.v9)], products: [ .library( name: "Popover", @@ -16,5 +17,6 @@ let package = Package( name: "Popover", dependencies: [], path: "Classes/"), - ] + ], + swiftLanguageVersions: [.v4, .v5] ) diff --git a/README.md b/README.md index ef25f8a..f7c7dcb 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,19 @@ The class file required for Popover is located in the Classes folder in the root Popover.swift ``` +### Swift Package Manager +You can add following git url in file -> Add Packages in top menu and paste the url in +``` +https://github.com/sarathsarah/Popover.git +``` +OR +You can add it to the dependencies value of your Package.swift +``` +dependencies: [ + .package(url: "https://github.com/sarathsarah/Popover.git", from: "1.3.0") +] +``` + ## Customization ### Enum From 7bee176e0d021992614c33543a8ba192919c5d43 Mon Sep 17 00:00:00 2001 From: Sarath Date: Tue, 29 Mar 2022 23:24:08 +0530 Subject: [PATCH 3/6] Updated ReadMe file --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f7c7dcb..476ddc4 100644 --- a/README.md +++ b/README.md @@ -70,13 +70,13 @@ Popover.swift ### Swift Package Manager You can add following git url in file -> Add Packages in top menu and paste the url in ``` -https://github.com/sarathsarah/Popover.git +https://github.com/corin8823/Popover.git ``` OR You can add it to the dependencies value of your Package.swift ``` dependencies: [ - .package(url: "https://github.com/sarathsarah/Popover.git", from: "1.3.0") + .package(url: "https://github.com/corin8823/Popover.git", from: "1.3.0") ] ``` From 45947e118d963b20d8463ef13149fa5f3c988a16 Mon Sep 17 00:00:00 2001 From: Sarath Date: Tue, 29 Mar 2022 23:26:35 +0530 Subject: [PATCH 4/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 476ddc4..4e16adb 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ Popover.swift ``` ### Swift Package Manager -You can add following git url in file -> Add Packages in top menu and paste the url in +You can add following git url in File -> Add Packages in top menu and paste the url in search bar and add it to ur project ``` https://github.com/corin8823/Popover.git ``` From 0396eb399456cad243e9d0db92f2f3034b0ace06 Mon Sep 17 00:00:00 2001 From: Sarathkumar Date: Mon, 4 Apr 2022 16:08:09 +0530 Subject: [PATCH 5/6] ios version updated --- Package.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index 1cf28bf..e26ca0e 100644 --- a/Package.swift +++ b/Package.swift @@ -4,7 +4,7 @@ import PackageDescription let package = Package( name: "Popover", - platforms: [.iOS(.v9)], + platforms: [.iOS(.v11)], products: [ .library( name: "Popover", From 3674e94551307502995f363681b6b51e93fcdf3e Mon Sep 17 00:00:00 2001 From: Sarath Date: Tue, 5 Apr 2022 11:10:26 +0530 Subject: [PATCH 6/6] Update package.swift --- Package.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index e26ca0e..80c6c93 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version: 5.6 +// swift-tools-version: 5.5 import PackageDescription