From e9048e2d052edc12bb14eb3e5211234f6df36e9d Mon Sep 17 00:00:00 2001 From: Fedya Levkin Date: Thu, 13 May 2021 21:04:52 +0300 Subject: [PATCH 1/2] SILV-1 Added Package.swift --- 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..ae72a74 --- /dev/null +++ b/Package.swift @@ -0,0 +1,20 @@ +// swift-tools-version:5.3 +import PackageDescription + +let package = Package( + name: "Lokalise", + platforms: [.iOS(.v9)], + products: [ + .library(name: "Lokalise", + targets: ["Lokalise"]) + ], + dependencies: [ + ], + targets: [ + .binaryTarget( + name: "Lokalise", + url: "https://github.com/lokalise/lokalise-ios-framework/releases/download/0.10.2/Lokalise.xcframework.0.10.2.zip", + checksum: "9e7c9ede0cc2092d3b86538e0b5c2244ed1d2f32323188a45f1dd06366a68be6" + ) + ] +) \ No newline at end of file From 6ddead0e377b925391dfcf03fa612dc09153914c Mon Sep 17 00:00:00 2001 From: Fedya Levkin Date: Thu, 13 May 2021 21:39:31 +0300 Subject: [PATCH 2/2] SIOS-1 Readme update --- Readme.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Readme.md b/Readme.md index ea486f6..694fb75 100644 --- a/Readme.md +++ b/Readme.md @@ -17,6 +17,17 @@ ## Setup +### Swift Package Manager + +To install using [Swift Package Manager](https://swift.org/package-manager/): + +a. Add through **File -> Swift Packages -> Add Package Dependency...** action in Xcode. Use `https://github.com/lokalise/lokalise-ios-framework.git` repository URL and the **Version: Up to Next Minor** starting with `0.10.2` option. + +b. Add this line to `dependencies` section of your `Package.swift`: +``` +.package(url: "https://github.com/lokalise/lokalise-ios-framework.git", .upToNextMinor(from: "0.10.2")) +``` + ### CocoaPods To install using [CocoaPods](https://cocoapods.org):