Skip to content

Instantly share code, notes, and snippets.

@Krishan14sharma
Created April 29, 2015 11:39
Show Gist options
  • Save Krishan14sharma/f73a7de9d5bf55246eec to your computer and use it in GitHub Desktop.
Save Krishan14sharma/f73a7de9d5bf55246eec to your computer and use it in GitHub Desktop.
common dependencies
apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "mvp.dagger.yify.yify"
minSdkVersion 15
targetSdkVersion 22
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
def BOOLEAN = "boolean"
def TRUE = "true"
def FALSE = "false"
def LOG_HTTP_REQUESTS = "LOG_HTTP_REQUESTS"
def REPORT_CRASHES = "REPORT_CRASHES"
def ENABLE_VIEW_SERVER = "ENABLE_VIEW_SERVER"
def ENABLE_MOCK_CLIENT = "ENABLE_MOCK_CLIENT"
def DEBUG_IMAGES = "DEBUG_IMAGES"
// you may have to delete the build files and compile again
debug {
buildConfigField BOOLEAN, LOG_HTTP_REQUESTS, TRUE
buildConfigField BOOLEAN, REPORT_CRASHES, FALSE
buildConfigField BOOLEAN, ENABLE_VIEW_SERVER, TRUE
buildConfigField BOOLEAN, ENABLE_MOCK_CLIENT, TRUE
buildConfigField BOOLEAN, DEBUG_IMAGES, TRUE
}
release {
buildConfigField BOOLEAN, LOG_HTTP_REQUESTS, FALSE
buildConfigField BOOLEAN, REPORT_CRASHES, TRUE
buildConfigField BOOLEAN, ENABLE_VIEW_SERVER, FALSE
buildConfigField BOOLEAN, ENABLE_MOCK_CLIENT, FALSE
buildConfigField BOOLEAN, DEBUG_IMAGES, FALSE
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'LICENSE.txt'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.0.0'
compile 'com.jakewharton:butterknife:6.0.0'
compile 'com.jakewharton.timber:timber:2.5.0'
compile 'com.squareup.retrofit:retrofit:1.9.0'
compile 'com.squareup.okhttp:okhttp-urlconnection:2.2.0'
compile 'com.squareup.okhttp:okhttp:2.2.0'
compile 'com.squareup.picasso:picasso:2.5.0'
compile files('libs/droidinspectorserver.jar')
// compile 'com.afollestad:material-dialogs:0.6.3.5'
compile 'com.google.code.gson:gson:2.3'
// Espresso
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.0'
androidTestCompile 'com.android.support.test:testing-support-lib:0.1'
androidTestCompile 'junit:junit:4.12'
androidTestCompile('org.robolectric:robolectric:3.0-rc2') {
exclude group: 'commons-logging', module: 'commons-logging'
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
}
compile 'com.google.dagger:dagger:2.0'
apt 'com.google.dagger:dagger-compiler:2.0'
provided 'org.glassfish:javax.annotation:10.0-b28'
compile 'com.android.support:recyclerview-v7:22.0.0'
compile 'com.android.support:cardview-v7:22.0.0'
androidTestCompile 'org.mockito:mockito-core:1.9.5'
androidTestCompile 'com.google.dexmaker:dexmaker:1.1'
androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.1'
compile 'io.reactivex:rxandroid:0.24.0'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment