Last active
April 27, 2021 02:02
-
-
Save nenick/3820d89cd66570f86204 to your computer and use it in GitHub Desktop.
try out to move espresso in submodule
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
buildscript { | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.10.+' | |
} | |
} | |
apply plugin: 'android' | |
dependencies { | |
compile 'com.android.support:support-v4:19.0.+' | |
compile("org.codehaus.jackson:jackson-mapper-asl:1.9.13") | |
compile("org.springframework.android:spring-android-auth:1.0.1.RELEASE") { exclude module: '*' } | |
compile("org.springframework.android:spring-android-core:1.0.1.RELEASE") { exclude module: '*' } | |
compile("org.springframework.android:spring-android-rest-template:1.0.1.RELEASE") { exclude module: '*' } | |
compile("org.androidannotations:androidannotations-api:$ext.androidAnnotationsAPIVersion") | |
androidTestCompile 'com.google.guava:guava:14.0.1', | |
'com.squareup.dagger:dagger:1.1.0', | |
'org.hamcrest:hamcrest-integration:1.1', | |
'org.hamcrest:hamcrest-core:1.1', | |
'org.hamcrest:hamcrest-library:1.1', | |
'com.jakewharton.espresso:espresso:1.1-r2' | |
} | |
android { | |
compileSdkVersion 19 | |
buildToolsVersion "19.0.3" | |
sourceSets { | |
main { | |
manifest.srcFile '../AndroidSample/AndroidManifest.xml' | |
java.srcDirs += ['../AndroidSample/src/main/java', | |
'../AndroidSample/src/gen', | |
'../AndroidSample/build/source/apt/debug', | |
'../AndroidSample/build/source/r/debug'] | |
resources.srcDirs = ['../AndroidSample/res'] | |
res.srcDirs = ['../AndroidSample/res'] | |
} | |
instrumentTest.setRoot('.') | |
instrumentTest { | |
java { srcDirs = [ | |
'src/main/java' | |
] } | |
res.srcDirs = ['../AndroidSample/res'] | |
assets.srcDirs = [ | |
'assets' | |
] | |
resources.srcDirs = [ | |
'src' | |
] | |
} | |
} | |
defaultConfig { | |
testInstrumentationRunner "com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner" | |
} | |
// avoid errors with message 'Duplicate files copied in APK ...' | |
packagingOptions { | |
exclude 'LICENSE.txt' | |
exclude 'META-INF/LICENSE' | |
exclude 'META-INF/LICENSE.txt' | |
exclude 'META-INF/license.txt' | |
exclude 'META-INF/NOTICE' | |
exclude 'META-INF/notice.txt' | |
exclude 'META-INF/ASL2.0' | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment