Skip to content

Commit 7a43eee

Browse files
authored
Merge pull request #27 from jinSasaki/swift4
Support Swift4
2 parents 6971a2f + 52a64ca commit 7a43eee

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: objective-c
22
script:
33
- xcodebuild build-for-testing test-without-building -scheme VulcanTests -configuration Debug -sdk iphonesimulator -destination "name=iPhone 7" ENABLE_TESTABILITY=YES
4-
osx_image: xcode8.1
4+
osx_image: xcode9
55
xcode_project: Vulcan.xcodeproj
66
xcode_scheme: VulcanTests
77
xcode_sdk: iphonesimulator

Sources/Vulcan/ImageDownloader.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ open class ImageCache: ImageCachable {
6969
public var diskPath: String? = nil
7070

7171
let cache = NSCache<NSString, Image>()
72+
73+
public init() {}
7274

7375
open func saveImage(image: Image, with id: String) {
7476
cache.setObject(image, forKey: id as NSString)

Vulcan.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@
368368
PRODUCT_BUNDLE_IDENTIFIER = jp.sasakky.Vulcan;
369369
PRODUCT_NAME = "$(TARGET_NAME)";
370370
SKIP_INSTALL = YES;
371-
SWIFT_VERSION = 3.0;
371+
SWIFT_VERSION = 4.0;
372372
};
373373
name = Debug;
374374
};
@@ -387,7 +387,7 @@
387387
PRODUCT_BUNDLE_IDENTIFIER = jp.sasakky.Vulcan;
388388
PRODUCT_NAME = "$(TARGET_NAME)";
389389
SKIP_INSTALL = YES;
390-
SWIFT_VERSION = 3.0;
390+
SWIFT_VERSION = 4.0;
391391
};
392392
name = Release;
393393
};
@@ -399,7 +399,7 @@
399399
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
400400
PRODUCT_BUNDLE_IDENTIFIER = jp.sasakky.VulcanTests;
401401
PRODUCT_NAME = "$(TARGET_NAME)";
402-
SWIFT_VERSION = 3.0;
402+
SWIFT_VERSION = 4.0;
403403
};
404404
name = Debug;
405405
};
@@ -411,7 +411,7 @@
411411
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
412412
PRODUCT_BUNDLE_IDENTIFIER = jp.sasakky.VulcanTests;
413413
PRODUCT_NAME = "$(TARGET_NAME)";
414-
SWIFT_VERSION = 3.0;
414+
SWIFT_VERSION = 4.0;
415415
};
416416
name = Release;
417417
};

0 commit comments

Comments
 (0)