2014-07-04 09:34:27 +00:00
|
|
|
|
apply plugin: 'com.android.application'
|
2015-01-17 19:51:06 +00:00
|
|
|
|
//apply plugin: 'robolectric'
|
2014-11-08 11:53:00 +00:00
|
|
|
|
|
|
|
|
|
buildscript {
|
|
|
|
|
repositories {
|
|
|
|
|
mavenCentral()
|
|
|
|
|
}
|
|
|
|
|
dependencies {
|
2014-12-27 11:06:02 +00:00
|
|
|
|
classpath 'org.robolectric:robolectric-gradle-plugin:0.14.+'
|
2014-11-08 11:53:00 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2014-01-24 08:45:36 +00:00
|
|
|
|
|
|
|
|
|
android {
|
2014-06-23 19:41:56 +00:00
|
|
|
|
|
|
|
|
|
compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
|
|
|
|
|
buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION
|
|
|
|
|
|
2014-01-24 08:45:36 +00:00
|
|
|
|
defaultConfig {
|
2014-06-23 19:41:56 +00:00
|
|
|
|
minSdkVersion Integer.parseInt(project.ANDROID_BUILD_MIN_SDK_VERSION)
|
|
|
|
|
targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION)
|
2014-11-08 11:53:00 +00:00
|
|
|
|
|
|
|
|
|
testInstrumentationRunner "com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner"
|
2014-01-24 08:45:36 +00:00
|
|
|
|
}
|
2014-06-23 19:41:56 +00:00
|
|
|
|
|
2014-01-24 08:45:36 +00:00
|
|
|
|
buildTypes {
|
|
|
|
|
release {
|
2014-12-27 11:06:02 +00:00
|
|
|
|
minifyEnabled false
|
2014-01-24 08:45:36 +00:00
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-11-08 11:53:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
productFlavors {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2014-01-24 08:45:36 +00:00
|
|
|
|
sourceSets {
|
|
|
|
|
main {
|
2014-06-06 07:19:59 +00:00
|
|
|
|
aidl.srcDirs = ['src/main/java']
|
2014-01-24 08:45:36 +00:00
|
|
|
|
}
|
2014-07-07 20:15:08 +00:00
|
|
|
|
|
|
|
|
|
|
2014-11-08 11:53:00 +00:00
|
|
|
|
instrumentTest.setRoot('src/androidTest/java')
|
|
|
|
|
|
|
|
|
|
androidTest {
|
|
|
|
|
java.srcDir file('src/androidTest/java')
|
|
|
|
|
setRoot('src/androidTest/')
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2014-07-07 20:15:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lintOptions {
|
2015-04-07 18:59:39 +00:00
|
|
|
|
checkReleaseBuilds false
|
2014-07-07 20:15:08 +00:00
|
|
|
|
|
|
|
|
|
// Or, if you prefer, you can continue to check for errors in release builds,
|
|
|
|
|
// but continue the build even when errors are found:
|
2014-11-08 11:53:00 +00:00
|
|
|
|
|
2014-07-07 20:15:08 +00:00
|
|
|
|
abortOnError false
|
|
|
|
|
}
|
2014-01-24 08:45:36 +00:00
|
|
|
|
}
|
|
|
|
|
|
2014-11-08 11:53:00 +00:00
|
|
|
|
configurations {
|
|
|
|
|
robolectricTests {
|
|
|
|
|
extendsFrom compile
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-01-17 19:51:06 +00:00
|
|
|
|
apply plugin: 'android-unit-test'
|
|
|
|
|
|
2014-11-08 11:53:00 +00:00
|
|
|
|
sourceSets {
|
|
|
|
|
robolectricTests {
|
|
|
|
|
java.srcDir file('src/androidTest/java')
|
|
|
|
|
resources.srcDir file('src/androidTest/resources')
|
|
|
|
|
compileClasspath += configurations.robolectricTests
|
|
|
|
|
runtimeClasspath += compileClasspath
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2014-07-04 09:34:27 +00:00
|
|
|
|
configurations.all {
|
|
|
|
|
resolutionStrategy {
|
2014-11-29 18:12:14 +00:00
|
|
|
|
force 'com.android.support:support-v4:21.+'
|
|
|
|
|
force 'com.android.support:appcompat-v7:21.+'
|
2014-07-04 09:34:27 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2014-11-08 11:53:00 +00:00
|
|
|
|
|
2015-01-17 19:51:06 +00:00
|
|
|
|
afterEvaluate {
|
|
|
|
|
tasks.findByName("assembleDebug").dependsOn("testDebugClasses")
|
|
|
|
|
}
|
|
|
|
|
|
2014-01-24 08:45:36 +00:00
|
|
|
|
dependencies {
|
2015-01-17 19:51:06 +00:00
|
|
|
|
// core android studio module
|
|
|
|
|
//compile project(':core')
|
|
|
|
|
|
2014-04-20 13:54:33 +00:00
|
|
|
|
// You must install or update the Google Repository through the SDK manager to use this dependency.
|
|
|
|
|
// The Google Repository (separate from the corresponding library) can be found in the Extras category.
|
|
|
|
|
// compile 'com.google.android.gms:play-services:4.2.42'
|
2014-01-24 08:45:36 +00:00
|
|
|
|
compile files('src/main/libs/gson-2.2.4.jar')
|
|
|
|
|
compile files('src/main/libs/jsoup-1.7.2.jar')
|
|
|
|
|
compile project(':Changeloglib:ChangeLogLibrary')
|
|
|
|
|
compile project(':MessageBar')
|
2014-06-06 07:19:59 +00:00
|
|
|
|
compile project(':ownCloud-Account-Importer')
|
2014-07-28 09:52:21 +00:00
|
|
|
|
compile project(':ShowcaseView:library')
|
2014-09-02 09:11:39 +00:00
|
|
|
|
compile project(':android-HoloCircularProgressBar:library')
|
2014-11-29 18:12:14 +00:00
|
|
|
|
compile 'com.android.support:support-v4:21.+'
|
|
|
|
|
compile 'com.android.support:appcompat-v7:21.+'
|
2014-06-23 19:41:56 +00:00
|
|
|
|
compile 'com.jakewharton:butterknife:5.1.+'
|
|
|
|
|
compile 'com.squareup.picasso:picasso:2.3.1@jar'
|
|
|
|
|
compile 'com.sothree.slidinguppanel:library:+'
|
|
|
|
|
compile 'de.greenrobot:eventbus:2.2.1'
|
2014-07-28 09:52:21 +00:00
|
|
|
|
compile 'de.greenrobot:greendao:1.3.7@jar'
|
|
|
|
|
compile 'de.greenrobot:greendao-generator:1.3.1@jar'
|
|
|
|
|
compile 'org.freemarker:freemarker:2.3.18@jar'
|
2014-11-08 11:53:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-01-17 19:51:06 +00:00
|
|
|
|
testCompile 'org.robolectric:robolectric:2.4'
|
|
|
|
|
testCompile 'junit:junit:4.+'
|
2014-11-08 11:53:00 +00:00
|
|
|
|
|
2015-01-17 19:51:06 +00:00
|
|
|
|
// these aren’t getting used
|
|
|
|
|
//androidTestCompile 'some.other.library'
|
|
|
|
|
//instrumentTestCompile 'additional.library'
|
2014-11-08 11:53:00 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
task robolectric(type: Test, dependsOn: assemble) {
|
|
|
|
|
|
|
|
|
|
workingDir 'src/main'
|
|
|
|
|
|
|
|
|
|
testClassesDir = sourceSets.robolectricTests.output.classesDir
|
|
|
|
|
|
|
|
|
|
android.sourceSets.main.java.srcDirs.each { dir ->
|
|
|
|
|
def buildDir = dir.getAbsolutePath().split('/')
|
|
|
|
|
buildDir = (buildDir[0..(buildDir.length - 4)] + ['build', 'classes', 'debug']).join('/')
|
|
|
|
|
|
|
|
|
|
project.getPlugins().getPlugin('android').prepareTaskMap.each {
|
|
|
|
|
sourceSets.robolectricTests.compileClasspath += files(it.value.explodedDir.getAbsolutePath() + '/classes.jar')
|
|
|
|
|
sourceSets.robolectricTests.runtimeClasspath += files(it.value.explodedDir.getAbsolutePath() + '/classes.jar')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
sourceSets.robolectricTests.compileClasspath += files(buildDir)
|
|
|
|
|
sourceSets.robolectricTests.runtimeClasspath += files(buildDir)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
classpath = sourceSets.robolectricTests.runtimeClasspath
|
2014-01-24 08:45:36 +00:00
|
|
|
|
}
|
2014-11-08 11:53:00 +00:00
|
|
|
|
*/
|