Skip to content

Commit 343bff9

Browse files
authored
Merge pull request #178 from hyperoslo/fix/swift41
Update to swift 4.1
2 parents 27253e9 + 1dca20c commit 343bff9

File tree

10 files changed

+41
-27
lines changed

10 files changed

+41
-27
lines changed

.circleci/config.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: 2
2+
jobs:
3+
build-and-test:
4+
macos:
5+
xcode: "9.3.0"
6+
shell: /bin/bash --login -o pipefail
7+
steps:
8+
- checkout
9+
- run: xcodebuild -project Cache.xcodeproj -scheme "Cache-macOS" -sdk macosx clean
10+
- run: xcodebuild -project Cache.xcodeproj -scheme "Cache-macOS" -sdk macosx -enableCodeCoverage YES test
11+
- run: xcodebuild -project Cache.xcodeproj -scheme "Cache-iOS" -sdk iphonesimulator clean
12+
- run: xcodebuild -project Cache.xcodeproj -scheme "Cache-iOS" -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=11.3,name=iPhone X' -enableCodeCoverage YES test
13+
- run: xcodebuild -project Cache.xcodeproj -scheme "Cache-tvOS" -destination 'platform=tvOS Simulator,name=Apple TV,OS=11.3' clean
14+
- run: xcodebuild -project Cache.xcodeproj -scheme "Cache-tvOS" -destination 'platform=tvOS Simulator,name=Apple TV,OS=11.3' -enableCodeCoverage YES test
15+
16+
workflows:
17+
version: 2
18+
build-and-test:
19+
jobs:
20+
- build-and-test

.swift-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.0.2
1+
4.1

Cache.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22
s.name = "Cache"
33
s.summary = "Nothing but cache."
4-
s.version = "4.1.2"
4+
s.version = "4.2.0"
55
s.homepage = "https://github.com/hyperoslo/Cache"
66
s.license = 'MIT'
77
s.author = { "Hyper Interaktiv AS" => "[email protected]" }
@@ -19,5 +19,5 @@ Pod::Spec.new do |s|
1919

2020
s.frameworks = 'Foundation'
2121

22-
s.pod_target_xcconfig = { 'SWIFT_VERSION' => '4.0' }
22+
s.pod_target_xcconfig = { 'SWIFT_VERSION' => '4.1' }
2323
end

Cache.xcodeproj/project.pbxproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@
623623
isa = PBXProject;
624624
attributes = {
625625
LastSwiftUpdateCheck = 0800;
626-
LastUpgradeCheck = 0900;
626+
LastUpgradeCheck = 0930;
627627
ORGANIZATIONNAME = "Hyper Interaktiv AS";
628628
TargetAttributes = {
629629
BDEDD3551DBCE5B1007416A6 = {
@@ -1138,12 +1138,14 @@
11381138
CLANG_WARN_BOOL_CONVERSION = YES;
11391139
CLANG_WARN_COMMA = YES;
11401140
CLANG_WARN_CONSTANT_CONVERSION = YES;
1141+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
11411142
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
11421143
CLANG_WARN_EMPTY_BODY = YES;
11431144
CLANG_WARN_ENUM_CONVERSION = YES;
11441145
CLANG_WARN_INFINITE_RECURSION = YES;
11451146
CLANG_WARN_INT_CONVERSION = YES;
11461147
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
1148+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
11471149
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
11481150
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
11491151
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
@@ -1195,12 +1197,14 @@
11951197
CLANG_WARN_BOOL_CONVERSION = YES;
11961198
CLANG_WARN_COMMA = YES;
11971199
CLANG_WARN_CONSTANT_CONVERSION = YES;
1200+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
11981201
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
11991202
CLANG_WARN_EMPTY_BODY = YES;
12001203
CLANG_WARN_ENUM_CONVERSION = YES;
12011204
CLANG_WARN_INFINITE_RECURSION = YES;
12021205
CLANG_WARN_INT_CONVERSION = YES;
12031206
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
1207+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
12041208
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
12051209
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
12061210
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

Cache.xcodeproj/xcshareddata/xcschemes/Cache-iOS.xcscheme

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0900"
3+
LastUpgradeVersion = "0930"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -26,7 +26,6 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29-
language = ""
3029
shouldUseLaunchSchemeArgsEnv = "YES">
3130
<Testables>
3231
<TestableReference
@@ -56,7 +55,6 @@
5655
buildConfiguration = "Debug"
5756
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
5857
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
59-
language = ""
6058
launchStyle = "0"
6159
useCustomWorkingDirectory = "NO"
6260
ignoresPersistentStateOnLaunch = "NO"

Cache.xcodeproj/xcshareddata/xcschemes/Cache-macOS.xcscheme

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0900"
3+
LastUpgradeVersion = "0930"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -40,7 +40,6 @@
4040
buildConfiguration = "Debug"
4141
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
4242
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43-
language = ""
4443
shouldUseLaunchSchemeArgsEnv = "YES">
4544
<Testables>
4645
<TestableReference
@@ -70,7 +69,6 @@
7069
buildConfiguration = "Debug"
7170
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
7271
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
73-
language = ""
7472
launchStyle = "0"
7573
useCustomWorkingDirectory = "NO"
7674
ignoresPersistentStateOnLaunch = "NO"

Cache.xcodeproj/xcshareddata/xcschemes/Cache-tvOS.xcscheme

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0900"
3+
LastUpgradeVersion = "0930"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -26,7 +26,6 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29-
language = ""
3029
shouldUseLaunchSchemeArgsEnv = "YES">
3130
<Testables>
3231
<TestableReference
@@ -56,7 +55,6 @@
5655
buildConfiguration = "Debug"
5756
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
5857
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
59-
language = ""
6058
launchStyle = "0"
6159
useCustomWorkingDirectory = "NO"
6260
ignoresPersistentStateOnLaunch = "NO"

Source/Shared/Storage/StorageAware.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public protocol StorageAware {
4545
Clears all expired objects.
4646
*/
4747
func removeExpiredObjects() throws
48-
48+
4949
/**
5050
Check if an expired object by the given key.
5151
- Parameter key: Unique key to identify the object.
@@ -66,7 +66,7 @@ public extension StorageAware {
6666
return false
6767
}
6868
}
69-
69+
7070
func isExpiredObject<T: Codable>(ofType type: T.Type, forKey key: String) throws -> Bool {
7171
do {
7272
let entry = try self.entry(ofType: type, forKey: key)

circle.yml

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

0 commit comments

Comments
 (0)