Skip to content

Commit c9d82cd

Browse files
committed
Version 2.1.0
1 parent 9eef6fa commit c9d82cd

File tree

8 files changed

+12
-10
lines changed

8 files changed

+12
-10
lines changed

.swift-version

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

AppwiseCore.podspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22
# info
33
s.name = 'AppwiseCore'
4-
s.version = '2.0.3'
4+
s.version = '2.1.0'
55
s.summary = 'Just a library of some stuff we use internally.'
66
s.description = <<-DESC
77
Contains a few generic types (appdelegate, config, router, client) and some helper methods.
@@ -14,8 +14,8 @@ Pod::Spec.new do |s|
1414
:type => 'MIT',
1515
:file => 'LICENSE'
1616
}
17-
s.ios.deployment_target = '10.0'
18-
s.swift_version = '5.0'
17+
s.ios.deployment_target = '12.0'
18+
s.swift_version = '5.10'
1919

2020
# files
2121
s.source = {

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33
All notable changes to this project will be documented in this file.
44
`AppwiseCore` adheres to [Semantic Versioning](http://semver.org/).
55

6-
## [Master](https://github.com/appwise-labs/AppwiseCore)
6+
## [Main](https://github.com/appwise-labs/AppwiseCore)
7+
8+
## [2.1.0](https://github.com/appwise-labs/AppwiseCore/releases/tag/2.1.0)
79

810
### Deprecations
911

1012
* Core: deprecate our `Cancelled` error type in favour of Swift's built-in `CancellationError` type.
1113
* CoreData: due to incorrectness, we're deprecating `responseInsert` (this is not `responseInsert`, see below).
14+
* This version drops support for iOS 11 or lower.
1215

1316
### Improvements
1417

Example

Sources/Core/Network/Client+Request.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ extension Client {
128128
return .success(data)
129129
case .failure(let error):
130130
let error = extract(from: response, error: error)
131-
DDLogInfo(error.localizedDescription)
131+
DDLogInfo("\(error.localizedDescription)")
132132
return .failure(error)
133133
}
134134
}

Sources/Core/Network/Concurrency/Client+Concurrency.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ extension Client {
9999
return data
100100
case .failure(let error):
101101
let error = extract(from: response, error: error)
102-
DDLogInfo(error.localizedDescription)
102+
DDLogInfo("\(error.localizedDescription)")
103103
throw error
104104
}
105105
}

Sources/CoreData/Insert/Client+Insert.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public extension Client {
3636
let transformedJSON = try jsonTransformer(json)
3737
Self.insert(json: transformedJSON, into: db, queue: queue, contextObject: contextObject, then: handler)
3838
} catch {
39-
DDLogError(error.localizedDescription)
39+
DDLogError("\(error.localizedDescription)")
4040
handler(.failure(error))
4141
}
4242
case .failure(let error):

Sources/CoreData/Insert/Wrapper.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public struct Map {
6767
///
6868
/// - returns: The MapValue or nil if the keyPath does not exists
6969
public subscript(keyPath: MapKeyPath) -> MapValue? {
70-
var originalValue: Any? = switch keyPath {
70+
let originalValue: Any? = switch keyPath {
7171
case .root:
7272
dictionary
7373
case .path(let stringKeyPath):

0 commit comments

Comments
 (0)