8000 Ditto for Swift tutorial 3 · syk-coder/rabbitmq-tutorials@719c973 · GitHub
[go: up one dir, main page]

Skip to content

Commit 719c973

Browse files
Ditto for Swift tutorial 3
1 parent f588a18 commit 719c973

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed

swift/tutorial3/tutorial3.xcodeproj/project.pbxproj

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
AE09C8071CCE315E00FA6915 /* Project object */ = {
110110
isa = PBXProject;
111111
attributes = {
112-
LastUpgradeCheck = 0730;
112+
LastUpgradeCheck = 0820;
113113
ORGANIZATIONNAME = RabbitMQ;
114114
TargetAttributes = {
115115
AE09C80E1CCE315E00FA6915 = {
@@ -195,8 +195,10 @@
195195
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
196196
CLANG_WARN_EMPTY_BODY = YES;
197197
CLANG_WARN_ENUM_CONVERSION = YES;
198+
CLANG_WARN_INFINITE_RECURSION = YES;
198199
CLANG_WARN_INT_CONVERSION = YES;
199200
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
201+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
200202
CLANG_WARN_UNREACHABLE_CODE = YES;
201203
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
202204
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
@@ -218,7 +220,7 @@
218220
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
219221
GCC_WARN_UNUSED_FUNCTION = YES;
220222
GCC_WARN_UNUSED_VARIABLE = YES;
221-
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
223+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
222224
MTL_ENABLE_DEBUG_INFO = YES;
223225
ONLY_ACTIVE_ARCH = YES;
224226
SDKROOT = iphoneos;
@@ -240,8 +242,10 @@
240242
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
241243
CLANG_WARN_EMPTY_BODY = YES;
242244
CLANG_WARN_ENUM_CONVERSION = YES;
245+
CLANG_WARN_INFINITE_RECURSION = YES;
243246
CLANG_WARN_INT_CONVERSION = YES;
244247
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
248+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
245249
CLANG_WARN_UNREACHABLE_CODE = YES;
246250
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
247251
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
@@ -257,9 +261,10 @@
257261
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
258262
GCC_WARN_UNUSED_FUNCTION = YES;
259263
GCC_WARN_UNUSED_VARIABLE = YES;
260-
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
264+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
261265
MTL_ENABLE_DEBUG_INFO = NO;
262266
SDKROOT = iphoneos;
267+
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
263268
TARGETED_DEVICE_FAMILY = "1,2";
264269
VALIDATE_PRODUCT = YES;
265270
};

swift/tutorial3/tutorial3/Base.lproj/Main.storyboard

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
1-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10116" systemVersion="15E65" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11762" systemVersion="16B2555" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
3+
<device id="retina4_0" orientation="portrait">
4+
<adaptation id="fullscreen"/>
5+
</device>
36
<dependencies>
47
<deployment identifier="iOS"/>
5-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
8+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
9+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
610
</dependencies>
711
<scenes>
812
<!--View Controller-->
913
<scene sceneID="tne-QT-ifu">
1014
<objects>
11-
<viewController id="BYZ-38-t0r" customClass="ViewController" sceneMemberID="viewController">
15+
<viewController id="BYZ-38-t0r" customClass="ViewController" customModule="tutorial3" sceneMemberID="viewController">
1216
<layoutGuides>
1317
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
1418
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
1519
</layoutGuides>
1620
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
17-
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
21+
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
1822
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
19-
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
23+
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
2024
</view>
2125
</viewController>
2226
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>

swift/tutorial3/tutorial3/ViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ViewController: UIViewController {
4040
q.bind(x)
4141
print("Waiting for logs.")
4242
q.subscribe({(_ message: RMQMessage) -> Void in
43-
print("Received \(String(data: message.body, encoding: String.Encoding.utf8))")
43+
print("Received \(String(data: message.body, encoding: String.Encoding.utf8)!)")
4444
})
4545
}
4646
}

0 commit comments

Comments
 (0)
0