Skip to content

Instantly share code, notes, and snippets.

@liminal
Created October 29, 2014 09:21
Show Gist options
  • Save liminal/3010118efd19766658ae to your computer and use it in GitHub Desktop.
Save liminal/3010118efd19766658ae to your computer and use it in GitHub Desktop.
Template for android build.gradle including my most used dependencies, settings and plugins
//buildscript {
// dependencies {
// classpath 'me.tatarka:gradle-retrolambda:+' // Lambda support on android
// }
//}
//apply plugin: 'retrolambda'
android {
//compileOptions {
// sourceCompatibility JavaVersion.VERSION_1_8
// targetCompatibility JavaVersion.VERSION_1_8
//}
}
dependencies {
// OFFICIAL SUPPORT LIBRARIES
//compile 'com.android.support:appcompat-v7:+' // Appcompat libraries for eg. v7.widget.Toolbar and AppCompat Themes
//compile 'com.android.support:cardview-v7:+' // Appcompat .v7.widget.CardView
//compile 'com.android.support:recyclerview-v7:+' // Appcompat .v7.widget.RecyclerView
//compile 'com.android.support:gridlayout-v7:+'
//compile 'com.android.support:leanback-v17:+'
//compile 'com.android.support:mediarouter-v7:+'
//compile 'com.android.support:palette-v7:+'
//compile 'com.android.support:support-annotations:+'
//compile 'com.android.support:support-v13:+'
//compile 'com.android.support:support-v4:+' // Support libraries for compat fragments/ActionBarActivity
// SAINT JAKE OF ANDROID
//compile 'com.jakewharton.timber:timber:+' // Nicer logger
//compile 'com.jakewharton:butterknife:+' // UI View injection library
// SQUARE
//compile 'com.squareup.okhttp:okhttp:+' // OkHttp HTTP & SPDY Client
//compile 'com.squareup.okhttp:okhttp-urlconnection:+' // OkHttp drop in replacement for java.net.HttpURLConnection
//compile 'com.squareup.retrofit:retrofit:+' // A type-safe REST client for Android and Java
//compile 'com.squareup.dagger:dagger:+'
//compile 'com.squareup.picasso:picasso:+'
// MISC
//compile 'com.google.code.gson:gson:+' // A Java library to convert JSON to Java objects and vice-versa
//compile 'joda-time:joda-time:+' // Nicer Java date and time API
//compile 'io.reactivex:rxandroid:+' // Reactive eXtensions for android
//compile 'se.lightside.placeholder:placeholder:+' // My own UI widget placeholder library for quicker UI mocking up
//compile 'com.astuetz:pagerslidingtabstrip:+' // Tabs
// REPORTING / ANALYTICS
//compile 'com.crashlytics.android:crashlytics:+' // Crashlytics crash-reporting library. Usually installed by the Crashlytics plugin
// TESTING
//androidTestCompile 'com.squareup.assertj:assertj-android:+' // Nicer assertions for Unit tests
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment