Kingfisher.podspec 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. Pod::Spec.new do |s|
  2. s.name = "Kingfisher"
  3. s.version = "5.15.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 powerful 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 = "https://twitter.com/onevcat"
  21. s.swift_version = "4.2"
  22. s.swift_versions = ['4.0', '4.2', '5.0']
  23. s.ios.deployment_target = "10.0"
  24. s.tvos.deployment_target = "10.0"
  25. s.osx.deployment_target = "10.12"
  26. s.watchos.deployment_target = "3.0"
  27. s.source = { :git => "https://github.com/onevcat/Kingfisher.git", :tag => s.version }
  28. s.default_subspecs = "Core"
  29. s.requires_arc = true
  30. s.frameworks = "CFNetwork", "Accelerate"
  31. s.subspec "Core" do |sp|
  32. sp.source_files = ["Sources/**/*.swift", "Sources/Kingfisher.h"]
  33. sp.exclude_files = ["Sources/SwiftUI/**"]
  34. end
  35. s.subspec "SwiftUI" do |sp|
  36. sp.source_files = ["Sources/SwiftUI/**"]
  37. sp.exclude_files = ["Sources/SwiftUI/Delegate.swift"]
  38. sp.dependency "Kingfisher/Core"
  39. sp.ios.deployment_target = "13.0"
  40. sp.tvos.deployment_target = "13.0"
  41. sp.osx.deployment_target = "10.15"
  42. sp.watchos.deployment_target = "6.0"
  43. sp.pod_target_xcconfig = { 'OTHER_SWIFT_FLAGS' => '-DKingfisherCocoaPods' }
  44. end
  45. end