Skip to content

Releases: AppCron/ACInteractor

Version 1.4.0

15 May 15:39
0febcd0
Compare
Choose a tag to compare
  • Swift 5.0 support.
  • Adjusted registerInteractor() to register Interactors for a given Request type.
    • It is no longer necessary to create an instance of the Request.
    • Old: registerInteractor(myInteractor, request: MyInteractor.Request())
    • New: registerInteractor(myInteractor, request: MyInteractor.Request.self)
  • Marked old implementation of registerInteractor() as deprecated.

Version 1.3.0

07 Feb 13:35
Compare
Choose a tag to compare
  • Swift 4.2 support.
  • Added reset() to InteractorSpy.
    • To easily reset the Spy to its initial state.
  • Adjusted InteractorSpy to always return a response, if at least one has been set.
    • e.g. set [responseA, responseB]
    • returns responseA, responseB, responseB, ...

Version 1.2.0

06 Feb 16:17
7aa8f60
Compare
Choose a tag to compare
  • Added onCompleteVoid() function to InteractorRequests of type Void. #21
    • To simplify the completion call in the Interactor.
  • Added InteractorSpyto simplify unit testing. #22
    • The generic spy helps to create Interactor mocks quickly.

Version 1.1.0

25 Jan 12:43
Compare
Choose a tag to compare
  • Renamed InteractorExecuter to InteractorExecutor. #18
  • Added getInteractor() function to InteractorExecutor. #11
  • Made InteractorStatusGateway and InteractorStatusInMemoryGateway deprecated.
    • The gateway will be removed from upcoming versions.
    • We recommend to use a custom gateway or store the information in a class variable of the Interactor itself.
  • Improved Unit-Tests.

Version 1.0.0

01 Nov 16:08
Compare
Choose a tag to compare
  • Updated for Swift 4.0 and Xcode 9.0.1. #17
    • Adjusted Package.swift for PackageDescription API Version 4.
    • Adjusted folder structure for PackageDescription API Version 4.
  • Improved access modifiers.
  • Removed MutableInteractorError.
  • Removed deprecated ErrorHandler protocol.

Version 0.8.0

22 Aug 09:31
Compare
Choose a tag to compare
  • Updated for Swift 3.1 and Xcode 8.3

Version 0.7.1

22 Aug 09:26
Compare
Choose a tag to compare
  • Improved InteractorError
    • message property now returns the localizedDescription instead of the NSLocalizedDescriptionKey of the infoDict.
    • The change was necessary, because CoreData errors only return a localizedDescription, but have no entry in the dictionary.
    • Usually, the localizedDescription returns the dictionary entry.

Version 0.7.0

21 Apr 12:59
Compare
Choose a tag to compare
  • InteractorError in now an extension of NSError.
    • Now you can return NSErrors as InteractorErrors.
    • This should avoid creating custom InteractorErrors for each NSError you want to return from an Interactor.
  • Introduced errorDict on InteractorError for additional values.
  • Added MutableInteractorError.

Version 0.6.1

20 Apr 15:45
Compare
Choose a tag to compare
  • Fixed PackageDescription to include Tests to auto-generated Xcode project.

Version 0.6.0

20 Apr 14:55
Compare
Choose a tag to compare
  • Refactored to Swift Package.
  • Removed Xcode project.