Android Starter
Android Starter is a starter project which implements MVP Pattern.
It includes libraries
- RxJava2 and RxAndroid
- Retrofit / OkHttp
- Gson
- Dagger 2
- Butterknife
- Timber
- Espresso for UI tests
- Crashlytics
- GreenDao
- Realm
- Picasso
You can choose which library you want to include in your project
Requirements
Install
1. Install python 2. Install pip 3. pip install cookiecutter
Scaffold your project:
cookiecutter https://github.com/dtunctuncer/android-mvp-starter.git
Project Tree After Scaffold
. ??? app ? ??? build.gradle ? ??? proguard-rules.pro ? ??? src ?
??? androidTest ?
? ??? java ?
?
??? com ?
?
??? dtunctuncer ?
?
??? example ?
?
??? ApplicationTest.java ?
??? main ?
? ??? AndroidManifest.xml ?
? ??? java ?
? ? ??? com ?
? ?
??? dtunctuncer ?
? ?
??? example ?
? ?
??? Application.java ?
? ?
??? base ?
? ?
? ??? BaseActivity.java ?
? ?
? ??? IBaseView.java ?
? ?
??? db ?
? ?
? ??? Example.java ?
? ?
??? di ?
? ?
? ??? ActivityScope.java ?
? ?
? ??? ApplicationComponent.java ?
? ?
? ??? ApplicationModule.java ?
? ?
? ??? DatabaseModule.java ?
? ?
? ??? NetModule.java ?
? ?
??? main ?
? ?
? ??? IMainView.java ?
? ?
? ??? MainActivity.java ?
? ?
? ??? MainComponent.java ?
? ?
? ??? MainModule.java ?
? ?
? ??? MainPresenter.java ?
? ?
??? splash ?
? ?
? ??? SplashActivity.java ?
? ?
??? utils ?
? ?
??? DaoMigrationHelper.java ?
? ?
??? DaoUpdateHelper.java ?
? ?
??? RxBus.java ?
? ?
??? timber ?
? ?
??? CrashReportTree.java ?
? ??? res ?
?
??? drawable ?
?
? ??? android_starter.png ?
?
? ??? splash_logo.xml ?
?
??? layout ?
?
? ??? activity_main.xml ?
?
??? menu ?
?
? ??? menu_main.xml ?
?
??? mipmap-hdpi ?
?
? ??? ic_launcher.png ?
?
??? mipmap-mdpi ?
?
? ??? ic_launcher.png ?
?
??? mipmap-xhdpi ?
?
? ??? ic_launcher.png ?
?
??? mipmap-xxhdpi ?
?
? ??? ic_launcher.png ?
?
??? mipmap-xxxhdpi ?
?
? ??? ic_launcher.png ?
?
??? values ?
?
? ??? colors.xml ?
?
? ??? dimens.xml ?
?
? ??? strings.xml ?
?
? ??? styles.xml ?
?
??? values-v21 ?
?
? ??? styles.xml ?
?
??? values-w820dp ?
?
??? dimens.xml ?
??? test ?
??? java ?
??? com ?
??? dtunctuncer ?
??? example ?
??? ExampleUnitTest.java ??? build.gradle ??? gradle ? ??? wrapper ?
??? gradle-wrapper.jar ?
??? gradle-wrapper.properties ??? gradle.properties ??? gradlew ??? gradlew.bat ??? local.properties ??? settings.gradle 38 directories, 47 files
License
The MIT License (MIT) Copyright (c) 2017 Deniz Tunç Tuncer 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.