加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ZXingObjC.podspec 2.39 KB
一键复制 编辑 原始数据 按行查看 历史
Ben John 提交于 2019-02-22 00:32 . Update README and podspec
Pod::Spec.new do |s|
s.name = 'ZXingObjC'
s.version = '3.6.5'
s.summary = 'An Objective-C Port of the ZXing barcode framework.'
s.homepage = 'https://github.com/zxingify/zxingify-objc'
s.author = 'zxingify'
s.license = { :type => 'Apache License 2.0', :file => 'COPYING' }
s.source = { :git => 'https://github.com/zxingify/zxingify-objc.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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化