Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. Pod::Spec.new do |s|
  2. s.name = 'ZXingObjC'
  3. s.version = '3.2.1'
  4. s.summary = 'An Objective-C Port of the ZXing barcode framework.'
  5. s.homepage = 'https://github.com/TheLevelUp/ZXingObjC'
  6. s.author = 'ZXingObjC team'
  7. s.license = { :type => 'Apache License 2.0', :file => 'COPYING' }
  8. s.source = { :git => 'https://github.com/TheLevelUp/ZXingObjC.git', :tag => "#{s.version}" }
  9. s.requires_arc = true
  10. s.xcconfig = { "OTHER_LDFLAGS" => "-ObjC" }
  11. s.ios.deployment_target = '8.0'
  12. s.osx.deployment_target = '10.8'
  13. s.ios.frameworks = 'AVFoundation', 'CoreGraphics', 'CoreMedia', 'CoreVideo', 'ImageIO', 'QuartzCore'
  14. s.osx.frameworks = 'AVFoundation', 'CoreMedia', 'QuartzCore'
  15. s.default_subspec = 'All'
  16. s.subspec 'All' do |ss|
  17. ss.source_files = 'ZXingObjC/**/*.{h,m}'
  18. end
  19. s.subspec 'Core' do |ss|
  20. ss.source_files = 'ZXingObjC/*.{h,m}', 'ZXingObjC/client/*.{h,m}', 'ZXingObjC/common/**/*.{h,m}', 'ZXingObjC/core/**/*.{h,m}', 'ZXingObjC/multi/**/*.{h,m}'
  21. ss.xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS" => "ZXINGOBJC_USE_SUBSPECS" }
  22. end
  23. s.subspec 'Aztec' do |ss|
  24. ss.dependency 'ZXingObjC/Core'
  25. ss.source_files = 'ZXingObjC/aztec/**/*.{h,m}'
  26. ss.xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS" => "ZXINGOBJC_USE_SUBSPECS ZXINGOBJC_AZTEC" }
  27. end
  28. s.subspec 'DataMatrix' do |ss|
  29. ss.dependency 'ZXingObjC/Core'
  30. ss.source_files = 'ZXingObjC/datamatrix/**/*.{h,m}'
  31. ss.xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS" => "ZXINGOBJC_USE_SUBSPECS ZXINGOBJC_DATAMATRIX" }
  32. end
  33. s.subspec 'MaxiCode' do |ss|
  34. ss.dependency 'ZXingObjC/Core'
  35. ss.source_files = 'ZXingObjC/maxicode/**/*.{h,m}'
  36. ss.xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS" => "ZXINGOBJC_USE_SUBSPECS ZXINGOBJC_MAXICODE" }
  37. end
  38. s.subspec 'OneD' do |ss|
  39. ss.dependency 'ZXingObjC/Core'
  40. ss.source_files = 'ZXingObjC/oned/**/*.{h,m}', 'ZXingObjC/client/result/**/*.{h,m}'
  41. ss.xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS" => "ZXINGOBJC_USE_SUBSPECS ZXINGOBJC_ONED" }
  42. end
  43. s.subspec 'PDF417' do |ss|
  44. ss.dependency 'ZXingObjC/Core'
  45. ss.source_files = 'ZXingObjC/pdf417/**/*.{h,m}'
  46. ss.xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS" => "ZXINGOBJC_USE_SUBSPECS ZXINGOBJC_PDF417" }
  47. end
  48. s.subspec 'QRCode' do |ss|
  49. ss.dependency 'ZXingObjC/Core'
  50. ss.source_files = 'ZXingObjC/qrcode/**/*.{h,m}'
  51. ss.xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS" => "ZXINGOBJC_USE_SUBSPECS ZXINGOBJC_QRCODE" }
  52. end
  53. end