GenericModules.podspec 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #
  2. # Be sure to run `pod lib lint GenericModules.podspec' to ensure this is a
  3. # valid spec before submitting.
  4. #
  5. # Any lines starting with a # are optional, but their use is encouraged
  6. # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
  7. #
  8. Pod::Spec.new do |s|
  9. s.name = 'GenericModules'
  10. s.version = '0.1.0'
  11. s.summary = '通用模块组件库'
  12. # This description is used to generate tags and improve search results.
  13. # * Think: What does it do? Why did you write it? What is the focus?
  14. # * Try to keep it short, snappy and to the point.
  15. # * Write the description between the DESC delimiters below.
  16. # * Finally, don't worry about the indent, CocoaPods strips it!
  17. s.description = <<-DESC
  18. TODO: Add long description of the pod here.
  19. DESC
  20. s.homepage = 'https://github.com/Xiong/GenericModules'
  21. # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  22. s.license = { :type => 'MIT', :file => 'LICENSE' }
  23. s.author = { 'Xiong' => '1552387702@qq.com' }
  24. s.source = { :git => 'https://github.com/Xiong/GenericModules.git', :tag => s.version.to_s }
  25. # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
  26. s.ios.deployment_target = '10.0'
  27. s.source_files = 'GenericModules/Classes/*'
  28. s.subspec "Publish" do |publish|
  29. publish.source_files = "GenericModules/Classes/Publish/*"
  30. publish.public_header_files = 'GenericModules/Classes/Publish/**/*.h'
  31. publish.dependency 'GenericModules/Macro'
  32. publish.dependency 'TZImagePickerController' #图片选择器
  33. end
  34. s.subspec "Macro" do |macro|
  35. macro.source_files = "GenericModules/Classes/Macro/*"
  36. macro.public_header_files = 'GenericModules/Classes/Macro/**/*.h'
  37. end
  38. s.subspec "Category" do |category|
  39. category.source_files = "GenericModules/Classes/Category/*"
  40. category.public_header_files = 'GenericModules/Classes/Category/**/*.h'
  41. end
  42. s.subspec "MGJRouter" do |mGJRouter|
  43. mGJRouter.source_files = "GenericModules/Classes/MGJRouter/*"
  44. mGJRouter.public_header_files = 'GenericModules/Classes/MGJRouter/**/*.h'
  45. end
  46. s.subspec "Refresh" do |refresh|
  47. refresh.source_files = "GenericModules/Classes/Refresh/*"
  48. refresh.public_header_files = 'GenericModules/Classes/Refresh/**/*.h'
  49. refresh.dependency 'MJRefresh'
  50. refresh.dependency 'lottie-ios', '=2.5.3'
  51. end
  52. s.resource_bundles = {
  53. 'GenericModules' => ['GenericModules/Assets/*.xcassets','GenericModules/Assets/images/*.png', 'GenericModules/Assets/*.json']
  54. }
  55. # s.public_header_files = 'Pod/Classes/**/*.h'
  56. # s.frameworks = 'UIKit', 'MapKit'
  57. # s.dependency 'AFNetworking', '~> 2.3'
  58. s.dependency 'Masonry'
  59. s.dependency 'ReactiveObjC'
  60. end