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

Skip to content

Commit 9a4d997

Browse files
Ditto for Swift tutorial 5
1 parent a0050be commit 9a4d997

File tree

4 files changed

+22
-12
lines changed

4 files changed

+22
-12
lines changed

swift/tutorial5/Cartfile.resolved

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
github "robbiehanson/CocoaAsyncSocket" "7.5.0"
2-
github "jeffh/JKVValue" "v1.3.1"
1+
github "robbiehanson/CocoaAsyncSocket" "7.5.1"
2+
github "jeffh/JKVValue" "v1.3.2"
33
github "rabbitmq/rabbitmq-objc-client" "v0.10.0"

swift/tutorial5/tutorial5.xcodeproj/project.pbxproj

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
AE929C511CCF6FAF001A6524 /* Project object */ = {
110110
isa = PBXProject;
111111
attributes = {
112-
LastUpgradeCheck = 0730;
112+
LastUpgradeCheck = 0820;
113113
ORGANIZATIONNAME = RabbitMQ;
114114
TargetAttributes = {
115115
AE929C581CCF6FAF001A6524 = {
@@ -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/tutorial5/tutorial5/Base.lproj/Main.storyboard

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +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="6211" systemVersion="14A298i" 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>
4-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6204"/>
7+
<deployment identifier="iOS"/>
8+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
9+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
510
</dependencies>
611
<scenes>
712
<!--View Controller-->
813
<scene sceneID="tne-QT-ifu">
914
<objects>
10-
<viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="" sceneMemberID="viewController">
15+
<viewController id="BYZ-38-t0r" customClass="ViewController" customModule="tutorial5" sceneMemberID="viewController">
1116
<layoutGuides>
1217
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
1318
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
1419
</layoutGuides>
1520
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
16-
<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"/>
1722
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
18-
<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"/>
1924
</view>
2025
</viewController>
2126
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>

swift/tutorial5/tutorial5/ViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ViewController: UIViewController {
3232
}
3333
print("Waiting for logs.")
3434
q.subscribe({(_ message: RMQMessage) -> Void in
35-
print("\(message.routingKey):\(String(data: message.body, encoding: .utf8))")
35+
print("\(message.routingKey!):\(String(data: message.body, encoding: .utf8)!)")
3636
})
3737
}
3838

0 commit comments

Comments
 (0)
0