java - Android good architecture -
i interested in exploring architectural patterns android applications.
i made several experiments viper , clean architecture approaches material/ideas investigate dear fellows.
here important points should reflected:
it should handle routing/navigation in typical single activity/multiple fragments app
it should separate components/layers run on background threads , on main thread , communicate between layers (observer pattern, eventbus or whatever)
it uses limited amount of third party libraries , if please indicate pros , cons (like dagger dependency injection example)
it helps mantaining orthogonality on long run while adapting/extending app. change in 1 module should affect minimum amount of components without having cascading effects because components thigh coupled.
it great have real examples/prototypes on github or wherever keep real , practical without being on academic side ;-)
thanks in advance cool ideas/patterns
you can use mvp + repository pattern, using in project , code more cleaner, loosely couple, there separated layers. can add dagger dependency injections , rxandroid asynchronous task.
this best links found , helped me learn architecture:
http://fernandocejas.com/2014/09/03/architecting-android-the-clean-way/
https://medium.com/android-news/android-architecture-2f12e1c7d4db#.bupsk0o2n
http://fahimk.github.io/2015/04/21/using-rxjava-with-mvp-to-handle-configuration-changes/
https://kmangutov.wordpress.com/2015/03/28/android-mvp-consuming-restful-apis/
http://magenic.com/blog/post/6/an-mvp-pattern-for-android
you can find code in above links , 1 of projects used learning purposes :
https://bitbucket.org/emaleavil/cheapshark/
there many things improve think can start, project unfinished, i'm sorry.
Comments
Post a Comment