blob: 9d89e954d2085397a606d28a2cc42624788bcf74 [file] [log] [blame]
apply plugin: 'android'
project.ext.fakeProvider = new com.android.tests.basic.buildscript.FakeProvider()
project.ext.fakeServer = new com.android.tests.basic.buildscript.FakeServer()
android {
compileSdkVersion 15
buildToolsVersion "18.0.1"
deviceProvider project.ext.fakeProvider
testServer project.ext.fakeServer
}
project.afterEvaluate {
configure(fakeInstrumentTest) {
doLast {
String error = project.ext.fakeProvider.isValid()
if (error != null) {
throw new GradleException("Failed DeviceProvider usage: " + error)
}
}
}
configure(fake2Upload) {
doLast {
String error = project.ext.fakeServer.isValid()
if (error != null) {
throw new GradleException("Failed TestServer usage: " + error)
}
}
}
}
dependencies {
compile project(':lib')
}