Pod::Spec.new do |s| s.name = 'ZXingObjC' s.version = '3.2.1' s.summary = 'An Objective-C Port of the ZXing barcode framework.' s.homepage = 'https://github.com/TheLevelUp/ZXingObjC' s.author = 'ZXingObjC team' s.license = { :type => 'Apache License 2.0', :file => 'COPYING' } s.source = { :git => 'https://github.com/TheLevelUp/ZXingObjC.git', :tag => "#{s.version}" } s.requires_arc = true s.xcconfig = { "OTHER_LDFLAGS" => "-ObjC" } s.ios.deployment_target = '8.0' s.osx.deployment_target = '10.8' s.ios.frameworks = 'AVFoundation', 'CoreGraphics', 'CoreMedia', 'CoreVideo', 'ImageIO', 'QuartzCore' s.osx.frameworks = 'AVFoundation', 'CoreMedia', 'QuartzCore' s.default_subspec = 'All' s.subspec 'All' do |ss| ss.source_files = 'ZXingObjC/**/*.{h,m}' end s.subspec 'Core' do |ss| ss.source_files = 'ZXingObjC/*.{h,m}', 'ZXingObjC/client/*.{h,m}', 'ZXingObjC/common/**/*.{h,m}', 'ZXingObjC/core/**/*.{h,m}', 'ZXingObjC/multi/**/*.{h,m}' ss.xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS" => "ZXINGOBJC_USE_SUBSPECS" } end s.subspec 'Aztec' do |ss| ss.dependency 'ZXingObjC/Core' ss.source_files = 'ZXingObjC/aztec/**/*.{h,m}' ss.xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS" => "ZXINGOBJC_USE_SUBSPECS ZXINGOBJC_AZTEC" } end s.subspec 'DataMatrix' do |ss| ss.dependency 'ZXingObjC/Core' ss.source_files = 'ZXingObjC/datamatrix/**/*.{h,m}' ss.xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS" => "ZXINGOBJC_USE_SUBSPECS ZXINGOBJC_DATAMATRIX" } end s.subspec 'MaxiCode' do |ss| ss.dependency 'ZXingObjC/Core' ss.source_files = 'ZXingObjC/maxicode/**/*.{h,m}' ss.xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS" => "ZXINGOBJC_USE_SUBSPECS ZXINGOBJC_MAXICODE" } end s.subspec 'OneD' do |ss| ss.dependency 'ZXingObjC/Core' ss.source_files = 'ZXingObjC/oned/**/*.{h,m}', 'ZXingObjC/client/result/**/*.{h,m}' ss.xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS" => "ZXINGOBJC_USE_SUBSPECS ZXINGOBJC_ONED" } end s.subspec 'PDF417' do |ss| ss.dependency 'ZXingObjC/Core' ss.source_files = 'ZXingObjC/pdf417/**/*.{h,m}' ss.xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS" => "ZXINGOBJC_USE_SUBSPECS ZXINGOBJC_PDF417" } end s.subspec 'QRCode' do |ss| ss.dependency 'ZXingObjC/Core' ss.source_files = 'ZXingObjC/qrcode/**/*.{h,m}' ss.xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS" => "ZXINGOBJC_USE_SUBSPECS ZXINGOBJC_QRCODE" } end end