From 2b1b4bb493e4d870026d12cdcbd5820a1d15de67 Mon Sep 17 00:00:00 2001 From: Alexandr Zhuchinskiy Date: Wed, 25 May 2022 10:58:37 +0300 Subject: [PATCH] TaboolaSDK SPM support - introduce support of TaboolaSDK for SPM; - embed built `*.xcframework` with `Package.swift` file. --- Package.swift | 18 ++++++++++++++++++ README.md | 14 +++++++++++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 Package.swift diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..97b3ddf --- /dev/null +++ b/Package.swift @@ -0,0 +1,18 @@ +// swift-tools-version:5.3 +import PackageDescription +let package = Package( + name: "TaboolaSDK", + platforms: [ + .iOS(.v10) + ], + products: [ + .library( + name: "TaboolaSDK", + targets: ["TaboolaSDK"]) + ], + targets: [ + .binaryTarget(name: "TaboolaSDK", + url: "https://taboola-mobile-sdk.s3.us-west-2.amazonaws.com/ios/spm/3.6.3/TaboolaSDK.xcframework.zip", + checksum: "627f0e75ea83c3ca3c500ddc7af6956d447fad8413609db76a1a44e604f29f9c") + ] +) diff --git a/README.md b/README.md index dabc2d1..71deec1 100644 --- a/README.md +++ b/README.md @@ -1 +1,13 @@ -# taboola-spm-ios-sdk \ No newline at end of file +# taboola-spm-ios-sdk + +Swift Package Manager + +The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler. + +Once you have your Swift package set up, adding TaboolaSDK as a dependency is as easy as adding it to the dependencies value of your Package.swift. + +``` +dependencies: [ + .package(url: "https://github.com/taboola/taboola-spm-ios-sdk", .upToNextMajor(from: "3.6.3")) +] +```