Based on work by Martin, but using a simpler deduplication method than what libPhoneNumber had: an NSKeyedArchiver delegate. This allows us to stop deserializing and deduplicating JSON at app launch time, at the cost of some additional disk space (437KB, 223KB compressed, instead of 33KB of compressed static data within the app binary).
22 lines
1.5 KiB
Ruby
22 lines
1.5 KiB
Ruby
Pod::Spec.new do |s|
|
|
s.name = "libPhoneNumber-iOS"
|
|
s.version = "0.9.15"
|
|
s.summary = "iOS library for parsing, formatting, storing and validating international phone numbers from libphonenumber library."
|
|
s.description = <<-DESC
|
|
libPhoneNumber for iOS
|
|
iOS library for parsing, formatting, storing and validating international phone numbers from libphonenumber library.
|
|
DESC
|
|
s.homepage = "https://github.com/iziz/libPhoneNumber-iOS.git"
|
|
s.license = 'Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
|
|
s.authors = { "iziz" => "zen.isis@gmail.com", "hyukhur" => "hyukhur@gmail.com" }
|
|
s.source = { :git => "https://github.com/iziz/libPhoneNumber-iOS.git", :tag => s.version.to_s }
|
|
s.ios.framework = 'CoreTelephony'
|
|
s.ios.deployment_target = "11.0"
|
|
s.osx.deployment_target = "10.9"
|
|
s.watchos.deployment_target = "2.0"
|
|
s.tvos.deployment_target = "9.0"
|
|
s.requires_arc = true
|
|
s.resources = 'libPhoneNumber/NBPhoneNumberMetaData.plist'
|
|
s.source_files = 'libPhoneNumber/NBPhoneNumberDefines.{h,m}', 'libPhoneNumber/NBPhoneNumber.{h,m}', 'libPhoneNumber/NBNumberFormat.{h,m}', 'libPhoneNumber/NBPhoneNumberDesc.{h,m}', 'libPhoneNumber/NBPhoneMetaData.{h,m}', 'libPhoneNumber/NBPhoneNumberUtil.{h,m}', 'libPhoneNumber/NBMetadataHelper.{h,m}', 'libPhoneNumber/NBAsYouTypeFormatter.{h,m}', 'libPhoneNumber/NSArray+NBAdditions.{h,m}', 'libPhoneNumber/Internal/NBRegExMatcher.{h,m}', 'libPhoneNumber/Internal/NBRegularExpressionCache.{h,m}'
|
|
end
|