archi
archi copied to clipboard
Repository that showcases 3 Android app architectures: "Standard Android", MVP and MVVM. The exact same app is built 3 times following the different patterns.
compile and test compile keywords are now obsolete in android so they were changed and now the project is compiling and syncing successfully
Stack on Android 4.4 (API 19) ``` 03-08 00:38:55.273 14623-14623/uk.ivanc.archimvvm E/MainViewModel: Error loading GitHub repos javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x53757e30: Failure in SSL library, usually a protocol error error:1407742E:SSL...
AutoValue should be used in order to prevent boilerplate code of hashcode and equals method
你好,我认真看了你的代码,写的很棒 但是存在一个问题 MainActivity中的 adapter.setRepositories(repositories); MVP和MVVM中,View和Model都没有完全分离,我认为这样是有问题的,我们无法随意替换View或Model Hello, I've really read your code, and it's great But there is a problem MainActivity中的 adapter.setRepositories(repositories); In MVP and MVVM, View and Model are not...
Thanks for sharing this repo archi. This is unlikely related to the MVVM design pattern but just want to make sure I'm not missing anything important. Why do you do:...
There's a bunch of duplicated code in each of the projects, by moving it into its own library project we can share the common code amongst all three apps.
1. I want startactivityforresult or setresult and finish activity, how can handle it in view model of activity ? 2. Same question with view model of recyclerview.viewholder
I'm focused on the app that implements MVVM, using it as an example to help in building my own app, and I see that the list of repositories is not...
ItemRepoViewModel exists however is missing and logic is bundled with the RepositoryAdapter. it would be nice to have a separate ItemRepoPresenter so: 1) the RecyclerView.Adapter is separated form business logic...
In the MVP example the view directly issues commands on the presenter, for example [the `MainActivity` directly calls `MainPresenter#loadRepositories`](https://github.com/ivacf/archi/blob/master/app-mvp/src/main/java/uk/ivanc/archimvp/view/MainActivity.java#L59) whereas it should rather use a passive callback like `Presenter#onUsernameSubmitted`. The...