Created
January 30, 2014 19:05
-
-
Save tophyr/8716386 to your computer and use it in GitHub Desktop.
contribtests project depends on testapp project
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
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' | |
} | |
} | |
} |
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
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