2018-08-23 10:06:47 +00:00
|
|
|
Pod::Spec.new do |s|
|
|
|
|
s.name = "TunnelKit"
|
2021-01-08 18:15:49 +00:00
|
|
|
s.version = "3.3.0"
|
2018-09-09 00:55:13 +00:00
|
|
|
s.summary = "Non-official OpenVPN client for Apple platforms."
|
2018-08-23 10:06:47 +00:00
|
|
|
|
2019-05-14 08:58:47 +00:00
|
|
|
s.homepage = "https://github.com/passepartoutvpn/tunnelkit"
|
2018-08-23 10:06:47 +00:00
|
|
|
s.license = { :type => "GPLv3", :file => "LICENSE" }
|
2020-05-13 11:53:19 +00:00
|
|
|
s.author = { "Davide De Rosa" => "me@davidederosa.com" }
|
2019-05-14 08:58:47 +00:00
|
|
|
s.source = { :git => "https://github.com/passepartoutvpn/tunnelkit.git", :tag => "v#{s.version}" }
|
2020-11-12 18:15:37 +00:00
|
|
|
s.swift_version = "5.1"
|
2018-08-23 10:06:47 +00:00
|
|
|
|
2020-11-12 18:15:37 +00:00
|
|
|
s.ios.deployment_target = "12.0"
|
|
|
|
s.osx.deployment_target = "10.15"
|
2018-08-23 10:06:47 +00:00
|
|
|
|
2019-05-24 13:35:11 +00:00
|
|
|
s.default_subspecs = "Protocols/OpenVPN"
|
2019-03-19 13:34:49 +00:00
|
|
|
|
2018-08-23 10:06:47 +00:00
|
|
|
s.subspec "Core" do |p|
|
|
|
|
p.source_files = "TunnelKit/Sources/Core/**/*.{h,m,swift}"
|
|
|
|
p.private_header_files = "TunnelKit/Sources/Core/**/*.h"
|
|
|
|
p.preserve_paths = "TunnelKit/Sources/Core/*.modulemap"
|
2019-05-19 13:06:27 +00:00
|
|
|
p.pod_target_xcconfig = { "SWIFT_INCLUDE_PATHS" => "${PODS_TARGET_SRCROOT}/TunnelKit/Sources/Core",
|
2018-08-23 10:06:47 +00:00
|
|
|
"APPLICATION_EXTENSION_API_ONLY" => "YES" }
|
|
|
|
p.dependency "SwiftyBeaver"
|
2019-04-25 14:24:19 +00:00
|
|
|
p.libraries = "resolv"
|
2018-08-23 10:06:47 +00:00
|
|
|
end
|
|
|
|
|
2019-05-23 18:15:42 +00:00
|
|
|
s.subspec "AppExtension" do |p|
|
|
|
|
p.source_files = "TunnelKit/Sources/AppExtension/**/*.swift"
|
|
|
|
p.frameworks = "NetworkExtension"
|
|
|
|
p.pod_target_xcconfig = { "APPLICATION_EXTENSION_API_ONLY" => "YES" }
|
|
|
|
|
|
|
|
p.dependency "SwiftyBeaver"
|
|
|
|
p.dependency "TunnelKit/Core"
|
|
|
|
end
|
|
|
|
|
2020-06-12 21:08:25 +00:00
|
|
|
s.subspec "Manager" do |p|
|
|
|
|
p.source_files = "TunnelKit/Sources/Manager/**/*.swift"
|
|
|
|
p.frameworks = "NetworkExtension"
|
|
|
|
|
|
|
|
p.dependency "SwiftyBeaver"
|
|
|
|
end
|
|
|
|
|
2019-05-24 13:35:11 +00:00
|
|
|
s.subspec "Protocols" do |t|
|
|
|
|
t.subspec "OpenVPN" do |p|
|
|
|
|
p.source_files = "TunnelKit/Sources/Protocols/OpenVPN/**/*.{h,m,swift}"
|
|
|
|
p.private_header_files = "TunnelKit/Sources/Protocols/OpenVPN/**/*.h"
|
|
|
|
p.preserve_paths = "TunnelKit/Sources/Protocols/OpenVPN/*.modulemap"
|
|
|
|
p.pod_target_xcconfig = { "OTHER_LDFLAGS" => "-framework openssl",
|
|
|
|
"SWIFT_INCLUDE_PATHS" => "${PODS_TARGET_SRCROOT}/TunnelKit/Sources/Protocols/OpenVPN",
|
|
|
|
"APPLICATION_EXTENSION_API_ONLY" => "YES" }
|
|
|
|
|
2020-12-28 15:39:22 +00:00
|
|
|
p.dependency "OpenSSL-Apple", "~> 1.1.1h.10"
|
2019-05-24 13:35:11 +00:00
|
|
|
p.dependency "TunnelKit/Core"
|
|
|
|
p.dependency "TunnelKit/AppExtension"
|
2020-11-14 17:08:09 +00:00
|
|
|
p.dependency "TunnelKit/Manager"
|
2019-05-24 13:35:11 +00:00
|
|
|
end
|
2018-08-23 10:06:47 +00:00
|
|
|
end
|
2019-03-19 13:34:49 +00:00
|
|
|
|
2019-05-24 13:35:11 +00:00
|
|
|
s.subspec "Extra" do |t|
|
|
|
|
t.subspec "LZO" do |p|
|
|
|
|
p.source_files = "TunnelKit/Sources/Core/LZO.h",
|
|
|
|
"TunnelKit/Sources/Core/Errors.{h,m}",
|
2019-05-28 12:59:26 +00:00
|
|
|
"TunnelKit/Sources/Extra/LZO/*.{h,m}",
|
2019-05-24 13:35:11 +00:00
|
|
|
"TunnelKit/Sources/Extra/LZO/lib/*lzo*.{h,m,c}"
|
|
|
|
p.private_header_files = "TunnelKit/Sources/Core/LZO.h",
|
|
|
|
"TunnelKit/Sources/Core/Errors.h",
|
2019-05-28 12:59:26 +00:00
|
|
|
"TunnelKit/Sources/Extra/LZO/*.h",
|
2019-05-24 13:35:11 +00:00
|
|
|
"TunnelKit/Sources/Extra/LZO/lib/*lzo*.h"
|
|
|
|
p.pod_target_xcconfig = { "APPLICATION_EXTENSION_API_ONLY" => "YES" }
|
|
|
|
end
|
2019-03-19 13:34:49 +00:00
|
|
|
end
|
2018-08-23 10:06:47 +00:00
|
|
|
end
|