Skip to content

Commit

Permalink
Update to Swift 5
Browse files Browse the repository at this point in the history
  • Loading branch information
lukakerr committed Mar 25, 2019
1 parent 93e8b78 commit 0ceabd2
Show file tree
Hide file tree
Showing 8 changed files with 65 additions and 55 deletions.
22 changes: 12 additions & 10 deletions Pine.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
008CD6E8A653CDDA656D692B /* Pods_Pine.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B66B7DAE689A6827E658233B /* Pods_Pine.framework */; };
8F34580B873BD2CCD033F53B /* Pods_Pine.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 300B3A71DC5543C53B684729 /* Pods_Pine.framework */; };
A104782520E7338800E0930A /* FileSystemItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = A104782420E7338800E0930A /* FileSystemItem.swift */; };
A10B86DD2227BB3E000656DD /* PreferencesSplitViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A10B86DC2227BB3E000656DD /* PreferencesSplitViewController.swift */; };
Expand Down Expand Up @@ -203,6 +204,7 @@
buildActionMask = 2147483647;
files = (
8F34580B873BD2CCD033F53B /* Pods_Pine.framework in Frameworks */,
008CD6E8A653CDDA656D692B /* Pods_Pine.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -568,12 +570,12 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0930;
LastUpgradeCheck = 1010;
LastUpgradeCheck = 1020;
ORGANIZATIONNAME = "Luka Kerr";
TargetAttributes = {
A156AF7C2090606C0098BBDD = {
CreatedOnToolsVersion = 9.3;
LastSwiftMigration = 1000;
LastSwiftMigration = 1020;
SystemCapabilities = {
com.apple.ApplicationGroups.Mac = {
enabled = 0;
Expand All @@ -585,12 +587,12 @@
};
A156AF902090606D0098BBDD = {
CreatedOnToolsVersion = 9.3;
LastSwiftMigration = 1000;
LastSwiftMigration = 1020;
TestTargetID = A156AF7C2090606C0098BBDD;
};
A156AF9B2090606D0098BBDD = {
CreatedOnToolsVersion = 9.3;
LastSwiftMigration = 1000;
LastSwiftMigration = 1020;
TestTargetID = A156AF7C2090606C0098BBDD;
};
};
Expand Down Expand Up @@ -944,7 +946,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_INCLUDE_PATHS = "";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand All @@ -971,7 +973,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_INCLUDE_PATHS = "";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
};
name = Release;
};
Expand All @@ -992,7 +994,7 @@
PRODUCT_BUNDLE_IDENTIFIER = io.github.lukakerr.PineTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_INCLUDE_PATHS = "";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Pine.app/Contents/MacOS/Pine";
};
name = Debug;
Expand All @@ -1014,7 +1016,7 @@
PRODUCT_BUNDLE_IDENTIFIER = io.github.lukakerr.PineTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_INCLUDE_PATHS = "";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Pine.app/Contents/MacOS/Pine";
};
name = Release;
Expand All @@ -1035,7 +1037,7 @@
PRODUCT_BUNDLE_IDENTIFIER = io.github.lukakerr.PineUITests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_INCLUDE_PATHS = "";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TEST_TARGET_NAME = Pine;
};
name = Debug;
Expand All @@ -1056,7 +1058,7 @@
PRODUCT_BUNDLE_IDENTIFIER = io.github.lukakerr.PineUITests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_INCLUDE_PATHS = "";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TEST_TARGET_NAME = Pine;
};
name = Release;
Expand Down
2 changes: 1 addition & 1 deletion Pine.xcodeproj/xcshareddata/xcschemes/Pine.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1010"
LastUpgradeVersion = "1020"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
12 changes: 6 additions & 6 deletions Pine/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="14460.31" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14460.31"/>
<plugIn identifier="com.apple.WebKit2IBPlugin" version="14460.31"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14490.70"/>
<plugIn identifier="com.apple.WebKit2IBPlugin" version="14490.70"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
Expand Down Expand Up @@ -1126,10 +1126,10 @@
</scene>
</scenes>
<resources>
<image name="Folder" width="75" height="75"/>
<image name="Folder" width="50" height="50"/>
<image name="NSFolder" width="32" height="32"/>
<image name="NSLinenBackgroundPattern" width="256" height="256"/>
<image name="Plus" width="75" height="75"/>
<image name="Sidebar" width="75" height="75"/>
<image name="Plus" width="50" height="50"/>
<image name="Sidebar" width="50" height="50"/>
</resources>
</document>
4 changes: 2 additions & 2 deletions Pine/Models/OpenDocuments.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ final class OpenDocuments {

/// Remove an item from the open documents given a URL
public func remove(itemWithUrl url: URL) {
if let index = documents.index(where: { $0.fullPath == url.relativePath }) {
if let index = documents.firstIndex(where: { $0.fullPath == url.relativePath }) {
documents.remove(at: index)
}
}

/// Remove an item from the open documents given the item
public func remove(item doc: FileSystemItem) {
if let index = documents.index(where: { $0 == doc }) {
if let index = documents.firstIndex(where: { $0 == doc }) {
documents.remove(at: index)
}
}
Expand Down
4 changes: 2 additions & 2 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ EXTERNAL SOURCES:

CHECKOUT OPTIONS:
cmark-gfm-swift:
:commit: 958fa1050ea2561659f9e4d9bc4ac2266896eef4
:commit: 4102c78d08ea44036dab3a623389827f3532e9ea
:git: https://github.com/lukakerr/cmark-gfm-swift.git
Highlightr:
:commit: b32a617fef4822ab7ae6818a7d3e47765feecdf0
:commit: 31e3d89c9635ec2967ec7bf7f3d14a4a85041bbf
:git: https://github.com/lukakerr/Highlightr.git

SPEC CHECKSUMS:
Expand Down
2 changes: 1 addition & 1 deletion Pods/Highlightr/Pod/Classes/Theme.swift

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 39 additions & 31 deletions Pods/Pods.xcodeproj/project.pbxproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0ceabd2

Please sign in to comment.