Skip to content

Commit 5233bd9

Browse files
committed
Merge pull request #19 from hsoi/hsoi-swift22
Xcode 7.3 and Swift 2.2 support
2 parents ec56420 + 1f349a6 commit 5233bd9

File tree

5 files changed

+7
-17
lines changed

5 files changed

+7
-17
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
language: objective-c
2-
osx_image: xcode7.2
2+
osx_image: xcode7.3
33
script:
44
- xcodebuild -project ModelRocket.xcodeproj -scheme ModelRocket -destination "platform=iOS Simulator,name=iPhone 6" test

ModelRocket.xcodeproj/project.pbxproj

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10-
8105B6DA1C4F319C0038F86D /* Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 8105B6D11C4F319C0038F86D /* Info.plist */; };
1110
8105B6DB1C4F319C0038F86D /* JSON.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8105B6D21C4F319C0038F86D /* JSON.swift */; };
1211
8105B6DC1C4F319C0038F86D /* JSONTransformable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8105B6D31C4F319C0038F86D /* JSONTransformable.swift */; };
1312
8105B6DD1C4F319C0038F86D /* Model.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8105B6D41C4F319C0038F86D /* Model.swift */; };
@@ -180,7 +179,7 @@
180179
attributes = {
181180
LastSwiftMigration = 0700;
182181
LastSwiftUpdateCheck = 0720;
183-
LastUpgradeCheck = 0700;
182+
LastUpgradeCheck = 0730;
184183
ORGANIZATIONNAME = "Oven Bits";
185184
TargetAttributes = {
186185
8143C8E01A82BA480077DE22 = {
@@ -215,7 +214,6 @@
215214
isa = PBXResourcesBuildPhase;
216215
buildActionMask = 2147483647;
217216
files = (
218-
8105B6DA1C4F319C0038F86D /* Info.plist in Resources */,
219217
);
220218
runOnlyForDeploymentPostprocessing = 0;
221219
};
@@ -394,10 +392,6 @@
394392
8143C8FB1A82BA480077DE22 /* Debug */ = {
395393
isa = XCBuildConfiguration;
396394
buildSettings = {
397-
FRAMEWORK_SEARCH_PATHS = (
398-
"$(SDKROOT)/Developer/Library/Frameworks",
399-
"$(inherited)",
400-
);
401395
GCC_PREPROCESSOR_DEFINITIONS = (
402396
"DEBUG=1",
403397
"$(inherited)",
@@ -412,10 +406,6 @@
412406
8143C8FC1A82BA480077DE22 /* Release */ = {
413407
isa = XCBuildConfiguration;
414408
buildSettings = {
415-
FRAMEWORK_SEARCH_PATHS = (
416-
"$(SDKROOT)/Developer/Library/Frameworks",
417-
"$(inherited)",
418-
);
419409
INFOPLIST_FILE = ModelRocketTests/Info.plist;
420410
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
421411
PRODUCT_BUNDLE_IDENTIFIER = "com.ovenbits.$(PRODUCT_NAME:rfc1034identifier)";

ModelRocket.xcodeproj/xcshareddata/xcschemes/ModelRocket.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 = "0700"
3+
LastUpgradeVersion = "0730"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ An iOS framework for creating JSON-based models. Written in Swift (because [it t
1010

1111
## Requirements
1212

13-
- iOS 7.0+
14-
- Xcode 7
15-
- Swift 2
13+
- iOS 8.0+
14+
- Xcode 7.3
15+
- Swift 2.2
1616

1717
## Installation
1818

Sources/JSONTransformable.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import UIKit
2727
#endif
2828

2929
public protocol JSONTransformable {
30-
typealias T
30+
associatedtype T
3131

3232
/// Extract object from JSON
3333
static func fromJSON(json: JSON) -> T?

0 commit comments

Comments
 (0)