Skip to content

Commit ae84e37

Browse files
authored
Merge pull request kodecocodes#834 from gmotzespina/master
Swift 4.2 Migration - Depth-First Search
2 parents 3d8ad39 + 0f739b5 commit ae84e37

File tree

8 files changed

+24
-9
lines changed

8 files changed

+24
-9
lines changed

All-Pairs Shortest Paths/APSP/APSP.xcodeproj/project.pbxproj

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@
196196
};
197197
493D8DF01CDD5B960089795A = {
198198
CreatedOnToolsVersion = 7.3;
199-
LastSwiftMigration = 0820;
199+
LastSwiftMigration = 1010;
200200
};
201201
};
202202
};
@@ -420,7 +420,8 @@
420420
PRODUCT_BUNDLE_IDENTIFIER = "com.swift-algorithm-club.APSP";
421421
PRODUCT_NAME = "$(TARGET_NAME)";
422422
SKIP_INSTALL = YES;
423-
SWIFT_VERSION = 3.0;
423+
SWIFT_SWIFT3_OBJC_INFERENCE = On;
424+
SWIFT_VERSION = 4.2;
424425
VERSIONING_SYSTEM = "apple-generic";
425426
VERSION_INFO_PREFIX = "";
426427
};
@@ -442,7 +443,8 @@
442443
PRODUCT_BUNDLE_IDENTIFIER = "com.swift-algorithm-club.APSP";
443444
PRODUCT_NAME = "$(TARGET_NAME)";
444445
SKIP_INSTALL = YES;
445-
SWIFT_VERSION = 3.0;
446+
SWIFT_SWIFT3_OBJC_INFERENCE = On;
447+
SWIFT_VERSION = 4.2;
446448
VERSIONING_SYSTEM = "apple-generic";
447449
VERSION_INFO_PREFIX = "";
448450
};
Binary file not shown.
Binary file not shown.
Binary file not shown.

Depth-First Search/DepthFirstSearch.playground/Pages/Simple Example.xcplaygroundpage/Contents.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
// last checked with Xcode 9.0b4
2-
#if swift(>=4.0)
3-
print("Hello, Swift 4!")
4-
#endif
1+
// last checked with Xcode 10.1
52

63
func depthFirstSearch(_ graph: Graph, source: Node) -> [String] {
74
var nodesExplored = [source.label]

Depth-First Search/Tests/Tests.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@
234234
PRODUCT_BUNDLE_IDENTIFIER = swift.algorithm.club.Tests;
235235
PRODUCT_NAME = "$(TARGET_NAME)";
236236
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
237-
SWIFT_VERSION = 4.0;
237+
SWIFT_VERSION = 4.2;
238238
};
239239
name = Debug;
240240
};
@@ -247,7 +247,7 @@
247247
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
248248
PRODUCT_BUNDLE_IDENTIFIER = swift.algorithm.club.Tests;
249249
PRODUCT_NAME = "$(TARGET_NAME)";
250-
SWIFT_VERSION = 4.0;
250+
SWIFT_VERSION = 4.2;
251251
};
252252
name = Release;
253253
};
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded</key>
6+
<false/>
7+
</dict>
8+
</plist>

0 commit comments

Comments
 (0)