Skip to content

Commit 1a11ff8

Browse files
authored
Merge pull request #16 from mtet88/master
XCode10.1 and Swift4.2 migration
2 parents 5956e1c + 5c0d5c9 commit 1a11ff8

File tree

20 files changed

+168
-157
lines changed

20 files changed

+168
-157
lines changed

.swift-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.0
1+
4.2

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
osx_image: xcode9
1+
osx_image: xcode10.1
22
language: objective-c
33

44
env:
55
matrix:
66
- DESTINATION="platform=iOS Simulator,name=iPhone 5s,OS=9.3"
77
- DESTINATION="platform=iOS Simulator,name=iPhone 7,OS=10.1"
8-
- DESTINATION="platform=iOS Simulator,name=iPhone X,OS=11.0"
8+
- DESTINATION="platform=iOS Simulator,name=iPhone X,OS=11.1"
99

1010
podfile: Example/Podfile
1111
before_install:

ContainerController.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ Pod::Spec.new do |s|
1111
s.version = File.read('VERSION')
1212
s.summary = 'Lightweight Swift Framework for iOS which let you replace UIViewController in UIContainerViews based on UIStoryboardSegues!'
1313
s.homepage = 'https://github.com/tschob/ContainerController.git'
14-
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
1514
s.license = { :type => 'MIT', :file => 'LICENSE' }
1615
s.author = { 'Hans Seiffert' => '[email protected]' }
1716

1817
s.source = { :git => 'https://github.com/tschob/ContainerController.git', :tag => s.version.to_s }
1918

2019
s.platform = :ios
2120
s.ios.deployment_target = '8.0'
21+
s.swift_version = '4.2'
2222

2323
s.source_files = 'ContainerController/**/*.{swift,h}'
2424
s.public_header_files = 'ContainerController/**/*.h'

ContainerController/ContainerController.xcodeproj/project.pbxproj

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,24 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10-
3ADD6DB21DA7C2CA008D0B02 /* ContainerControllerDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3ADD6DB11DA7C2CA008D0B02 /* ContainerControllerDelegate.swift */; };
11-
87114B541D55EDDA00C58D85 /* ContainerController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 87114B521D55EDDA00C58D85 /* ContainerController.swift */; };
10+
3ADD6DB21DA7C2CA008D0B02 /* ContainerViewControllerDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3ADD6DB11DA7C2CA008D0B02 /* ContainerViewControllerDelegate.swift */; };
1211
87114B581D55EDE100C58D85 /* ContainerController.h in Headers */ = {isa = PBXBuildFile; fileRef = 87114B571D55EDE100C58D85 /* ContainerController.h */; settings = {ATTRIBUTES = (Public, ); }; };
1312
8745ADD11D56472A00393E54 /* ContainerControllerSegue.swift in Sources */ = {isa = PBXBuildFile; fileRef = 87114B531D55EDDA00C58D85 /* ContainerControllerSegue.swift */; };
1413
874CF04B1D55F02E0049423E /* Log.swift in Sources */ = {isa = PBXBuildFile; fileRef = 874CF04A1D55F02E0049423E /* Log.swift */; };
15-
877DFDE91D56226000A1BF33 /* UIViewController+ContainerController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 877DFDE81D56226000A1BF33 /* UIViewController+ContainerController.swift */; };
14+
877DFDE91D56226000A1BF33 /* UIViewController+ContainerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 877DFDE81D56226000A1BF33 /* UIViewController+ContainerViewController.swift */; };
15+
F7DBED6D220A20AD000ED71A /* ContainerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F7DBED6C220A20AC000ED71A /* ContainerViewController.swift */; };
1616
/* End PBXBuildFile section */
1717

1818
/* Begin PBXFileReference section */
19-
3ADD6DB11DA7C2CA008D0B02 /* ContainerControllerDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ContainerControllerDelegate.swift; sourceTree = "<group>"; };
19+
3ADD6DB11DA7C2CA008D0B02 /* ContainerViewControllerDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ContainerViewControllerDelegate.swift; sourceTree = "<group>"; };
2020
87114B181D55EBA600C58D85 /* ContainerController.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ContainerController.framework; sourceTree = BUILT_PRODUCTS_DIR; };
2121
87114B421D55EC8700C58D85 /* ContainerController-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "ContainerController-Info.plist"; sourceTree = "<group>"; };
22-
87114B521D55EDDA00C58D85 /* ContainerController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ContainerController.swift; sourceTree = "<group>"; };
2322
87114B531D55EDDA00C58D85 /* ContainerControllerSegue.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ContainerControllerSegue.swift; sourceTree = "<group>"; };
2423
87114B571D55EDE100C58D85 /* ContainerController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ContainerController.h; sourceTree = "<group>"; };
2524
874CF04A1D55F02E0049423E /* Log.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Log.swift; sourceTree = "<group>"; };
26-
877DFDE81D56226000A1BF33 /* UIViewController+ContainerController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIViewController+ContainerController.swift"; sourceTree = "<group>"; };
25+
877DFDE81D56226000A1BF33 /* UIViewController+ContainerViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIViewController+ContainerViewController.swift"; sourceTree = "<group>"; };
26+
F7DBED6C220A20AC000ED71A /* ContainerViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ContainerViewController.swift; sourceTree = "<group>"; };
27+
F7DBED6E220A22AC000ED71A /* ContainerController.podspec */ = {isa = PBXFileReference; lastKnownFileType = text; name = ContainerController.podspec; path = ../ContainerController.podspec; sourceTree = "<group>"; };
2728
/* End PBXFileReference section */
2829

2930
/* Begin PBXFrameworksBuildPhase section */
@@ -40,6 +41,7 @@
4041
87114B0E1D55EBA500C58D85 = {
4142
isa = PBXGroup;
4243
children = (
44+
F7DBED6E220A22AC000ED71A /* ContainerController.podspec */,
4345
87114B431D55EC9500C58D85 /* Core */,
4446
874CF0491D55F02E0049423E /* Helper */,
4547
87114B561D55EDE100C58D85 /* Headers */,
@@ -67,10 +69,10 @@
6769
87114B431D55EC9500C58D85 /* Core */ = {
6870
isa = PBXGroup;
6971
children = (
70-
87114B521D55EDDA00C58D85 /* ContainerController.swift */,
71-
3ADD6DB11DA7C2CA008D0B02 /* ContainerControllerDelegate.swift */,
72+
F7DBED6C220A20AC000ED71A /* ContainerViewController.swift */,
73+
3ADD6DB11DA7C2CA008D0B02 /* ContainerViewControllerDelegate.swift */,
7274
87114B531D55EDDA00C58D85 /* ContainerControllerSegue.swift */,
73-
877DFDE81D56226000A1BF33 /* UIViewController+ContainerController.swift */,
75+
877DFDE81D56226000A1BF33 /* UIViewController+ContainerViewController.swift */,
7476
);
7577
path = Core;
7678
sourceTree = "<group>";
@@ -130,7 +132,7 @@
130132
87114B0F1D55EBA500C58D85 /* Project object */ = {
131133
isa = PBXProject;
132134
attributes = {
133-
LastUpgradeCheck = 0900;
135+
LastUpgradeCheck = 1010;
134136
ORGANIZATIONNAME = "Hans Seiffert";
135137
TargetAttributes = {
136138
87114B171D55EBA600C58D85 = {
@@ -189,10 +191,10 @@
189191
buildActionMask = 2147483647;
190192
files = (
191193
8745ADD11D56472A00393E54 /* ContainerControllerSegue.swift in Sources */,
192-
3ADD6DB21DA7C2CA008D0B02 /* ContainerControllerDelegate.swift in Sources */,
193-
87114B541D55EDDA00C58D85 /* ContainerController.swift in Sources */,
194+
3ADD6DB21DA7C2CA008D0B02 /* ContainerViewControllerDelegate.swift in Sources */,
194195
874CF04B1D55F02E0049423E /* Log.swift in Sources */,
195-
877DFDE91D56226000A1BF33 /* UIViewController+ContainerController.swift in Sources */,
196+
F7DBED6D220A20AD000ED71A /* ContainerViewController.swift in Sources */,
197+
877DFDE91D56226000A1BF33 /* UIViewController+ContainerViewController.swift in Sources */,
196198
);
197199
runOnlyForDeploymentPostprocessing = 0;
198200
};
@@ -212,12 +214,14 @@
212214
CLANG_WARN_BOOL_CONVERSION = YES;
213215
CLANG_WARN_COMMA = YES;
214216
CLANG_WARN_CONSTANT_CONVERSION = YES;
217+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
215218
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
216219
CLANG_WARN_EMPTY_BODY = YES;
217220
CLANG_WARN_ENUM_CONVERSION = YES;
218221
CLANG_WARN_INFINITE_RECURSION = YES;
219222
CLANG_WARN_INT_CONVERSION = YES;
220223
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
224+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
221225
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
222226
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
223227
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
@@ -250,6 +254,7 @@
250254
ONLY_ACTIVE_ARCH = YES;
251255
SDKROOT = iphoneos;
252256
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
257+
SWIFT_VERSION = 4.2;
253258
TARGETED_DEVICE_FAMILY = "1,2";
254259
VERSIONING_SYSTEM = "apple-generic";
255260
VERSION_INFO_PREFIX = "";
@@ -269,12 +274,14 @@
269274
CLANG_WARN_BOOL_CONVERSION = YES;
270275
CLANG_WARN_COMMA = YES;
271276
CLANG_WARN_CONSTANT_CONVERSION = YES;
277+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
272278
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
273279
CLANG_WARN_EMPTY_BODY = YES;
274280
CLANG_WARN_ENUM_CONVERSION = YES;
275281
CLANG_WARN_INFINITE_RECURSION = YES;
276282
CLANG_WARN_INT_CONVERSION = YES;
277283
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
284+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
278285
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
279286
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
280287
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
@@ -300,6 +307,7 @@
300307
MTL_ENABLE_DEBUG_INFO = NO;
301308
SDKROOT = iphoneos;
302309
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
310+
SWIFT_VERSION = 4.2;
303311
TARGETED_DEVICE_FAMILY = "1,2";
304312
VALIDATE_PRODUCT = YES;
305313
VERSIONING_SYSTEM = "apple-generic";
@@ -326,7 +334,7 @@
326334
SKIP_INSTALL = YES;
327335
SWIFT_OBJC_INTERFACE_HEADER_NAME = "$(SWIFT_MODULE_NAME)-Swift.h";
328336
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
329-
SWIFT_VERSION = 4.0;
337+
SWIFT_VERSION = 4.2;
330338
};
331339
name = Debug;
332340
};
@@ -348,7 +356,7 @@
348356
PRODUCT_NAME = ContainerController;
349357
SKIP_INSTALL = YES;
350358
SWIFT_OBJC_INTERFACE_HEADER_NAME = "$(SWIFT_MODULE_NAME)-Swift.h";
351-
SWIFT_VERSION = 4.0;
359+
SWIFT_VERSION = 4.2;
352360
};
353361
name = Release;
354362
};
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>

ContainerController/ContainerController.xcodeproj/xcshareddata/xcschemes/ContainerController.xcscheme

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0900"
3+
LastUpgradeVersion = "1010"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -26,7 +26,6 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29-
language = ""
3029
shouldUseLaunchSchemeArgsEnv = "YES">
3130
<Testables>
3231
</Testables>
@@ -37,7 +36,6 @@
3736
buildConfiguration = "Debug"
3837
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
3938
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
40-
language = ""
4139
launchStyle = "0"
4240
useCustomWorkingDirectory = "NO"
4341
ignoresPersistentStateOnLaunch = "NO"

ContainerController/Core/ContainerControllerDelegate.swift

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)