Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
28 changes: 28 additions & 0 deletions Typesense.podspec
Original file line number Diff line number Diff line change
@@ -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