forked from meilisearch/meilisearch-swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MeiliSearch.podspec
54 lines (44 loc) · 1.88 KB
/
MeiliSearch.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#
# Be sure to run `pod lib lint MeiliSearch.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#
# Loads version from `PackageVersion.current` defined in the PackageVersion.swift file.
package_version = begin
File
.read("./Sources/MeiliSearch/Model/PackageVersion.swift")
.match(/"([0-9]+.[0-9]+.[0-9]+)"/i)[1]
rescue
raise "Cannot retrieve a valid semver.org version in the PackageVersion.swift file"
end
Pod::Spec.new do |s|
s.name = 'MeiliSearch'
s.version = package_version
s.summary = 'The Meilisearch API client written in Swift'
# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
# * Try to keep it short, snappy and to the point.
# * Write the description between the DESC delimiters below.
# * Finally, don't worry about the indent, CocoaPods strips it!
s.description = <<-DESC
meilisearch-Swift is a client for Meilisearch written in Swift.
## Features:
* Complete full API wrapper
* Easy to install, deploy, and maintain
* Highly customizable
* No external dependencies
* Thread safe
* Uses Codable
DESC
s.homepage = 'https://github.com/meilisearch/meilisearch-swift'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Meilisearch' => 'bonjour@meilisearch.com' }
s.source = { :git => 'https://github.com/meilisearch/meilisearch-swift.git', :tag => package_version }
s.social_media_url = 'https://twitter.com/meilisearch'
s.source_files = 'Sources/**/*.{h,m,swift}'
s.swift_versions = ['5.2']
s.ios.deployment_target = '10.0'
s.osx.deployment_target = '10.10'
end