Skip to content

Commit

Permalink
Update to Swift 5
Browse files Browse the repository at this point in the history
  • Loading branch information
woxtu committed Aug 25, 2019
1 parent 16cef05 commit b0bffc9
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 22 deletions.
1 change: 0 additions & 1 deletion .swift-version

This file was deleted.

4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:4.0
// swift-tools-version:5.0

import PackageDescription

Expand All @@ -22,5 +22,5 @@ let package = Package(
dependencies: ["RouteKit"]
),
],
swiftLanguageVersions: [4]
swiftLanguageVersions: [.v5]
)
15 changes: 8 additions & 7 deletions RouteKit.podspec
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
Pod::Spec.new do |spec|
spec.name = 'RouteKit'
spec.version = '0.2.1'
spec.license = { :type => 'MIT', :file => 'LICENSE-MIT' }
spec.homepage = 'https://github.com/woxtu/RouteKit'
spec.author = { 'woxtu' => '[email protected]' }
spec.summary = 'Type-safe URL routing for Swift.'
spec.source = { :git => 'https://github.com/woxtu/RouteKit.git', :tag => spec.version }
spec.name = 'RouteKit'
spec.version = '0.2.1'
spec.license = { :type => 'MIT', :file => 'LICENSE-MIT' }
spec.homepage = 'https://github.com/woxtu/RouteKit'
spec.author = { 'woxtu' => '[email protected]' }
spec.summary = 'Type-safe URL routing for Swift.'
spec.source = { :git => 'https://github.com/woxtu/RouteKit.git', :tag => spec.version }
spec.swift_version = '5.0'

spec.ios.deployment_target = '9.0'
spec.osx.deployment_target = '10.12'
Expand Down
27 changes: 15 additions & 12 deletions RouteKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -299,18 +299,22 @@
TargetAttributes = {
430EC1E020598F7600F84EA2 = {
CreatedOnToolsVersion = 9.2;
LastSwiftMigration = 1030;
ProvisioningStyle = Automatic;
};
430EC1E820598F7600F84EA2 = {
CreatedOnToolsVersion = 9.2;
LastSwiftMigration = 1030;
ProvisioningStyle = Automatic;
};
430EC2092059919F00F84EA2 = {
CreatedOnToolsVersion = 9.2;
LastSwiftMigration = 1030;
ProvisioningStyle = Automatic;
};
430EC211205991A000F84EA2 = {
CreatedOnToolsVersion = 9.2;
LastSwiftMigration = 1030;
ProvisioningStyle = Automatic;
};
};
Expand All @@ -321,6 +325,7 @@
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 435264A4204864EF00F23D74;
productRefGroup = 435264AF204864EF00F23D74 /* Products */;
Expand Down Expand Up @@ -411,7 +416,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "if which swiftformat >/dev/null; then\n swiftformat . --swiftversion 4.2 --stripunusedargs closure-only\nelse\n echo \"warning: SwiftFormat not installed, download from https://github.com/nicklockwood/SwiftFormat\"\nfi\n";
shellScript = "if which swiftformat >/dev/null; then\n swiftformat . --swiftversion 5.0 --stripunusedargs closure-only\nelse\n echo \"warning: SwiftFormat not installed, download from https://github.com/nicklockwood/SwiftFormat\"\nfi\n";
};
439B58762312810600BA9D21 /* SwiftFormat */ = {
isa = PBXShellScriptBuildPhase;
Expand All @@ -429,7 +434,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "if which swiftformat >/dev/null; then\n swiftformat . --swiftversion 4.2 --stripunusedargs closure-only\nelse\n echo \"warning: SwiftFormat not installed, download from https://github.com/nicklockwood/SwiftFormat\"\nfi\n";
shellScript = "if which swiftformat >/dev/null; then\n swiftformat . --swiftversion 5.0 --stripunusedargs closure-only\nelse\n echo \"warning: SwiftFormat not installed, download from https://github.com/nicklockwood/SwiftFormat\"\nfi\n";
};
/* End PBXShellScriptBuildPhase section */

Expand Down Expand Up @@ -522,7 +527,7 @@
PRODUCT_BUNDLE_IDENTIFIER = woxtu.RouteKit;
PRODUCT_NAME = "${PROJECT}";
SKIP_INSTALL = YES;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
Expand All @@ -543,7 +548,7 @@
PRODUCT_BUNDLE_IDENTIFIER = woxtu.RouteKit;
PRODUCT_NAME = "${PROJECT}";
SKIP_INSTALL = YES;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
Expand All @@ -557,7 +562,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "woxtu.RouteKit-iOSTests";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
Expand All @@ -571,7 +576,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "woxtu.RouteKit-iOSTests";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
Expand All @@ -595,7 +600,7 @@
PRODUCT_NAME = "${PROJECT}";
SDKROOT = macosx;
SKIP_INSTALL = YES;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand All @@ -618,7 +623,7 @@
PRODUCT_NAME = "${PROJECT}";
SDKROOT = macosx;
SKIP_INSTALL = YES;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
};
name = Release;
};
Expand All @@ -635,7 +640,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "woxtu.RouteKit-macOSTests";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand All @@ -652,7 +657,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "woxtu.RouteKit-macOSTests";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
};
name = Release;
};
Expand Down Expand Up @@ -707,7 +712,6 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.2;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -763,7 +767,6 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.2;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
Expand Down

0 comments on commit b0bffc9

Please sign in to comment.