Skip to content

Commit

Permalink
Merge pull request romansorochak#6 from Immoweb/swift-4
Browse files Browse the repository at this point in the history
Update to Swift 4
  • Loading branch information
romansorochak authored Sep 26, 2017
2 parents 2f71445 + 7146490 commit 43330d9
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0
4.0
32 changes: 24 additions & 8 deletions ParallaxHeader.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@
B5CCB78C1EFD0E5400194CFB = {
CreatedOnToolsVersion = 8.3.3;
DevelopmentTeam = SWXVWAU9H9;
LastSwiftMigration = 0830;
LastSwiftMigration = 0900;
ProvisioningStyle = Automatic;
};
B5CCB7951EFD0E5500194CFB = {
Expand All @@ -445,11 +445,13 @@
B5CCB7AA1EFD0F2300194CFB = {
CreatedOnToolsVersion = 8.3.3;
DevelopmentTeam = SWXVWAU9H9;
LastSwiftMigration = 0900;
ProvisioningStyle = Automatic;
};
B5CCB7BD1EFD0F2300194CFB = {
CreatedOnToolsVersion = 8.3.3;
DevelopmentTeam = SWXVWAU9H9;
LastSwiftMigration = 0900;
ProvisioningStyle = Automatic;
TestTargetID = B5CCB7AA1EFD0F2300194CFB;
};
Expand Down Expand Up @@ -523,13 +525,16 @@
files = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-Exmple-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
383E94231D2D333DBB6D5C66 /* [CP] Copy Pods Resources */ = {
Expand All @@ -553,9 +558,14 @@
files = (
);
inputPaths = (
"${SRCROOT}/Pods/Target Support Files/Pods-Exmple/Pods-Exmple-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/RSReusable/Reusable.framework",
"${BUILT_PRODUCTS_DIR}/SnapKit/SnapKit.framework",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Reusable.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SnapKit.framework",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
Expand Down Expand Up @@ -768,7 +778,8 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 3.0;
SWIFT_SWIFT3_OBJC_INFERENCE = On;
SWIFT_VERSION = 4.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
Expand All @@ -790,7 +801,8 @@
PRODUCT_BUNDLE_IDENTIFIER = com.magiclab.ParallaxHeader;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 3.0;
SWIFT_SWIFT3_OBJC_INFERENCE = On;
SWIFT_VERSION = 4.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
Expand Down Expand Up @@ -833,7 +845,8 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.magiclab.Exmple;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
SWIFT_SWIFT3_OBJC_INFERENCE = On;
SWIFT_VERSION = 4.0;
};
name = Debug;
};
Expand All @@ -849,7 +862,8 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.magiclab.Exmple;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
SWIFT_SWIFT3_OBJC_INFERENCE = On;
SWIFT_VERSION = 4.0;
};
name = Release;
};
Expand All @@ -863,7 +877,8 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.magiclab.ExmpleTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
SWIFT_SWIFT3_OBJC_INFERENCE = On;
SWIFT_VERSION = 4.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Exmple.app/Exmple";
};
name = Debug;
Expand All @@ -878,7 +893,8 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.magiclab.ExmpleTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
SWIFT_SWIFT3_OBJC_INFERENCE = On;
SWIFT_VERSION = 4.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Exmple.app/Exmple";
};
name = Release;
Expand Down
6 changes: 3 additions & 3 deletions ParallaxHeader/ParallaxHeader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public class ParallaxHeader: NSObject {
"v" : view
]
let metrics = [
"highPriority" : UILayoutPriorityDefaultHigh,
"highPriority" : UILayoutPriority.defaultHigh,
"height" : height
] as [String : Any]
contentView.addConstraints(
Expand Down Expand Up @@ -333,7 +333,7 @@ public class ParallaxHeader: NSObject {
"v" : view
]
let metrics = [
"highPriority" : UILayoutPriorityDefaultHigh,
"highPriority" : UILayoutPriority.defaultHigh,
"height" : height
] as [String : Any]
contentView.addConstraints(
Expand Down Expand Up @@ -407,7 +407,7 @@ public class ParallaxHeader: NSObject {
"v" : view
]
let metrics = [
"highPriority" : UILayoutPriorityDefaultHigh,
"highPriority" : UILayoutPriority.defaultHigh,
"height" : height
] as [String : Any]
contentView.addConstraints(
Expand Down
2 changes: 1 addition & 1 deletion Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: 3c522e1f0f4d68a6e342b12a8c2de173654d2cf8

COCOAPODS: 1.2.0
COCOAPODS: 1.3.1

0 comments on commit 43330d9

Please sign in to comment.