浏览代码

Update podspec

onevcat 7 年之前
父节点
当前提交
a6aa5d8541
共有 3 个文件被更改,包括 40 次插入28 次删除
  1. 2 1
      Gemfile
  2. 9 8
      Gemfile.lock
  3. 29 19
      Kingfisher.podspec

+ 2 - 1
Gemfile

@@ -3,4 +3,5 @@
 source "https://rubygems.org"
 
 gem "fastlane"
-gem "jazzy"
+gem "jazzy"
+gem "cocoapods", "~> 1.6.0.beta"

+ 9 - 8
Gemfile.lock

@@ -12,26 +12,26 @@ GEM
     atomos (0.1.3)
     babosa (1.0.2)
     claide (1.0.2)
-    cocoapods (1.5.3)
+    cocoapods (1.6.0.beta.2)
       activesupport (>= 4.0.2, < 5)
       claide (>= 1.0.2, < 2.0)
-      cocoapods-core (= 1.5.3)
+      cocoapods-core (= 1.6.0.beta.2)
       cocoapods-deintegrate (>= 1.0.2, < 2.0)
-      cocoapods-downloader (>= 1.2.0, < 2.0)
+      cocoapods-downloader (>= 1.2.2, < 2.0)
       cocoapods-plugins (>= 1.0.0, < 2.0)
       cocoapods-search (>= 1.0.0, < 2.0)
       cocoapods-stats (>= 1.0.0, < 2.0)
-      cocoapods-trunk (>= 1.3.0, < 2.0)
+      cocoapods-trunk (>= 1.3.1, < 2.0)
       cocoapods-try (>= 1.1.0, < 2.0)
       colored2 (~> 3.1)
       escape (~> 0.0.4)
       fourflusher (~> 2.0.1)
       gh_inspector (~> 1.0)
-      molinillo (~> 0.6.5)
+      molinillo (~> 0.6.6)
       nap (~> 1.0)
-      ruby-macho (~> 1.1)
-      xcodeproj (>= 1.5.7, < 2.0)
-    cocoapods-core (1.5.3)
+      ruby-macho (~> 1.3, >= 1.3.1)
+      xcodeproj (>= 1.7.0, < 2.0)
+    cocoapods-core (1.6.0.beta.2)
       activesupport (>= 4.0.2, < 6)
       fuzzy_match (~> 2.0.4)
       nap (~> 1.0)
@@ -219,6 +219,7 @@ PLATFORMS
   ruby
 
 DEPENDENCIES
+  cocoapods (~> 1.6.0.beta)
   fastlane
   jazzy
 

+ 29 - 19
Kingfisher.podspec

@@ -1,11 +1,11 @@
 Pod::Spec.new do |s|
 
   s.name         = "Kingfisher"
-  s.version      = "4.10.1"
+  s.version      = "5.0.0"
   s.summary      = "A lightweight and pure Swift implemented library for downloading and cacheing image from the web."
 
   s.description  = <<-DESC
-                   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.
+                   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.
 
                    * Everything in Kingfisher goes asynchronously, not only downloading, but also caching. That means you can never worry about blocking your UI thread.
                    * 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.
@@ -27,29 +27,39 @@ Pod::Spec.new do |s|
 
   s.swift_version = "4.2"
 
-  s.ios.deployment_target = "8.0"
-  s.tvos.deployment_target = "9.0"
-  s.osx.deployment_target = "10.10"
+  s.ios.deployment_target = "10.0"
+  s.tvos.deployment_target = "10.0"
+  s.osx.deployment_target = "10.12"
   s.watchos.deployment_target = "3.0"
 
   s.source       = { :git => "https://github.com/onevcat/Kingfisher.git", :tag => s.version }
   
-  s.source_files  = ["Sources/*.swift", "Sources/Kingfisher.h", "Sources/Kingfisher.swift"]
+  s.source_files  = ["Sources/**/*.swift", "Sources/Kingfisher.h"]
   s.public_header_files = ["Sources/Kingfisher.h"]
   
-  s.osx.exclude_files = ["Sources/AnimatedImageView.swift", "Sources/UIButton+Kingfisher.swift", "Sources/WKInterfaceImage+Kingfisher.swift"]
-  s.watchos.exclude_files = ["Sources/AnimatedImageView.swift", 
-                             "Sources/UIButton+Kingfisher.swift", 
-                             "Sources/ImageView+Kingfisher.swift", 
-                             "Sources/NSButton+Kingfisher.swift", 
-                             "Sources/Indicator.swift", 
-                             "Sources/Filter.swift",
-                             "Sources/Placeholder.swift"
-                            ]
-  s.ios.exclude_files = ["Sources/NSButton+Kingfisher.swift", "Sources/WKInterfaceImage+Kingfisher.swift"]
-  s.tvos.exclude_files = ["Sources/NSButton+Kingfisher.swift", "Sources/WKInterfaceImage+Kingfisher.swift"]
-
+  s.osx.exclude_files = [
+      "Sources/Views/AnimatedImageView.swift", 
+      "Sources/Extensions/UIButton+Kingfisher.swift", 
+      "Sources/Extensions/WKInterfaceImage+Kingfisher.swift"
+    ]
+  s.watchos.exclude_files = [
+      "Sources/Views/AnimatedImageView.swift", 
+      "Sources/Extensions/UIButton+Kingfisher.swift", 
+      "Sources/Extensions/ImageView+Kingfisher.swift", 
+      "Sources/Extensions/NSButton+Kingfisher.swift", 
+      "Sources/Views/Indicator.swift", 
+      "Sources/Image/Filter.swift",
+      "Sources/Image/Placeholder.swift"
+    ]
+  s.ios.exclude_files = [
+      "Sources/Extensions/NSButton+Kingfisher.swift", 
+      "Sources/Extensions/WKInterfaceImage+Kingfisher.swift"
+    ]
+  s.tvos.exclude_files = [
+      "Sources/Extensions/NSButton+Kingfisher.swift", 
+      "Sources/Extensions/WKInterfaceImage+Kingfisher.swift"
+    ]
   s.requires_arc = true
-  s.framework = "CFNetwork"
+  s.frameworks = "CFNetwork", "Accelerate"
 
 end