Xcode 9.3 migration
This commit is contained in:
parent
ee15a4f1a6
commit
e6bdba0504
|
|
@ -1,6 +1,8 @@
|
|||
# Changelog
|
||||
|
||||
### 0.7.2
|
||||
- **Update**: Xcode 9.3 migration.
|
||||
- **Remove**: Default initializer for Network service that conforms to `ConfigurableNetworkService` protocol.
|
||||
- **[Breaking Change]**: `DateFormattingService` class replaced with protocol.
|
||||
- **Add**: `SwiftDate` dependency for `DateFormattingService`.
|
||||
- **Add**: `ViewBackground` enum that describes possible view backgrounds.
|
||||
|
|
|
|||
|
|
@ -1930,7 +1930,7 @@
|
|||
isa = PBXProject;
|
||||
attributes = {
|
||||
LastSwiftUpdateCheck = 0830;
|
||||
LastUpgradeCheck = 0900;
|
||||
LastUpgradeCheck = 0930;
|
||||
ORGANIZATIONNAME = "Touch Instinct";
|
||||
TargetAttributes = {
|
||||
67186B271EB248F100CFAFFB = {
|
||||
|
|
@ -3426,12 +3426,14 @@
|
|||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
|
|
@ -3482,12 +3484,14 @@
|
|||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>IDEDidComputeMac32BitWarning</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
@ -81,7 +81,7 @@ public class MapCursor<Cursor: CursorType, T>: CursorType, RxDataSource {
|
|||
|
||||
public func loadNextBatch() -> Single<[T]> {
|
||||
return cursor.loadNextBatch().map { newItems in
|
||||
let transformedNewItems = newItems.flatMap(self.transform)
|
||||
let transformedNewItems = newItems.compactMap(self.transform)
|
||||
self.elements += transformedNewItems
|
||||
|
||||
return transformedNewItems
|
||||
|
|
|
|||
|
|
@ -52,12 +52,3 @@ public extension ConfigurableNetworkService {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
public extension ConfigurableNetworkService where Self: NetworkService {
|
||||
|
||||
/// Convenience initializer with default session manager.
|
||||
init() {
|
||||
self.init(sessionManager: Self.sessionManager)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -67,14 +67,14 @@ extension TimeInterval {
|
|||
Supported components: days, hours, minutes, seconds
|
||||
*/
|
||||
public var timeComponents: TimeComponents {
|
||||
var ti = Int(self)
|
||||
let days = (ti / TimeInterval.secondsInDay) % TimeInterval.secondsInDay
|
||||
ti -= days * TimeInterval.secondsInDay
|
||||
var timeInterval = Int(self)
|
||||
let days = (timeInterval / TimeInterval.secondsInDay) % TimeInterval.secondsInDay
|
||||
timeInterval -= days * TimeInterval.secondsInDay
|
||||
return (
|
||||
days,
|
||||
(ti / TimeInterval.secondsInHour) % TimeInterval.secondsInHour,
|
||||
(ti / TimeInterval.secondsInMinute) % TimeInterval.secondsInMinute,
|
||||
ti % TimeInterval.secondsInMinute
|
||||
(timeInterval / TimeInterval.secondsInHour) % TimeInterval.secondsInHour,
|
||||
(timeInterval / TimeInterval.secondsInMinute) % TimeInterval.secondsInMinute,
|
||||
timeInterval % TimeInterval.secondsInMinute
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ public extension UIView {
|
|||
translatesAutoresizingMaskIntoConstraints = false
|
||||
|
||||
let constraints: [NSLayoutConstraint]
|
||||
if #available(iOS 11, *) {
|
||||
if #available(iOS 11, tvOS 11, *) {
|
||||
constraints = [
|
||||
topAnchor.constraint(equalTo: superview.safeAreaLayoutGuide.topAnchor, constant: insets.top),
|
||||
leadingAnchor.constraint(equalTo: superview.safeAreaLayoutGuide.leadingAnchor, constant: insets.left),
|
||||
|
|
@ -89,7 +89,7 @@ public extension UIView {
|
|||
}
|
||||
|
||||
let constraints: [NSLayoutConstraint]
|
||||
if #available(iOS 11, *) {
|
||||
if #available(iOS 11, tvOS 11, *) {
|
||||
constraints = [
|
||||
topAnchor.constraint(equalTo: superview.safeAreaLayoutGuide.topAnchor),
|
||||
bottomAnchor.constraint(equalTo: superview.safeAreaLayoutGuide.bottomAnchor),
|
||||
|
|
|
|||
Loading…
Reference in New Issue