From 04089c37381d54edccaddd2fe40164e4facfe529 Mon Sep 17 00:00:00 2001 From: Paul Schmiedmayer Date: Wed, 14 Jun 2023 18:33:50 -0700 Subject: [PATCH] Add Swift Package Manager Support --- .gitignore | 28 ++++++++++++++++++++++++++++ Package.swift | 24 ++++++++++++++++++++++++ README.md | 6 ++++++ 3 files changed, 58 insertions(+) create mode 100644 .gitignore create mode 100644 Package.swift diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e04f244 --- /dev/null +++ b/.gitignore @@ -0,0 +1,28 @@ +# macOS +.DS_Store + +# Xcode +# +# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore + +## User settings +xcuserdata/ + +## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9) +*.xcscmblueprint +*.xccheckout + +## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4) +build/ +DerivedData/ +*.moved-aside +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata/ +.swiftpm diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..5c12083 --- /dev/null +++ b/Package.swift @@ -0,0 +1,24 @@ +// swift-tools-version:5.7 +import PackageDescription + + +let package = Package( + name: "EstimoteBluetoothScanning", + platforms: [ + .iOS(.v10) + ], + products: [ + .library( + name: "EstimoteBluetoothScanning", + targets: [ + "EstimoteBluetoothScanning" + ] + ) + ], + targets: [ + .binaryTarget( + name: "EstimoteBluetoothScanning", + path: "./EstimoteBluetoothScanning/EstimoteBluetoothScanning.xcframework" + ) + ] +) \ No newline at end of file diff --git a/README.md b/README.md index 9653ebb..287e345 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ # iOS-Bluetooth-Scanning Library for scanning Bluetooth packets broadcasted by Estimote devices. + +## Installation + +### 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-Bluetooth-Scanning`.