Skip to content

Commit 862a8f8

Browse files
authored
Merge pull request #268 from chn-lyzhi/develop-Swift5
Support Swift 5.0
2 parents f14b5eb + 5f4b96b commit 862a8f8

File tree

21 files changed

+39
-108
lines changed

21 files changed

+39
-108
lines changed

.gitmodules

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

.swift-version

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

.travis.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,41 +5,32 @@ env:
55
matrix:
66
include:
77
- &podspec
8+
name: CocoaPods Lint
89
os: osx
910
language: objective-c
1011
osx_image: xcode10.2
1112
script:
1213
- pod lib lint --allow-warnings
1314
- &xcode
15+
name: Xcode 10.2 / Swift 5.0
1416
os: osx
1517
language: objective-c
16-
osx_image: xcode9.2
18+
osx_image: xcode10.2
1719
script:
1820
- set -o pipefail
1921
- xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -configuration Release ENABLE_TESTABILITY=YES | xcpretty -c
2022
- xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -configuration Release -sdk iphonesimulator -destination "name=iPhone 6s" ENABLE_TESTABILITY=YES | xcpretty -c
2123
- xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -configuration Release -sdk appletvsimulator -destination "name=Apple TV" ENABLE_TESTABILITY=YES | xcpretty -c
2224
after_success:
2325
- bash <(curl -s https://codecov.io/bash)
24-
- <<: *xcode
25-
osx_image: xcode9.4
26-
- <<: *xcode
27-
osx_image: xcode10.1
28-
- <<: *xcode
29-
osx_image: xcode10.2
3026
- &swiftpm
27+
name: SwiftPM / Darwin / Swift 5.0
3128
os: osx
3229
language: generic
33-
osx_image: xcode9.2
30+
osx_image: xcode10.2
3431
script:
3532
- swift build
3633
- swift test
37-
- <<: *swiftpm
38-
osx_image: xcode9.4
39-
- <<: *swiftpm
40-
osx_image: xcode10.1
41-
- <<: *swiftpm
42-
osx_image: xcode10.2
4334

4435
notifications:
4536
email: false

APIKit.podspec

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "APIKit"
3-
s.version = "4.1.0"
3+
s.version = "5.0.0"
44
s.summary = "Type-safe networking abstraction layer that associates request type with response type."
55
s.homepage = "https://github.com/ishkawa/APIKit"
66

@@ -23,7 +23,7 @@ Pod::Spec.new do |s|
2323
:tag => "#{s.version}",
2424
}
2525

26-
s.swift_version = "4.0"
26+
s.swift_version = "5.0"
2727

2828
s.license = {
2929
:type => "MIT",
@@ -34,6 +34,4 @@ Pod::Spec.new do |s|
3434
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3535
LICENSE
3636
}
37-
38-
s.dependency "Result", "~> 4.0"
3937
end

APIKit.xcodeproj/project.pbxproj

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10-
141F12201C1C9ABE0026D415 /* Result.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CD5115241B1FFBA900514240 /* Result.framework */; };
11-
141F12311C1C9AC70026D415 /* Result.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CD5115241B1FFBA900514240 /* Result.framework */; };
12-
141F12361C1C9AC70026D415 /* Result.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = CD5115241B1FFBA900514240 /* Result.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
1310
7F698E501D9D680C00F1561D /* FormURLEncodedBodyParametersTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7F698E3C1D9D680C00F1561D /* FormURLEncodedBodyParametersTests.swift */; };
1411
7F698E511D9D680C00F1561D /* JSONBodyParametersTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7F698E3D1D9D680C00F1561D /* JSONBodyParametersTests.swift */; };
1512
7F698E521D9D680C00F1561D /* MultipartFormDataParametersTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7F698E3E1D9D680C00F1561D /* MultipartFormDataParametersTests.swift */; };
@@ -72,7 +69,6 @@
7269
dstPath = "";
7370
dstSubfolderSpec = 10;
7471
files = (
75-
141F12361C1C9AC70026D415 /* Result.framework in Copy Frameworks */,
7672
);
7773
name = "Copy Frameworks";
7874
runOnlyForDeploymentPostprocessing = 0;
@@ -129,7 +125,6 @@
129125
7F7048F21D9D8A1F003C99F6 /* URLEncodedSerialization.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = URLEncodedSerialization.swift; path = Sources/APIKit/Serializations/URLEncodedSerialization.swift; sourceTree = SOURCE_ROOT; };
130126
7F8ECDFD1B6A799E00234E04 /* Demo.playground */ = {isa = PBXFileReference; lastKnownFileType = file.playground; path = Demo.playground; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.swift; };
131127
7FA1690C1D9D8C80006C982B /* HTTPStub.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HTTPStub.swift; sourceTree = "<group>"; };
132-
CD5115241B1FFBA900514240 /* Result.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Result.framework; sourceTree = BUILT_PRODUCTS_DIR; };
133128
ECA831471DE4DDBF004EB1B5 /* ProtobufDataParser.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ProtobufDataParser.swift; path = Sources/APIKit/DataParser/ProtobufDataParser.swift; sourceTree = SOURCE_ROOT; };
134129
ECA831491DE4DEBE004EB1B5 /* ProtobufDataParserTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ProtobufDataParserTests.swift; sourceTree = "<group>"; };
135130
ECA8314B1DE4E677004EB1B5 /* ProtobufBodyParameters.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ProtobufBodyParameters.swift; path = Sources/APIKit/BodyParameters/ProtobufBodyParameters.swift; sourceTree = SOURCE_ROOT; };
@@ -141,15 +136,13 @@
141136
isa = PBXFrameworksBuildPhase;
142137
buildActionMask = 2147483647;
143138
files = (
144-
141F12201C1C9ABE0026D415 /* Result.framework in Frameworks */,
145139
);
146140
runOnlyForDeploymentPostprocessing = 0;
147141
};
148142
141F12301C1C9AC70026D415 /* Frameworks */ = {
149143
isa = PBXFrameworksBuildPhase;
150144
buildActionMask = 2147483647;
151145
files = (
152-
141F12311C1C9AC70026D415 /* Result.framework in Frameworks */,
153146
);
154147
runOnlyForDeploymentPostprocessing = 0;
155148
};
@@ -308,7 +301,6 @@
308301
children = (
309302
7F7048C61D9D89BE003C99F6 /* APIKit.h */,
310303
7F7048C91D9D89BE003C99F6 /* Info.plist */,
311-
CD5115241B1FFBA900514240 /* Result.framework */,
312304
);
313305
name = "Supporting Files";
314306
sourceTree = "<group>";
@@ -402,7 +394,7 @@
402394
isa = PBXProject;
403395
attributes = {
404396
LastSwiftUpdateCheck = 0730;
405-
LastUpgradeCheck = 0930;
397+
LastUpgradeCheck = 1020;
406398
ORGANIZATIONNAME = "Yosuke Ishikawa";
407399
TargetAttributes = {
408400
141F12161C1C9ABE0026D415 = {
@@ -415,7 +407,7 @@
415407
};
416408
buildConfigurationList = 7F45FCD71A94D02C006863BB /* Build configuration list for PBXProject "APIKit" */;
417409
compatibilityVersion = "Xcode 3.2";
418-
developmentRegion = English;
410+
developmentRegion = en;
419411
hasScannedForEncodings = 0;
420412
knownRegions = (
421413
en,
@@ -562,6 +554,7 @@
562554
isa = XCBuildConfiguration;
563555
baseConfigurationReference = 141F12101C1C96820026D415 /* Debug.xcconfig */;
564556
buildSettings = {
557+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
565558
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
566559
CLANG_WARN_COMMA = YES;
567560
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
@@ -575,14 +568,15 @@
575568
ENABLE_TESTABILITY = YES;
576569
GCC_NO_COMMON_BLOCKS = YES;
577570
ONLY_ACTIVE_ARCH = YES;
578-
SWIFT_VERSION = 4.0;
571+
SWIFT_VERSION = 5.0;
579572
};
580573
name = Debug;
581574
};
582575
7F45FCF21A94D02C006863BB /* Release */ = {
583576
isa = XCBuildConfiguration;
584577
baseConfigurationReference = 141F12111C1C96820026D415 /* Release.xcconfig */;
585578
buildSettings = {
579+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
586580
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
587581
CLANG_WARN_COMMA = YES;
588582
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
@@ -594,7 +588,7 @@
594588
CLANG_WARN_STRICT_PROTOTYPES = YES;
595589
CLANG_WARN_SUSPICIOUS_MOVE = YES;
596590
GCC_NO_COMMON_BLOCKS = YES;
597-
SWIFT_VERSION = 4.0;
591+
SWIFT_VERSION = 5.0;
598592
};
599593
name = Release;
600594
};

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

APIKit.xcworkspace/contents.xcworkspacedata

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cartfile

Lines changed: 0 additions & 1 deletion
This file was deleted.

Cartfile.resolved

Lines changed: 0 additions & 1 deletion
This file was deleted.

Carthage/Checkouts/Result

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)