UltimateAndroidAppTemplate


Source link: https://github.com/AndreiD/UltimateAndroidAppTemplate

Ultimate Android App Template [level: Beginner]

This is a simple start-template to save you a little time. It doesn't use dagger // mvp // mvvp or any other stuff that requires an more in depth knowledge of android.

How to use it:

Step 1:

  • Fork/Clone this repo. Add a local.properties with your sdk location (it should be automatically done by android studio)
  • or Manual mode: Download the zip file for this project.
  • Copy paste the app folder
  • Copy paste the build.gradle and modify applicationId "com.andrei.template" to your package name
  • Check the compileSdkVersion, and buildToolsVersion to be the latest
  • Run it and see that it's working on your emulator.
  • IMPORTANT: Remove the libs that you don't need. Add those that you do.
  • Star this repository

Step 2: ??? Step 3: Profit

What it contains:

apply plugin: 'com.android.application' apply plugin: 'io.objectbox'  android {

compileSdkVersion 26
buildToolsVersion "26.0.1"
 defaultConfig {

  applicationId "com.andrei.template"
  minSdkVersion 23
  targetSdkVersion 26
  versionCode 1
  versionName "1.0"
  vectorDrawables.useSupportLibrary = true
  testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

}

 buildTypes {

  release {

 minifyEnabled false

 shrinkResources false

 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  
}

  debug {

 minifyEnabled false

 versionNameSuffix ".debug"
  
}

}

 compileOptions {

  sourceCompatibility JavaVersion.VERSION_1_8
  targetCompatibility JavaVersion.VERSION_1_8

}

 packagingOptions {

  exclude 'META-INF/DEPENDENCIES'
  exclude 'LICENSE.txt'
  exclude 'META-INF/LICENSE'
  exclude 'META-INF/LICENSE.txt'
  exclude 'META-INF/NOTICE'
  exclude 'LICENSE.txt'

}

 lintOptions {

  warning 'InvalidPackage'
  abortOnError false

}

 //needed if for espresso
configurations.all {

  resolutionStrategy {

 force 'com.android.support:support-annotations:23.0.1'
  
}

}
 
}
  dependencies {

compile fileTree(include: ['*.jar'], dir: 'libs')
 //----- Support Libs
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation "com.android.support:design:26.1.0"
implementation "com.android.support:recyclerview-v7:26.1.0"
implementation "com.android.support:cardview-v7:26.1.0"
  //----- Retrofit
compile 'com.squareup.retrofit2:retrofit:2.1.0'
compile "com.squareup.retrofit2:converter-gson:2.1.0"
compile "com.squareup.retrofit2:adapter-rxjava:2.1.0"
compile 'com.squareup.okhttp3:logging-interceptor:3.7.0'
 //----- Logging
compile 'com.github.zhaokaiqiang.klog:library:1.6.0'
 //----- Butterknife
compile "com.jakewharton:butterknife:8.6.0"
annotationProcessor "com.jakewharton:butterknife-compiler:8.6.0"
 //----- Picasso
compile 'com.squareup.picasso:picasso:2.5.2'
 //----- Dialogs
compile 'com.muddzdev:styleabletoast:1.0.6'
 //----- Database
compile 'io.objectbox:objectbox-android:0.9.12'
 //-------- HERE ARE SOME RECOMMENDED LIBRARIES TO HELP YOU -------  //  //----- Onboarding //  compile 'com.codemybrainsout.onboarding:onboarder:1.0.3' // //  //----- QRCode Scanner //  compile 'me.dm7.barcodescanner:zxing:1.9.8' // //  //----- Navigation Drawer //  compile('com.mikepenz:materialdrawer:5.9.5@aar') {
 //
 transitive = true //  
}
 //  //----- EventBus //  compile 'org.greenrobot:eventbus:3.0.0' // //  //----- Butterknife //  compile "com.jakewharton:butterknife:7.0.1" // //  //----- Annotations //  compile 'org.glassfish:javax.annotation:10.0-b28' // //  //----- Rating //  compile 'com.github.hotchemi:android-rate:0.5.6' // //  //------  Socket library //  compile 'com.neovisionaries:nv-websocket-client:1.25' // //  //badges on icons //  compile ('com.mikepenz:actionitembadge:3.2.6@aar') {
 //
 transitive = true //  
}
 //  //------ Custom Font //  compile 'uk.co.chrisjenx:calligraphy:2.3.0' // //  //------ Charts //  compile 'com.github.PhilJay:MPAndroidChart:v2.2.4' // //  //------ Calendar //  compile 'com.squareup:android-times-square:1.6.5@aar' //  // //  //----- Testing //  androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
 //
 exclude group: 'com.android.support', module: 'support-annotations' //  
}
) //  testCompile 'junit:junit:4.12' //  androidTestCompile 'com.android.support:support-annotations:25.1.0' //  androidTestCompile 'com.android.support.test:runner:0.5' //  androidTestCompile 'com.android.support.test.uiautomator:uiautomator-v18:2.1.2' //  androidTestCompile 'org.hamcrest:hamcrest-integration:1.3' 
}
 

Too simple? MVP Arhitecture/RxJava/Database Template ?

Check UltimateAndroidTemplateRx

Need more nice stuff ?

Updates, Questions, and Requests

Ping me here :)

You like this project ? Check

License

Copyright 2017 AndroidAdvance.com  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. 

Resources

Android In-App Billing Library which provides several Rx Methods for Purchasing, Consuming and Listing Products Based on the initial work of Anjlab.

A simple implementation of swipe card like StreetView.

Show/Hide Password EditText is a very simple extension of Android's EditText that puts a clickable hide/show icon in the right hand side of the EditText that allows showing of the password.

RxTuples is a library to smooth RxJava usage by adding simple Tuple creation functions.

Custom preference view for preference screens on Android. Each social icon is selectable in the normal view. If the user clicks on the title, the dialog appears which is also clickable. Each social icon is programmed to open in the corresponding app or in the browser if the app isn't present. Including this library into your preference screen layout is very easy.

Simple Library to create RecyclerView Adapters and Viewholder in a snap.

Send any data to any Viewholder without creating custom RecyclerView Adapters.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes