Releases: AppCron/ACInteractor
Releases · AppCron/ACInteractor
Version 1.4.0
- 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
- Swift 4.2 support.
- Added
reset()
toInteractorSpy
.- 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
Version 1.1.0
- Renamed
InteractorExecuter
toInteractorExecutor
. #18 - Added
getInteractor()
function toInteractorExecutor
. #11 - Made
InteractorStatusGateway
andInteractorStatusInMemoryGateway
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
- 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
- Updated for Swift 3.1 and Xcode 8.3
Version 0.7.1
- Improved InteractorError
message
property now returns thelocalizedDescription
instead of theNSLocalizedDescriptionKey
of theinfoDict
.- 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
- 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
- Fixed PackageDescription to include Tests to auto-generated Xcode project.
Version 0.6.0
- Refactored to Swift Package.
- Removed Xcode project.