mirror of
https://github.com/apache/cordova-android.git
synced 2025-05-11 13:21:33 +08:00
Modified build.gradle so that the tests run again
This commit is contained in:
parent
ef268e2320
commit
bcb10ba6da
@ -21,11 +21,17 @@ apply plugin: 'android'
|
|||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
jcenter()
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:1.0.0+'
|
classpath 'com.android.tools.build:gradle:1.5.0+'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
allprojects {
|
||||||
|
repositories {
|
||||||
|
jcenter()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -56,6 +62,10 @@ android {
|
|||||||
testInstrumentationRunner "android.test.InstrumentationTestRunner"
|
testInstrumentationRunner "android.test.InstrumentationTestRunner"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
testOptions {
|
||||||
|
unitTests.returnDefaultValues = true
|
||||||
|
}
|
||||||
|
|
||||||
compileSdkVersion cdvCompileSdkVersion
|
compileSdkVersion cdvCompileSdkVersion
|
||||||
buildToolsVersion cdvBuildToolsVersion
|
buildToolsVersion cdvBuildToolsVersion
|
||||||
|
|
||||||
@ -69,6 +79,7 @@ dependencies {
|
|||||||
debugCompile project(path: ":CordovaLib", configuration: "debug")
|
debugCompile project(path: ":CordovaLib", configuration: "debug")
|
||||||
releaseCompile project(path: ":CordovaLib", configuration: "release")
|
releaseCompile project(path: ":CordovaLib", configuration: "release")
|
||||||
androidTestCompile fileTree(dir: 'androidTest/libs', include: '*.jar')
|
androidTestCompile fileTree(dir: 'androidTest/libs', include: '*.jar')
|
||||||
|
testCompile 'junit:junit:4.12'
|
||||||
}
|
}
|
||||||
|
|
||||||
task copyCordovaJs (type: Copy) {
|
task copyCordovaJs (type: Copy) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user