47 lines
1.8 KiB
Ruby
47 lines
1.8 KiB
Ruby
Pod::Spec.new do |s|
|
||
s.name = "NewHTTPDNS"
|
||
s.version = "1.0.0"
|
||
s.summary = "New Mobile Service HTTPDNS iOS SDK (source distribution)."
|
||
s.description = <<-DESC
|
||
HTTPDNS iOS SDK 源码分发版本,提供通过 HTTP(S) 进行域名解析<EFBFBD><EFBFBD>? IPv4/IPv6 支持、鉴权签名、可选参数加密、内存与 SQLite 持久化缓存<EFBFBD><EFBFBD>? 区域调度与降级到本地解析等能力<EFBFBD><EFBFBD>? DESC
|
||
|
||
s.homepage = "https://www.aliyun.com/product/httpdns"
|
||
s.authors = { "zhouzhuo" => "yecan.xyc@alibaba-inc.com" }
|
||
|
||
# 注意:发布到 Specs 仓库前,请将 git 地址指向正式仓库并按版本<E78988><E69CAC>?tag
|
||
s.source = { :git => "https://github.com/aliyun/alibabacloud-httpdns-ios-sdk", :tag => s.version.to_s }
|
||
|
||
s.platform = :ios, "12.0"
|
||
s.requires_arc = true
|
||
|
||
# 以源码方式集成,仅收<E4BB85><E694B6>?SDK 源码目录
|
||
s.source_files = "NewHttpDNS/**/*.{h,m}"
|
||
|
||
# 资源:隐私清<E7A781><E6B885>? s.resources = "resource/PrivacyInfo.xcprivacy"
|
||
|
||
# 公开头文件(<E4BBB6><EFBC88>?umbrella 头导入的稳定接口<E68EA5><E58FA3>? s.public_header_files = [
|
||
"NewHttpDNS/NewHttpDNS.h",
|
||
"NewHttpDNS/HttpdnsService.h",
|
||
"NewHttpDNS/HttpdnsEdgeService.h",
|
||
"NewHttpDNS/Model/HttpdnsResult.h",
|
||
"NewHttpDNS/Model/HttpdnsRequest.h",
|
||
"NewHttpDNS/Log/HttpdnsLog.h",
|
||
"NewHttpDNS/Log/HttpdnsLoggerProtocol.h",
|
||
"NewHttpDNS/HttpdnsDegradationDelegate.h",
|
||
"NewHttpDNS/Config/HttpdnsPublicConstant.h",
|
||
"NewHttpDNS/IpStack/HttpdnsIpStackDetector.h"
|
||
]
|
||
|
||
# 系统库与框架
|
||
s.frameworks = ["CoreTelephony", "SystemConfiguration"]
|
||
s.libraries = ["sqlite3.0", "resolv", "z"]
|
||
|
||
# 链接器参数:保留 Objective‑C 分类
|
||
s.pod_target_xcconfig = {
|
||
'OTHER_LDFLAGS' => '$(inherited) -ObjC'
|
||
}
|
||
s.user_target_xcconfig = {
|
||
'OTHER_LDFLAGS' => '$(inherited) -ObjC'
|
||
}
|
||
end
|