Created
August 21, 2014 10:06
-
-
Save anonymous/d0f0bac71a0fb76f8454 to your computer and use it in GitHub Desktop.
build.gradle
This file contains 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
buildscript { | |
repositories { | |
mavenCentral() | |
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' } | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.12.2' | |
classpath 'org.robolectric:robolectric-gradle-plugin:0.11.+' | |
} | |
} | |
apply plugin: 'idea' | |
apply plugin: 'android' | |
android { | |
compileSdkVersion 15 | |
buildToolsVersion '19.1.0' | |
defaultConfig { | |
minSdkVersion 10 | |
targetSdkVersion 15 | |
versionCode 45 | |
versionName "1.4.210" | |
testInstrumentationRunner "com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner" | |
} | |
buildTypes { | |
release { | |
runProguard true | |
proguardFile 'proguard-project.txt' | |
} | |
debug { | |
runProguard false | |
testCoverageEnabled = true | |
} | |
} | |
signingConfigs { | |
} | |
packagingOptions { | |
exclude 'META-INF/INDEX.LIST' | |
exclude 'META-INF/INDEX' | |
exclude 'META-INF/LICENSE' | |
exclude 'META-INF/LICENSE.txt' | |
exclude 'META-INF/NOTICE' | |
exclude 'LICENSE.txt' | |
exclude 'META-INF/license.txt' | |
exclude 'META-INF/notice.txt' | |
exclude 'META-INF/ASL2.0' | |
} | |
sourceSets { | |
androidTest { | |
setRoot('src/test') | |
} | |
} | |
lintOptions { | |
checkReleaseBuilds false | |
abortOnError false | |
} | |
} | |
dependencies { | |
compile 'com.android.support:appcompat-v7:19.+' | |
compile 'com.google.android.gms:play-services:4.4.+' | |
compile 'com.android.support:support-v4:19.+' | |
compile 'com.jayway.android.robotium:robotium-solo:5.2.1' | |
compile files('libs/espresso-1.1.jar', | |
'libs/testrunner-1.1.jar', | |
'libs/testrunner-runtime-1.1.jar') | |
compile 'com.google.guava:guava:14.0.1', | |
'com.squareup.dagger:dagger:1.1.0', | |
'org.hamcrest:hamcrest-core:1.1', | |
'org.hamcrest:hamcrest-integration:1.1', | |
'org.hamcrest:hamcrest-library:1.1' | |
compile 'com.inkapplications.viewpageindicator:library:2.4.2' | |
compile 'ch.acra:acra:4.4.0' | |
androidTestCompile('junit:junit:4.11') { | |
exclude module: 'hamcrest-core' | |
} | |
androidTestCompile('org.robolectric:robolectric:2.3') { | |
exclude module: 'classworlds' | |
exclude module: 'commons-logging' | |
exclude module: 'httpclient' | |
exclude module: 'maven-artifact' | |
exclude module: 'maven-artifact-manager' | |
exclude module: 'maven-error-diagnostics' | |
exclude module: 'maven-model' | |
exclude module: 'maven-project' | |
exclude module: 'maven-settings' | |
exclude module: 'plexus-container-default' | |
exclude module: 'plexus-interpolation' | |
exclude module: 'plexus-utils' | |
exclude module: 'wagon-file' | |
exclude module: 'wagon-http-lightweight' | |
exclude module: 'wagon-provider-api' | |
} | |
androidTestCompile 'org.mockito:mockito-core:1.9.5' | |
androidTestCompile 'com.squareup:fest-android:1.0.+' | |
} | |
idea { | |
module { | |
testOutputDir = file('build/test-classes/') | |
//if you love browsing Javadoc | |
downloadJavadoc = true | |
downloadSources = true | |
} | |
} | |
apply plugin: 'robolectric' | |
robolectric { | |
// configure the set of classes for JUnit tests | |
include '**/*Test.class' | |
exclude '**/espresso/**/*.class' | |
// configure max heap size of the test JVM | |
maxHeapSize = '2048m' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment