Skip to content

Commit 9a368ff

Browse files
author
Malcolm Jarvis
authored
Merge pull request #82 from hlineholm/feature/remove-standard-action
Remove use of StandardAction & StandardActionConvertible
2 parents 1e49e16 + 9a4dacf commit 9a368ff

2 files changed

Lines changed: 9 additions & 18 deletions

File tree

Changelog.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# Upcoming
2+
3+
**Breaking API Changes:**
4+
- Remove use of `StandardAction` and `StandardActionConvertible` (#82) - @hlineholm
5+
6+
- Removes the compatibility of this with `ReSwift-Recorder`, which itself is being deprecated.
7+
- Ensures compatibility with latest versions of `ReSwift` which have removed these types.
8+
19
# 0.6.0
210

311
*Released: 6/29/2017*

ReSwiftRouter/NavigationActions.swift

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@
88

99
import ReSwift
1010

11-
/// Exports the type map needed for using ReSwiftRouter with a Recording Store
12-
public let typeMap: [String: StandardActionConvertible.Type] =
13-
["RE_SWIFT_ROUTER_SET_ROUTE": SetRouteAction.self]
14-
15-
public struct SetRouteAction: StandardActionConvertible {
11+
public struct SetRouteAction: Action {
1612

1713
let route: Route
1814
let animated: Bool
@@ -22,19 +18,6 @@ public struct SetRouteAction: StandardActionConvertible {
2218
self.route = route
2319
self.animated = animated
2420
}
25-
26-
public init(_ action: StandardAction) {
27-
self.route = action.payload!["route"] as! Route
28-
self.animated = action.payload!["animated"] as! Bool
29-
}
30-
31-
public func toStandardAction() -> StandardAction {
32-
return StandardAction(
33-
type: SetRouteAction.type,
34-
payload: ["route": route as AnyObject, "animated": animated as AnyObject],
35-
isTypedAction: true
36-
)
37-
}
3821

3922
}
4023

0 commit comments

Comments
 (0)