From 349fc6c9075d9f0ec6f9e28b9eccab57475f117d Mon Sep 17 00:00:00 2001 From: Paul Schmiedmayer Date: Wed, 14 Jun 2023 18:28:50 -0700 Subject: [PATCH] Add Swift Package Manager Support --- .gitignore | 2 +- Package.swift | 24 ++++++++++++++++++++++++ README.md | 4 ++++ 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 Package.swift diff --git a/.gitignore b/.gitignore index 71d3222..e04f244 100644 --- a/.gitignore +++ b/.gitignore @@ -25,4 +25,4 @@ DerivedData/ *.perspectivev3 !default.perspectivev3 xcuserdata/ - +.swiftpm diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..03c02db --- /dev/null +++ b/Package.swift @@ -0,0 +1,24 @@ +// swift-tools-version:5.7 +import PackageDescription + + +let package = Package( + name: "EstimoteProximitySDK", + platforms: [ + .iOS(.v10) + ], + products: [ + .library( + name: "EstimoteProximitySDK", + targets: [ + "EstimoteProximitySDK" + ] + ) + ], + targets: [ + .binaryTarget( + name: "EstimoteProximitySDK", + path: "./EstimoteProximitySDK/EstimoteProximitySDK.xcframework" + ) + ] +) \ No newline at end of file diff --git a/README.md b/README.md index cf9edb4..d6b90c5 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,10 @@ Below there's a presentation of two zones: Starting with [version 1.2.0](https://github.com/Estimote/iOS-Proximity-SDK/releases/tag/v1.2.0) Proximity SDK supports Swift 4.2. +### Swift Package Manager + +Follow the article about [Adding Package Dependencies to Your App](https://developer.apple.com/documentation/xcode/adding-package-dependencies-to-your-app) using the following repository URL: `https://github.com/Estimote/iOS-Proximity-SDK`. + ### CocoaPods [CocoaPods](https://cocoapods.org/) is an easy way to add external libraries. To use it to fetch Proximity SDK: 1. Add `pod 'EstimoteProximitySDK'` to your Podfile