This project has two Android modules:
- Contains presentation, Android platform and dependency injection classes.
The ViewModels are used to consume reactive streams from repository and update observable fields for data binding.
- Contains entities, repository, data sources (remote and local) classes.
Since the database is empty, the repository will request the data from remote data source and then save into local data source. The repository exposes only reactive entities.
The local data source saves data into database. The local data source has its own models used internally as well as the remote data source has its own. The local data source uses database that saves data in disk while in testings is used a database that saves in test.
- Android Support Library Provides additional convenience classes and features not available in the standard Framework API for easier development and support across more devices.
- Data Binding Write declarative layouts and minimize the glue code necessary to bind application logic and layouts.
- Android Architecture Components A collection of libraries that help you design robust, testable, and maintainable apps. Start with classes for managing your UI component lifecycle and handling data persistence.
- Dagger A fully static, compile-time dependency injection framework for both Java and Android.
- RX Java A library for composing asynchronous and event-based programs using observable sequences for the Java VM.
- RX Android RxJava bindings for Android.
- ConstraintLayout Allows you to create large and complex layouts with a flat view hierarchy (no nested view groups).
- RecyclerView A flexible view for providing a limited window into a large data set.
- Glide An image loading and caching library for Android focused on smooth scrolling.
- Retrofit A type-safe HTTP client for Android and Java.
- OkHttp An HTTP & HTTP/2 client for Android and Java applications.
- Gson A Java serialization/deserialization library to convert Java Objects into JSON and back.
- Room The Room persistence library provides an abstraction layer over SQLite to allow fluent database access while harnessing the full power of SQLite.
- Mockito Tasty mocking framework for unit tests in Java.
- Espresso Write concise, beautiful, and reliable Android UI tests.
- MockWebServer A scriptable web server for testing HTTP clients.
Copyright 2018 André Mion
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.