Personal pet project aimed to learn how to use and integrate the following android specific frameworks/libraries/tools:
- RxAndroid / RxJava (Reactive programming)
- Dagger2 (Dependency Injection)
- Retrofit 2
- Realm io / SQLite
- Junit with Mockito... in progress
The architecture for this applciation is based on the following repository: https://github.com/android10/Android-CleanArchitecture/
- I've originally intended to use Realm.io as the persistence mechanism for this project. I've changed my mind and used SQLite insted due to several issues I've had trying to use Realm. 1 - Cannot access objects across threads (I did not want to query the db on the main thread) 2 - I've had problems on this and on other projects When storing nested RealmObjects, i.e leaks 3 - If you want to persist a specific class, said class Must Inherit from RealmObject directly 4 - Persisting lists on realm is not fully supported at the moment
Avilable on the PlayStore: https://play.google.com/store/apps/details?id=com.feresr.weather
The MIT License (MIT)
Copyright (c) 2016 Fernando Raviola
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.