Skip to content

Commit 5699290

Browse files
authored
Update README.md
1 parent fb6585f commit 5699290

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Open Library Sample Project
1+
# Reading List Sample Project
22

33

44

@@ -40,9 +40,7 @@ Views in this arch are truly 'dumb' - they should contain nearly no logic. They
4040

4141
![](https://storage.googleapis.com/treestorage/ui_f_of_state.png)
4242

43-
44-
Presenters give a layer of control between subscribing to the new state and the View. Views subscribing directly to the store results in code and logic in the View which must be duplicated on each platform. Presenters are singleton objects that contain no state other than the previous AppState. This works while presenters are for an entire screen, which for this app is the case. Another approach will be needed if multiple instances of a given presenter are needed. The presenter is responsible for rendering the view given the AppState or the delta in AppState. The Reduks library has a port of Reselect, which allows calling code only when a property changes. Presenters pass `ViewState` to View methods. All transformations from Appstate -> ViewState are extension functions in `Transformations.kt`.
45-
43+
TODO
4644

4745

4846
![arch diagram](https://storage.googleapis.com/treestorage/Kotlin%20MPP%20Demo%20Arch.png)
@@ -53,6 +51,3 @@ In the redux world there are many ways to handle creation of async actions. `Th
5351
## Navigation
5452
In this app, Navigation is considered a side effect of the AppState. The `NavigationMiddleware` handles changing screens based on dispatched actions. The `NavigationMiddleware` takes an implementation of `Navigator` which is implemented for each platform.
5553

56-
## Tests
57-
58-
Unforntunately ran out of time and do not have tests. Unit tests can be written in the common module and ran in JVM and native. Reducers are very simple to tests and quick to run.

0 commit comments

Comments
 (0)