diff --git a/README.md b/README.md index 4060783..0661bce 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ A great new way to implement your searches on iOS using [Typesense](https://gith ## Installation +### Swift Package Manager + Add `Typesense Swift` Swift Package to your project. You can refer [Apple's Documentation](https://developer.apple.com/documentation/swift_packages/adding_package_dependencies_to_your_app) to add Typesense Swift as a dependency to your iOS Project. You can also import Typesense into your own Swift Package by adding this line to dependencies array of `Package.swift`: ```swift @@ -14,6 +16,20 @@ dependencies: [ ... ``` +### CocoaPods + +To integrate `Typesense` into your Xcode project using CocoaPods, specify it in your `Podfile`: + +```ruby +pod 'Typesense', '~> 2.0' +``` + +Then, run the following command: + +```bash +pod install +``` + ## Usage ### Setting up the client diff --git a/Typesense.podspec b/Typesense.podspec new file mode 100644 index 0000000..c2df3e7 --- /dev/null +++ b/Typesense.podspec @@ -0,0 +1,28 @@ +Pod::Spec.new do |spec| + spec.name = "Typesense" + spec.version = "2.0.0" + spec.summary = "Swift client library for Typesense Search Engine" + spec.description = <<-DESC + Typesense Swift SDK client is a Swift wrapper around the Typesense Search API. + An open-source, developer-friendly, fast search engine. + DESC + + spec.homepage = "https://typesense.org" + spec.license = { :type => "Apache-2.0", :file => "LICENSE" } + spec.author = { "Typesense" => "contact@typesense.org" } + + spec.ios.deployment_target = "13.0" + spec.osx.deployment_target = "10.15" + + spec.source = { :git => "https://github.com/typesense/typesense-swift.git", :tag => "v#{spec.version}" } + + spec.source_files = "Sources/Typesense/**/*.swift" + spec.swift_version = "5.5" + + spec.dependency "AnyCodable-FlightSchool", "~> 0.6.0" + + spec.pod_target_xcconfig = { + 'IPHONEOS_DEPLOYMENT_TARGET' => '13.0', + 'MACOSX_DEPLOYMENT_TARGET' => '10.15' + } +end