Skip to content

Releases: ishkawa/APIKit

0.5.1

26 Mar 14:51
Compare
Choose a tag to compare
  • Support CocoaPods again.

To install APIKit via CocoaPods, add use_frameworks! and pod "APIKit" to your Podfile.

platform :ios, 8.0
use_frameworks!

pod 'APIKit'

0.5.0

26 Mar 13:41
Compare
Choose a tag to compare
  • Add cancelRequest(_:passingTest:) for canceling.

Now, you can cancel request by passing class of Request like this:

GitHub.cancelRequest(GitHub.Endpoint.SearchRepositories.self)

If you want to filter requests, add closure that identifies the request shoule be cancelled or not.

GitHub.cancelRequest(GitHub.Endpoint.SearchRepositories.self) { request in
    return request.query == "APIKit"
}

0.4.0

20 Mar 04:04
Compare
Choose a tag to compare
  • Add responseErrorFromObject to create detailed error using response object #16
  • Add defaultURLSession and its delegate instead of instancePair #14
    Breaking changes:
    • API does not create singleton instances for each API subclasses.
      • API.instance is no longer available.
      • API.session is no longer available.
      • From 0.4.0, if an API subclass needs a separated session, defaultURLSession should be overrided.
    • Delegate methods for custom behaviors of NSURLSession implemented in API should be move to custom delegate class, and its instance should be a delegate of defaultURLSession.

0.3.2

09 Mar 15:51
Compare
Choose a tag to compare
  • Fix issue installing APIKit via Carthage.

0.3.1

09 Mar 14:52
Compare
Choose a tag to compare
  • Minor refactoring.

0.3.0

09 Mar 14:09
Compare
Choose a tag to compare
  • Add NSURLSessionDelegate support.
  • Create a singleton instance for each subclasses of API.

To define custom behavior of NSURLSession, implement delegate methods of NSURLSession in subclass of API.

0.2.5

09 Mar 14:55
Compare
Choose a tag to compare
  • fix dependency for tests.

0.2.4

09 Mar 14:57
Compare
Choose a tag to compare
  • Minor refactoring.

0.2.3

23 Feb 04:43
Compare
Choose a tag to compare
  • Return NSURLSessionTask for return value of sendRequest for cancellation.

0.2.2

23 Feb 04:16
Compare
Choose a tag to compare
  • Minor refactoring.