blob: adf9ae22677612e030596805a80f4ec161863767 [file] [log] [blame]
Pod::Spec.new do |s|
s.name = "GTXiLib"
s.version = "5.1.1"
s.summary = "iOS Accessibility testing library."
s.description = <<-DESC
iOS Accessibility testing library that works with XCTest based frameworks.
DESC
s.homepage = "https://github.com/google/GTXiLib"
s.license = "Apache License 2.0"
s.author = "j-sid"
s.platform = :ios
s.source = { :git => "https://github.com/google/GTXiLib.git", :tag => "5.1.1" }
s.ios.deployment_target = "9.0"
# Manually specify modulemap to use a custom umbrella header. CocoaPods' default
# umbrella header includes public headers from GTXOOPLib, which include C++ symbols.
# Swift uses the umbrella header for Obj-C interop, but C++ symbols cause compilation errors.
s.module_map = "GTXiLib.modulemap"
s.subspec "GTXiLib" do |sp|
sp.source_files = "Classes/**/*.{h,m,mm}"
sp.public_header_files = "Classes/**/*.h"
sp.private_header_files = "Classes/ObjCPP/*.h"
sp.exclude_files = ["Classes/XCTest/*.{h,m,mm}"]
sp.resources = ["ios_translations.bundle"]
sp.ios.deployment_target = "9.0"
sp.ios.framework = "Vision"
sp.dependency "GTXiLib/GTXOOPLib"
end
s.subspec "GTXOOPLib" do |sp|
sp.source_files = "OOPClasses/**/*.{h,cc}"
sp.public_header_files = "OOPClasses/**/*.h"
sp.resources = ["ios_translations.bundle"]
sp.ios.deployment_target = "9.0"
sp.ios.framework = "Vision"
sp.libraries = "c++"
sp.dependency "abseil"
sp.dependency "tinyxml"
end
s.subspec "XCTestLib" do |sp|
sp.source_files = "Classes/XCTest/*.{h,m,swift,mm,cc}"
sp.public_header_files = "Classes/XCTest/*.h"
sp.ios.framework = "XCTest"
sp.dependency "GTXiLib/GTXiLib"
end
s.default_subspec = "GTXiLib"
end