forked from marmelroy/PhoneNumberKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PhoneNumberKit.podspec
60 lines (49 loc) · 2.21 KB
/
PhoneNumberKit.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
55
56
57
58
59
60
#
# Be sure to run `pod lib lint PhoneNumberKit.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 http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = "PhoneNumberKit"
s.version = "3.0.0"
s.summary = "Swift framework for working with phone numbers"
# 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
A Swift framework for parsing, formatting and validating international phone numbers. Inspired by Google's libphonenumber.
DESC
s.homepage = "https://github.com/marmelroy/PhoneNumberKit"
# s.screenshots = "www.example.com/screenshots_1", "www.example.com/screenshots_2"
s.license = 'MIT'
s.author = { "Roy Marmelstein" => "[email protected]" }
s.source = { :git => "https://github.com/marmelroy/PhoneNumberKit.git", :tag => s.version.to_s }
s.social_media_url = "http://twitter.com/marmelroy"
s.requires_arc = true
s.ios.frameworks = 'CoreTelephony'
s.osx.frameworks = 'CoreTelephony'
s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.10'
s.tvos.deployment_target = '9.0'
s.watchos.deployment_target = '2.0'
s.pod_target_xcconfig = { 'SWIFT_VERSION' => '5.0' }
s.swift_version = '5.0'
s.subspec 'PhoneNumberKitCore' do |core|
core.ios.deployment_target = '8.0'
core.osx.deployment_target = '10.10'
core.tvos.deployment_target = '9.0'
core.watchos.deployment_target = '2.0'
core.source_files = "PhoneNumberKit/*.{swift}"
core.resources = "PhoneNumberKit/Resources/PhoneNumberMetadata.json"
end
s.subspec 'UIKit' do |ui|
ui.dependency 'PhoneNumberKit/PhoneNumberKitCore'
ui.ios.deployment_target = '8.0'
ui.tvos.deployment_target = '9.0'
ui.source_files = 'PhoneNumberKit/UI/'
end
end