Skip to content

Commit bdf6c8b

Browse files
authored
Merge pull request #195 from layoutBox/update_swift_5
Upgrade to Swift 5
2 parents 9e06e35 + f7e0fed commit bdf6c8b

File tree

9 files changed

+33
-28
lines changed

9 files changed

+33
-28
lines changed

Example/PinLayoutSample.xcodeproj/project.pbxproj

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -505,19 +505,19 @@
505505
isa = PBXProject;
506506
attributes = {
507507
LastSwiftUpdateCheck = 0900;
508-
LastUpgradeCheck = 0940;
508+
LastUpgradeCheck = 1030;
509509
ORGANIZATIONNAME = layoutbox;
510510
TargetAttributes = {
511511
249EFE3E1E64FAFE00165E39 = {
512512
CreatedOnToolsVersion = 8.2.1;
513-
LastSwiftMigration = 1000;
513+
LastSwiftMigration = 1030;
514514
ProvisioningStyle = Automatic;
515515
};
516516
};
517517
};
518518
buildConfigurationList = 249EFE3A1E64FAFE00165E39 /* Build configuration list for PBXProject "PinLayoutSample" */;
519519
compatibilityVersion = "Xcode 3.2";
520-
developmentRegion = English;
520+
developmentRegion = en;
521521
hasScannedForEncodings = 0;
522522
knownRegions = (
523523
en,
@@ -724,6 +724,7 @@
724724
isa = XCBuildConfiguration;
725725
buildSettings = {
726726
ALWAYS_SEARCH_USER_PATHS = NO;
727+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
727728
CLANG_ANALYZER_NONNULL = YES;
728729
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
729730
CLANG_CXX_LIBRARY = "libc++";
@@ -782,6 +783,7 @@
782783
isa = XCBuildConfiguration;
783784
buildSettings = {
784785
ALWAYS_SEARCH_USER_PATHS = NO;
786+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
785787
CLANG_ANALYZER_NONNULL = YES;
786788
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
787789
CLANG_CXX_LIBRARY = "libc++";
@@ -843,7 +845,7 @@
843845
PRODUCT_NAME = "$(TARGET_NAME)";
844846
SWIFT_OBJC_BRIDGING_HEADER = "PinLayoutSample/UI/Examples/PinLayoutSample-Bridging-Header.h";
845847
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
846-
SWIFT_VERSION = 4.2;
848+
SWIFT_VERSION = 5.0;
847849
};
848850
name = Debug;
849851
};
@@ -860,7 +862,7 @@
860862
PRODUCT_BUNDLE_IDENTIFIER = com.layoutbox.PinLayoutSample;
861863
PRODUCT_NAME = "$(TARGET_NAME)";
862864
SWIFT_OBJC_BRIDGING_HEADER = "PinLayoutSample/UI/Examples/PinLayoutSample-Bridging-Header.h";
863-
SWIFT_VERSION = 4.2;
865+
SWIFT_VERSION = 5.0;
864866
};
865867
name = Release;
866868
};

Example/PinLayoutSample.xcodeproj/xcshareddata/xcschemes/PinLayoutSample.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1010"
3+
LastUpgradeVersion = "1030"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:4.0
1+
// swift-tools-version:5.0
22

33
import PackageDescription
44

PinLayout.xcodeproj/project.pbxproj

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@
642642
isa = PBXProject;
643643
attributes = {
644644
LastSwiftUpdateCheck = 0930;
645-
LastUpgradeCheck = 0940;
645+
LastUpgradeCheck = 1030;
646646
ORGANIZATIONNAME = mcswiftlayyout.mirego.com;
647647
TargetAttributes = {
648648
244DF2F71EF46C500090508B = {
@@ -651,13 +651,13 @@
651651
};
652652
249EFE791E64FB4C00165E39 = {
653653
CreatedOnToolsVersion = 8.2.1;
654-
LastSwiftMigration = 1000;
654+
LastSwiftMigration = 1030;
655655
ProvisioningStyle = Automatic;
656656
};
657657
249EFE821E64FB4C00165E39 = {
658658
CreatedOnToolsVersion = 8.2.1;
659659
DevelopmentTeam = 4Q596JWQC5;
660-
LastSwiftMigration = 1000;
660+
LastSwiftMigration = 1030;
661661
ProvisioningStyle = Automatic;
662662
};
663663
DF1A5D1C2084C94700725EF5 = {
@@ -678,10 +678,11 @@
678678
};
679679
buildConfigurationList = 249EFE741E64FB4C00165E39 /* Build configuration list for PBXProject "PinLayout" */;
680680
compatibilityVersion = "Xcode 3.2";
681-
developmentRegion = English;
681+
developmentRegion = en;
682682
hasScannedForEncodings = 0;
683683
knownRegions = (
684684
en,
685+
Base,
685686
);
686687
mainGroup = 249EFE701E64FB4C00165E39;
687688
productRefGroup = 249EFE7B1E64FB4C00165E39 /* Products */;
@@ -1108,6 +1109,7 @@
11081109
isa = XCBuildConfiguration;
11091110
buildSettings = {
11101111
ALWAYS_SEARCH_USER_PATHS = NO;
1112+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
11111113
CLANG_ANALYZER_NONNULL = YES;
11121114
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
11131115
CLANG_CXX_LIBRARY = "libc++";
@@ -1173,6 +1175,7 @@
11731175
isa = XCBuildConfiguration;
11741176
buildSettings = {
11751177
ALWAYS_SEARCH_USER_PATHS = NO;
1178+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
11761179
CLANG_ANALYZER_NONNULL = YES;
11771180
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
11781181
CLANG_CXX_LIBRARY = "libc++";
@@ -1244,7 +1247,7 @@
12441247
PRODUCT_NAME = PinLayout;
12451248
SKIP_INSTALL = YES;
12461249
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
1247-
SWIFT_VERSION = 4.2;
1250+
SWIFT_VERSION = 5.0;
12481251
};
12491252
name = Debug;
12501253
};
@@ -1264,7 +1267,7 @@
12641267
PRODUCT_BUNDLE_IDENTIFIER = "com.mirego.PinLayout-iOS";
12651268
PRODUCT_NAME = PinLayout;
12661269
SKIP_INSTALL = YES;
1267-
SWIFT_VERSION = 4.2;
1270+
SWIFT_VERSION = 5.0;
12681271
};
12691272
name = Release;
12701273
};
@@ -1279,7 +1282,7 @@
12791282
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
12801283
PRODUCT_BUNDLE_IDENTIFIER = com.mirego.PinLayoutTests;
12811284
PRODUCT_NAME = "$(TARGET_NAME)";
1282-
SWIFT_VERSION = 4.2;
1285+
SWIFT_VERSION = 5.0;
12831286
};
12841287
name = Debug;
12851288
};
@@ -1294,7 +1297,7 @@
12941297
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
12951298
PRODUCT_BUNDLE_IDENTIFIER = com.mirego.PinLayoutTests;
12961299
PRODUCT_NAME = "$(TARGET_NAME)";
1297-
SWIFT_VERSION = 4.2;
1300+
SWIFT_VERSION = 5.0;
12981301
};
12991302
name = Release;
13001303
};

PinLayout.xcodeproj/xcshareddata/xcschemes/PinLayout-iOS.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1010"
3+
LastUpgradeVersion = "1030"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

PinLayout.xcodeproj/xcshareddata/xcschemes/PinLayout-macOS.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1010"
3+
LastUpgradeVersion = "1030"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

PinLayout.xcodeproj/xcshareddata/xcschemes/PinLayout-tvOS.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1010"
3+
LastUpgradeVersion = "1030"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

Podfile.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
PODS:
2-
- Nimble (7.3.4)
3-
- PinLayout (1.8.7)
4-
- Quick (1.3.4)
5-
- SwiftLint (0.30.1)
2+
- Nimble (8.0.2)
3+
- PinLayout (1.8.8)
4+
- Quick (2.1.0)
5+
- SwiftLint (0.34.0)
66

77
DEPENDENCIES:
88
- Nimble
@@ -21,11 +21,11 @@ EXTERNAL SOURCES:
2121
:path: "./"
2222

2323
SPEC CHECKSUMS:
24-
Nimble: 051e3d8912d40138fa5591c78594f95fb172af37
25-
PinLayout: a0722a5c8f0e0168a9c091ffe4930dabf0c8582c
26-
Quick: f4f7f063c524394c73ed93ac70983c609805d481
27-
SwiftLint: a54bf1fe12b55c68560eb2a7689dfc81458508f7
24+
Nimble: 622629381bda1dd5678162f21f1368cec7cbba60
25+
PinLayout: ba08b162ae1cd7dd74cdfacbd1070f56bb2639f3
26+
Quick: 4be43f6634acfa727dd106bdf3929ce125ffa79d
27+
SwiftLint: 79d48a17c6565dc286c37efb8322c7b450f95c67
2828

2929
PODFILE CHECKSUM: 9b1d14a0f41ae1e8ebc931fa3d033da6c545223e
3030

31-
COCOAPODS: 1.6.0.beta.2
31+
COCOAPODS: 1.7.5

Tests/UIImage+Color.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import UIKit
2121

2222
public extension UIImage {
23-
public convenience init?(color: UIColor, size: CGSize = CGSize(width: 1, height: 1)) {
23+
convenience init?(color: UIColor, size: CGSize = CGSize(width: 1, height: 1)) {
2424
let rect = CGRect(origin: .zero, size: size)
2525
UIGraphicsBeginImageContextWithOptions(rect.size, false, 0.0)
2626
color.setFill()

0 commit comments

Comments
 (0)