Skip to content

Instantly share code, notes, and snippets.

@tophyr
Created January 30, 2014 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tophyr/8716386 to your computer and use it in GitHub Desktop.
Save tophyr/8716386 to your computer and use it in GitHub Desktop.
contribtests project depends on testapp project
apply plugin: 'android'
repositories {
mavenLocal()
mavenCentral()
}
group = 'com.google.android.apps.common.testing'
version = '1.1'
description = 'Tests for the Espresso Contrib Library'
dependencies {
compile project(':android-test-kit:espresso:contrib')
compile project(':android-test-kit:testrunner-runtime')
compile project(':android-test-kit:testapp')
compile project(path: ':android-test-kit:testapp', configuration: 'includeR')
}
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
}
}
}
apply plugin: 'android'
repositories {
mavenLocal()
mavenCentral()
}
group = 'com.google.android.apps.common.testing'
version = '1.1'
description = 'Test App For UI Testing'
dependencies {
compile group: 'com.google.guava', name: 'guava', version:'14.0.1'
compile group: 'com.android.support', name: 'support-v4', version:'19.0.1'
compile group: 'com.android.support', name: 'appcompat-v7', version:'19.0.1'
}
task bundleR(type: Jar) {
include '**R.java'
}
configurations {
includingR
}
artifacts {
includingR bundleR
}
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
}
instrumentTest.setRoot('../testapp_test')
instrumentTest {
manifest.srcFile '../testapp_test/AndroidManifest.xml'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment