Created
June 18, 2016 15:22
-
-
Save derohimat/506a7f82aeda4436783a8983b8423733 to your computer and use it in GitHub Desktop.
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: 'com.neenbedankt.android-apt' | |
apply plugin: 'me.tatarka.retrolambda' | |
apply from: '../config/quality.gradle' | |
android { | |
compileSdkVersion 23 | |
buildToolsVersion "23.0.3" | |
dexOptions { | |
incremental true | |
javaMaxHeapSize "4g" | |
} | |
signingConfigs { | |
config { | |
keyAlias 'keystore' | |
keyPassword '123123' | |
storeFile file('keystore/keystore.jks') | |
storePassword '123123' | |
} | |
} | |
defaultConfig { | |
applicationId "net.derohimat.android" | |
minSdkVersion 15 | |
targetSdkVersion 23 | |
versionCode 1 | |
versionName "0.1" | |
} | |
buildTypes { | |
release { | |
minifyEnabled true | |
shrinkResources true | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
signingConfig signingConfigs.config | |
} | |
debug { | |
minifyEnabled false | |
applicationIdSuffix ".debug" | |
debuggable true | |
} | |
} | |
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 | |
lintConfig file("${project.rootDir}/config/quality/lint/lint.xml") | |
} | |
} | |
dependencies { | |
final RETROFIT_VERSION = '2.0.2' | |
final OKHTTP_VERSION = '3.2.0' | |
final DAGGER_VERSION = '2.0.2' | |
compile project(':baseapp') | |
compile fileTree(dir: 'libs', include: ['*.jar']) | |
//----- Dagger | |
compile "com.google.dagger:dagger:$DAGGER_VERSION" | |
apt "com.google.dagger:dagger-compiler:$DAGGER_VERSION" | |
provided 'org.glassfish:javax.annotation:10.0-b28' //Required by Dagger2 | |
//----- Retrofit | |
compile("com.squareup.retrofit2:retrofit:$RETROFIT_VERSION") { | |
// exclude Retrofit’s OkHttp peer-dependency module and define your own module import | |
exclude module: 'okhttp' | |
} | |
compile "com.squareup.retrofit2:converter-gson:$RETROFIT_VERSION" | |
compile "com.squareup.retrofit2:adapter-rxjava:$RETROFIT_VERSION" | |
compile "com.squareup.okhttp3:okhttp:$OKHTTP_VERSION" | |
compile "com.squareup.okhttp3:logging-interceptor:$OKHTTP_VERSION" | |
//----- Eventbuss | |
compile 'org.greenrobot:eventbus:3.0.0' | |
//----- Easy Permission Management | |
compile "com.karumi:dexter:2.2.2" | |
//----- Annotations | |
compile "org.glassfish:javax.annotation:10.0-b28" | |
//----- Rate this app | |
compile 'com.github.hotchemi:android-rate:1.0.1' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment