Skip to content

Commit

Permalink
Update to Swift 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
diogoguimaraes committed Apr 1, 2016
1 parent eb87e87 commit 5e451b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: objective-c

osx_image: xcode7.1
osx_image: xcode7.3

env:
- SCHEME=UpholdSdk
Expand All @@ -10,9 +10,11 @@ before_script:
- brew update
- brew install carthage
- brew install swiftlint
# Workaround to fix xctool issue #666(https://github.com/facebook/xctool/issues/666)
- brew reinstall --HEAD xctool
- carthage update --platform iOS
# Workaround introduced to fix the xctool issue #454 (https://github.com/facebook/xctool/issues/454).
- open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app --args -CurrentDeviceUDID 4E51E3C5-611D-403E-8EFD-1DA15203C4DF
- open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app --args -CurrentDeviceUDID 75FC400A-B2AA-4DD6-B159-8687FAA5018A

script:
- swiftlint lint --strict
Expand Down
2 changes: 1 addition & 1 deletion Source/Paginator/Paginator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class Paginator<T>: PaginatorProtocol {
*/
public func getNext() -> Promise<[T]> {
defer {
currentPage++
currentPage += 1

objc_sync_exit(self.currentPage)
}
Expand Down
2 changes: 1 addition & 1 deletion Source/Paginator/PaginatorProtocol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import PromiseKit
protocol PaginatorProtocol {

/// Paginator generic type.
typealias T
associatedtype T

/**
A closure to get a promise with the total number of elements.
Expand Down

0 comments on commit 5e451b5

Please sign in to comment.