Skip to content

Commit af80731

Browse files
authored
Merge pull request #42 from freshOS/swift5
Updates to swift 5
2 parents c77f011 + 8277685 commit af80731

File tree

9 files changed

+22
-22
lines changed

9 files changed

+22
-22
lines changed

.swift-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.2
1+
5.0

Arrow.framework.zip

-104 KB
Binary file not shown.

Arrow.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'Arrow'
3-
s.version = "4.2.0"
3+
s.version = "5.0.0"
44
s.summary = "Elegant JSON Parsing in Swift"
55
s.homepage = "https://github.com/freshOS/Arrow"
66
s.license = { :type => "MIT", :file => "LICENSE" }

Arrow.xcodeproj/project.pbxproj

+13-14
Original file line numberDiff line numberDiff line change
@@ -268,23 +268,23 @@
268268
attributes = {
269269
LastSwiftMigration = 0700;
270270
LastSwiftUpdateCheck = 0730;
271-
LastUpgradeCheck = 1000;
271+
LastUpgradeCheck = 1020;
272272
ORGANIZATIONNAME = "Sacha Durand Saint Omer";
273273
TargetAttributes = {
274274
99C292E61B24AD5E0008C32B = {
275275
CreatedOnToolsVersion = 6.3.1;
276-
LastSwiftMigration = 0900;
276+
LastSwiftMigration = 1020;
277277
};
278278
99C292F01B24AD5F0008C32B = {
279279
CreatedOnToolsVersion = 6.3.1;
280280
DevelopmentTeam = A6CJ26NGRU;
281-
LastSwiftMigration = 0900;
281+
LastSwiftMigration = 1020;
282282
};
283283
};
284284
};
285285
buildConfigurationList = 99C292B81B24AD4A0008C32B /* Build configuration list for PBXProject "Arrow" */;
286286
compatibilityVersion = "Xcode 3.2";
287-
developmentRegion = English;
287+
developmentRegion = en;
288288
hasScannedForEncodings = 0;
289289
knownRegions = (
290290
en,
@@ -399,6 +399,7 @@
399399
isa = XCBuildConfiguration;
400400
buildSettings = {
401401
ALWAYS_SEARCH_USER_PATHS = NO;
402+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
402403
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
403404
CLANG_CXX_LIBRARY = "libc++";
404405
CLANG_ENABLE_CODE_COVERAGE = NO;
@@ -448,14 +449,15 @@
448449
ONLY_ACTIVE_ARCH = YES;
449450
SDKROOT = iphoneos;
450451
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
451-
SWIFT_VERSION = 4.2;
452+
SWIFT_VERSION = 5.0;
452453
};
453454
name = Debug;
454455
};
455456
99C292DB1B24AD4A0008C32B /* Release */ = {
456457
isa = XCBuildConfiguration;
457458
buildSettings = {
458459
ALWAYS_SEARCH_USER_PATHS = NO;
460+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
459461
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
460462
CLANG_CXX_LIBRARY = "libc++";
461463
CLANG_ENABLE_CODE_COVERAGE = NO;
@@ -496,7 +498,8 @@
496498
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
497499
MTL_ENABLE_DEBUG_INFO = NO;
498500
SDKROOT = iphoneos;
499-
SWIFT_VERSION = 4.2;
501+
SWIFT_COMPILATION_MODE = wholemodule;
502+
SWIFT_VERSION = 5.0;
500503
VALIDATE_PRODUCT = YES;
501504
};
502505
name = Release;
@@ -522,8 +525,7 @@
522525
PRODUCT_NAME = "$(TARGET_NAME)";
523526
SKIP_INSTALL = YES;
524527
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
525-
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
526-
SWIFT_VERSION = 4.2;
528+
SWIFT_VERSION = 5.0;
527529
TARGETED_DEVICE_FAMILY = "1,2";
528530
VERSIONING_SYSTEM = "apple-generic";
529531
VERSION_INFO_PREFIX = "";
@@ -547,8 +549,7 @@
547549
PRODUCT_NAME = "$(TARGET_NAME)";
548550
SKIP_INSTALL = YES;
549551
SWIFT_OPTIMIZATION_LEVEL = "-O";
550-
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
551-
SWIFT_VERSION = 4.2;
552+
SWIFT_VERSION = 5.0;
552553
TARGETED_DEVICE_FAMILY = "1,2";
553554
VERSIONING_SYSTEM = "apple-generic";
554555
VERSION_INFO_PREFIX = "";
@@ -568,8 +569,7 @@
568569
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
569570
PRODUCT_BUNDLE_IDENTIFIER = "com.fresh.$(PRODUCT_NAME:rfc1034identifier)";
570571
PRODUCT_NAME = "$(TARGET_NAME)";
571-
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
572-
SWIFT_VERSION = 4.0;
572+
SWIFT_VERSION = 5.0;
573573
};
574574
name = Debug;
575575
};
@@ -583,8 +583,7 @@
583583
PRODUCT_BUNDLE_IDENTIFIER = "com.fresh.$(PRODUCT_NAME:rfc1034identifier)";
584584
PRODUCT_NAME = "$(TARGET_NAME)";
585585
SWIFT_OPTIMIZATION_LEVEL = "-O";
586-
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
587-
SWIFT_VERSION = 4.0;
586+
SWIFT_VERSION = 5.0;
588587
};
589588
name = Release;
590589
};

Arrow.xcodeproj/xcshareddata/xcschemes/Arrow.xcscheme

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1000"
3+
LastUpgradeVersion = "1020"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

ArrowTests/NativeTypesTests.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ func jsonForName(_ name: String) -> JSON? {
4545
let bundle = Bundle(for: NativeTypesTests.self)
4646
if let path: String = bundle.path(forResource: name, ofType: "json"),
4747
let jsonData = try? Data(contentsOf: URL(fileURLWithPath: path)),
48-
let json = try? JSONSerialization
48+
let json = ((try? JSONSerialization
4949
.jsonObject(with: jsonData,
50-
options: .mutableContainers) as? NSDictionary,
50+
options: .mutableContainers) as? NSDictionary) as NSDictionary??),
5151
let dic = json as? [String: Any] {
5252
return JSON(dic)
5353
}

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Arrow
44

5-
[![Language: Swift 2, 3 and 4 3](https://img.shields.io/badge/language-swift2|swift3|swift4-f48041.svg?style=flat)](https://developer.apple.com/swift)
5+
[![Language: Swift 5](https://img.shields.io/badge/language-swift5-f48041.svg?style=flat)](https://developer.apple.com/swift)
66
![Platform: iOS 8+](https://img.shields.io/badge/platform-iOS%208%2B-blue.svg?style=flat)
77
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
88
[![Cocoapods compatible](https://img.shields.io/badge/Cocoapods-compatible-4BC51D.svg?style=flat)](https://cocoapods.org)
@@ -241,6 +241,7 @@ if let collection = json.collection {
241241
- Swift 4 -> version [**4.0.0**](https://github.com/freshOS/Arrow/releases/tag/4.0.0)
242242
- Swift 4.1 -> version [**4.1.0**](https://github.com/freshOS/Arrow/releases/tag/4.1.0)
243243
- Swift 4.2 -> version [**4.2.0**](https://github.com/freshOS/Arrow/releases/tag/4.2.0)
244+
- Swift 5.0 -> version [**5.0.0**](https://github.com/freshOS/Arrow/releases/tag/5.0.0)
244245

245246
## Acknoledgments
246247
This wouldn't exist without [YannickDot](https://github.com/YannickDot), [Damien-nd](https://github.com/damien-nd) and [maxkonovalov](https://github.com/maxkonovalov)

Source/Arrow.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public protocol ArrowParsable {
3636

3737
public extension ArrowParsable {
3838
/// A shortcut to init custom models with JSON.
39-
public init?(_ json: JSON?) {
39+
init?(_ json: JSON?) {
4040
guard let json = json else {
4141
return nil
4242
}

Source/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>4.2.0</string>
18+
<string>5.0.0</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

0 commit comments

Comments
 (0)