Sample Application using the app archieture
- Please install the JDK 1.8 and use the path as JAVA_HOME
$ ./gradlew testDebugUnitTest
$ ./gradlew connectedAndroidTest
# example ./gradlew jacocoDebugTestReport
$ ./gradlew jacoco${buildType}TestReport
- The detailed implementation of different UI can be found in here
Current Plan
Implementation | Description | Type |
---|---|---|
Android Architecture Component (AAC) | Using the AAC as bone of the app structures | App |
MVP | Extract the BaseFragment Features and link it to the AAC (e.g. ProgressDialog, AlertDialog) | View, Presenter |
Dagger2 | As the Dependency Injectection to the | DI |
Google Github sample for AAC Networkbound, ApiResponse | Reference the Networkbound class and related class to generic the API call and responses | Model Gateway |
Android Data Binding Library | To easily bind the data to the UI and seperate the design and controller logic | Presenter |
Crashlytics | To report the runtime error | Testing |
-Sample Navigation Drawer
Activity
package name used as Yigit proposed layer (datasource , responsitory, ui, viewModel) in 2017 Google IO
https://youtu.be/FrteWKKVyzI?t=29m41s
- Activities & Fragments
- Observers the View Model
- Keeps the UI up-to-date
- Forwards user Actions back to the ViewModel
- Prepares keeps the data for the UI
- Includes LiveData, Observable etc
- Survives Configuration changes
- The gateway for the UI Controller
- The complete data model for the App
- Provide simple data modification & retrieval APIS
- Coordinates fetching , syncing , persisting etc from different data sources
- API to the data sources
- E.g. Retrofit for a REST API
- Room for local persistence
- External content providers for OS
- Common Utils (Like Android databinding
- Inject Utils (Dependency Injection)
This is a boilerplate project aimed to help bootstrap new Android MVP Applications. Feel free to fork this application. :)
Copyright (C) 2017 Sample App Architecture
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.
Just make pull request. You are in!