Last active
July 28, 2016 05:45
-
-
Save Nathaniel100/987cff1591d31acf95a6a3f240feb839 to your computer and use it in GitHub Desktop.
app gradle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.android.application' | |
apply plugin: 'me.tatarka.retrolambda' | |
apply plugin: 'com.neenbedankt.android-apt' | |
// If enabled jack, You should use annotationProcessor dependency scope instead of apt. See http://android-developers.blogspot.fi/2016/05/android-studio-22-preview-new-ui.html (search for annotationProcessor) | |
// annotationProcessor "com.google.dagger:dagger-compiler:$gradle.dagger2Version | |
android { | |
compileSdkVersion gradle.ext.compileSdkVersion | |
buildToolsVersion gradle.ext.buildToolsVersion | |
defaultConfig { | |
applicationId "io.ginger.githubrepos" | |
minSdkVersion gradle.ext.minSdkVersion | |
targetSdkVersion gradle.ext.targetSdkVersion | |
versionCode 1 | |
versionName "1.0" | |
} | |
buildTypes { | |
release { | |
minifyEnabled false | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
} | |
} | |
dataBinding { | |
enabled true | |
} | |
compileOptions { | |
sourceCompatibility gradle.ext.javaVersion | |
targetCompatibility gradle.ext.javaVersion | |
} | |
} | |
dependencies { | |
compile fileTree(dir: 'libs', include: ['*.jar']) | |
testCompile 'junit:junit:4.12' | |
compile "com.android.support:appcompat-v7:$gradle.supportLibraryVersion" | |
// Dagger2 | |
compile "com.google.dagger:dagger:$gradle.dagger2Version" | |
apt "com.google.dagger:dagger-compiler:$gradle.dagger2Version" | |
// Retrofit2 + Okhttp3 | |
compile "com.squareup.retrofit2:retrofit:$gradle.retrofit2Version" | |
compile "com.squareup.retrofit2:converter-gson:$gradle.retrofit2Version" | |
compile "com.squareup.okhttp3:okhttp:$gradle.okHttp3Version" | |
compile "com.squareup.okhttp3:logging-interceptor:$gradle.okHttp3Version" | |
// Agera | |
compile "com.google.android.agera:agera:$gradle.ageraVersion" | |
compile "com.google.android.agera:content:$gradle.ageraVersion" | |
compile "com.google.android.agera:database:$gradle.ageraVersion" | |
compile "com.google.android.agera:net:$gradle.ageraVersion" | |
compile "com.google.android.agera:rvadapter:$gradle.ageraVersion" | |
compile "com.google.android.agera:rvdatabinding:$gradle.ageraVersion" | |
// Agera Retrofit2 adapter | |
compile "me.drakeet.retrofit2:adapter-agera:$gradle.retrofit2Version" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment