Skip to content

Commit

Permalink
Updated to Swift 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorMuzyka authored and phimage committed Sep 18, 2018
1 parent e2f4578 commit 71188fb
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 16 deletions.
22 changes: 11 additions & 11 deletions FileKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@
};
5204B8571B96B85E00AA473F = {
CreatedOnToolsVersion = 7.0;
LastSwiftMigration = 0800;
LastSwiftMigration = 1000;
};
5263A9031B96BA3D00635A93 = {
CreatedOnToolsVersion = 7.0;
Expand Down Expand Up @@ -942,7 +942,7 @@
PRODUCT_NAME = "$(PROJECT_NAME)";
SKIP_INSTALL = YES;
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
};
name = Debug;
};
Expand All @@ -963,7 +963,7 @@
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
};
name = Release;
};
Expand All @@ -982,7 +982,7 @@
PRODUCT_NAME = "$(PROJECT_NAME)";
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
Expand All @@ -1003,7 +1003,7 @@
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
Expand All @@ -1018,7 +1018,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.nikolaivazquez.FileKitTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
};
name = Debug;
};
Expand All @@ -1032,7 +1032,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
};
name = Release;
};
Expand All @@ -1051,7 +1051,7 @@
PRODUCT_NAME = "$(PROJECT_NAME)";
SDKROOT = watchos;
SKIP_INSTALL = YES;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = 4;
WATCHOS_DEPLOYMENT_TARGET = 2.0;
};
Expand All @@ -1073,7 +1073,7 @@
SDKROOT = watchos;
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = 4;
VALIDATE_PRODUCT = YES;
WATCHOS_DEPLOYMENT_TARGET = 2.0;
Expand All @@ -1095,7 +1095,7 @@
PRODUCT_NAME = "$(PROJECT_NAME)";
SDKROOT = appletvos;
SKIP_INSTALL = YES;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = 3;
TVOS_DEPLOYMENT_TARGET = 9.0;
};
Expand All @@ -1117,7 +1117,7 @@
SDKROOT = appletvos;
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = 3;
TVOS_DEPLOYMENT_TARGET = 9.0;
VALIDATE_PRODUCT = YES;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
4 changes: 2 additions & 2 deletions Sources/DispatchWatcher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ open class DispatchFileSystemWatcher {
// MARK: - Properties

/// The paths being watched.
open let path: Path
public let path: Path

/// The events used to create the watcher.
open let events: DispatchFileSystemEvents
public let events: DispatchFileSystemEvents

/// The delegate to call when events happen
weak var delegate: DispatchFileSystemWatcherDelegate?
Expand Down
2 changes: 1 addition & 1 deletion Sources/Image+FileKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ extension Image: ReadableWritable, WritableConvertible {
#if os(OSX)
return self.tiffRepresentation ?? Data()
#else
return UIImagePNGRepresentation(self) ?? Data()
return self.pngData() ?? Data()
#endif
}

Expand Down
4 changes: 2 additions & 2 deletions Sources/TextFile.swift
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ extension TextFile {
open class TextFileStream {

/// The text encoding.
open let encoding: String.Encoding
public let encoding: String.Encoding

let delimData: Data
var fileHandle: FileHandle?
Expand Down Expand Up @@ -167,7 +167,7 @@ open class TextFileStream {
open class TextFileStreamReader: TextFileStream {

/// The chunk size when reading.
open let chunkSize: Int
public let chunkSize: Int

/// Tells if the position is at the end of file.
open var atEOF: Bool = false
Expand Down

0 comments on commit 71188fb

Please sign in to comment.