Upgrade version of RxSwift, RxCocoa, Alamofire.

This commit is contained in:
Qiu Yuzhou
2018-05-08 11:45:43 +08:00
parent 99595faafa
commit ce00520dfd
155 changed files with 6172 additions and 5740 deletions

View File

@ -0,0 +1,29 @@
//
// SwiftSupport.swift
// RxSwift
//
// Created by Volodymyr Gorbenko on 3/6/17.
// Copyright © 2017 Krunoslav Zaher. All rights reserved.
//
import Foundation
#if swift(>=4.0)
typealias IntMax = Int64
public typealias RxAbstractInteger = FixedWidthInteger
extension SignedInteger {
func toIntMax() -> IntMax {
return IntMax(self)
}
}
#else
public typealias RxAbstractInteger = SignedInteger
extension Array {
public mutating func swapAt(_ i: Int, _ j: Int) {
swap(&self[i], &self[j])
}
}
#endif