mirror of
https://github.com/zhigang1992/AndroidVideoCache.git
synced 2026-02-12 08:50:33 +08:00
49 lines
1.2 KiB
Groovy
49 lines
1.2 KiB
Groovy
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath 'com.github.jcandksolutions.gradle:android-unit-test:2.1.1'
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
maven { url 'https://github.com/danikula/android-garden/raw/mvn-repo' }
|
|
}
|
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
compileSdkVersion 21
|
|
buildToolsVersion '22.0.1'
|
|
|
|
defaultConfig {
|
|
applicationId 'com.danikula.proxycache.test'
|
|
minSdkVersion 9
|
|
targetSdkVersion 18 // Robolectric doesn't support API 19-21
|
|
versionCode 1
|
|
versionName '0.1'
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_7
|
|
targetCompatibility JavaVersion.VERSION_1_7
|
|
}
|
|
}
|
|
|
|
apply plugin: 'android-unit-test'
|
|
|
|
// to fix AS 0.8.9+ issue (https://github.com/evant/android-studio-unit-test-plugin Troubleshooting)
|
|
tasks.findByName("assembleDebug").dependsOn("testDebugClasses")
|
|
|
|
dependencies {
|
|
compile project (':library')
|
|
|
|
testCompile 'junit:junit:4.10'
|
|
testCompile 'org.robolectric:robolectric:2.4'
|
|
testCompile 'com.squareup:fest-android:1.0.0'
|
|
testCompile 'com.google.guava:guava-jdk5:17.0'
|
|
testCompile('com.danikula:android-garden:2.0.11-SNAPSHOT') {
|
|
exclude group: 'com.google.android'
|
|
}
|
|
}
|