Browse Source

Merge branch 'feature/circle-ci' into fix/session-failed

onevcat 10 years ago
parent
commit
c85bfe7179
3 changed files with 20 additions and 10 deletions
  1. 14 0
      Kingfisher/ImageDownloader.swift
  2. 0 10
      Kingfisher/KingfisherManager.swift
  3. 6 0
      circle.yml

+ 14 - 0
Kingfisher/ImageDownloader.swift

@@ -40,6 +40,20 @@ private let downloaderBarrierName = "com.onevcat.Kingfisher.ImageDownloader.Barr
 private let imageProcessQueueName = "com.onevcat.Kingfisher.ImageDownloader.Process."
 private let instance = ImageDownloader(name: defaultDownloaderName)
 
+
+/**
+The error code.
+
+- BadData: The downloaded data is not an image or the data is corrupted.
+- NotModified: The remote server responsed a 304 code. No image data downloaded.
+- InvalidURL: The URL is invalid.
+*/
+public enum KingfisherError: Int {
+    case BadData = 10000
+    case NotModified = 10001
+    case InvalidURL = 20000
+}
+
 /**
 *	Protocol of `ImageDownloader`.
 */

+ 0 - 10
Kingfisher/KingfisherManager.swift

@@ -52,16 +52,6 @@ public class RetrieveImageTask {
 
 public let KingfisherErrorDomain = "com.onevcat.Kingfisher.Error"
 
-/**
-The error code.
-
-- BadData: The downloaded data is not an image or the data is corrupted.
-*/
-public enum KingfisherError: Int {
-    case BadData = 10000
-    case NotModified = 10001
-    case InvalidURL = 20000
-}
 
 private let instance = KingfisherManager()
 

+ 6 - 0
circle.yml

@@ -0,0 +1,6 @@
+machine:
+  environment:
+    XCODE_SCHEME: Kingfisher
+  xcode:
+    version: "6.3.1"
+