Kingfisher.podspec 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. Pod::Spec.new do |s|
  2. s.name = "Kingfisher"
  3. s.version = "4.5.0"
  4. s.summary = "A lightweight and pure Swift implemented library for downloading and cacheing image from the web."
  5. s.description = <<-DESC
  6. Kingfisher is a lightweight and pure Swift implemented library for downloading and cacheing image from the web. It provides you a chance to use pure Swift alternation in your next app.
  7. * Everything in Kingfisher goes asynchronously, not only downloading, but also caching. That means you can never worry about blocking your UI thread.
  8. * Multiple-layer cache. Downloaded image will be cached in both memory and disk. So there is no need to download it again and this could boost your app dramatically.
  9. * Cache management. You can set the max duration or size the cache could take. And the cache will also be cleaned automatically to prevent taking too much resource.
  10. * Modern framework. Kingfisher uses `NSURLSession` and the latest technology of GCD, which makes it a strong and swift framework. It also provides you easy APIs to use.
  11. * Cancellable processing task. You can cancel the downloading or retriving image process if it is not needed anymore.
  12. * Independent components. You can use the downloader or caching system separately. Or even create your own cache based on Kingfisher's code.
  13. * Options to decompress the image in background before render it, which could improve the UI performance.
  14. * A category over `UIImageView` for setting image from an url directly.
  15. DESC
  16. s.homepage = "https://github.com/onevcat/Kingfisher"
  17. s.screenshots = "https://raw.githubusercontent.com/onevcat/Kingfisher/master/images/logo.png"
  18. s.license = { :type => "MIT", :file => "LICENSE" }
  19. s.authors = { "onevcat" => "onevcat@gmail.com" }
  20. s.social_media_url = "http://twitter.com/onevcat"
  21. s.ios.deployment_target = "8.0"
  22. s.tvos.deployment_target = "9.0"
  23. s.osx.deployment_target = "10.10"
  24. s.watchos.deployment_target = "2.0"
  25. s.source = { :git => "https://github.com/onevcat/Kingfisher.git", :tag => s.version }
  26. s.source_files = ["Sources/*.swift", "Sources/Kingfisher.h", "Sources/Kingfisher.swift"]
  27. s.public_header_files = ["Sources/Kingfisher.h"]
  28. s.osx.exclude_files = ["Sources/AnimatedImageView.swift", "Sources/UIButton+Kingfisher.swift"]
  29. s.watchos.exclude_files = ["Sources/AnimatedImageView.swift",
  30. "Sources/UIButton+Kingfisher.swift",
  31. "Sources/ImageView+Kingfisher.swift",
  32. "Sources/NSButton+Kingfisher.swift",
  33. "Sources/Indicator.swift",
  34. "Sources/Filter.swift",
  35. "Sources/Placeholder.swift"
  36. ]
  37. s.ios.exclude_files = "Sources/NSButton+Kingfisher.swift"
  38. s.tvos.exclude_files = "Sources/NSButton+Kingfisher.swift"
  39. s.resources = ['Sources/CommonCrypto']
  40. s.requires_arc = true
  41. s.framework = "CFNetwork"
  42. s.pod_target_xcconfig = {
  43. 'SWIFT_VERSION' => '4.0',
  44. 'SWIFT_INCLUDE_PATHS[sdk=iphoneos*]' => '$(PODS_TARGET_SRCROOT)/Sources/CommonCrypto/iPhoneOS',
  45. 'SWIFT_INCLUDE_PATHS[sdk=iphonesimulator*]' => '$(PODS_TARGET_SRCROOT)/Sources/CommonCrypto/iPhoneSimulator',
  46. 'SWIFT_INCLUDE_PATHS[sdk=appletvos*]' => '$(PODS_TARGET_SRCROOT)/Sources/CommonCrypto/appleTVOS',
  47. 'SWIFT_INCLUDE_PATHS[sdk=appletvsimulator*]' => '$(PODS_TARGET_SRCROOT)/Sources/CommonCrypto/appleTVSimulator',
  48. 'SWIFT_INCLUDE_PATHS[sdk=macosx*]' => '$(PODS_TARGET_SRCROOT)/Sources/CommonCrypto/macOSX',
  49. 'SWIFT_INCLUDE_PATHS[sdk=watchos*]' => '$(PODS_TARGET_SRCROOT)/Sources/CommonCrypto/watchOS',
  50. 'SWIFT_INCLUDE_PATHS[sdk=watchsimulator*]' => '$(PODS_TARGET_SRCROOT)/Sources/CommonCrypto/watchSimulator',
  51. }
  52. end