forked from android10/Android-CleanArchitecture-Kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
74 lines (63 loc) · 2.22 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
apply from: 'buildsystem/ci.gradle'
apply from: 'buildsystem/dependencies.gradle'
buildscript {
ext.kotlin_version = '1.2.51'
ext.gradle_tools = '3.1.4'
ext.build_tools = '27.0.3'
ext.jacoco_version = '0.8.2-SNAPSHOT'
ext.fabric_version = '1.25.1'
ext.apollo_version = '1.0.0-alpha'
ext.compile_sdk = 27
ext.target_sdk = 27
ext.min_sdk = 21
ext.application_id = 'com.his'
ext.version_name = '1.0'
ext.version_code = 1
ext.test_runner = 'android.support.test.runner.AndroidJUnitRunner'
repositories {
google()
jcenter()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath "com.android.tools.build:gradle:$gradle_tools"
classpath "org.jacoco:org.jacoco.core:$jacoco_version"
//noinspection DifferentKotlinGradleVersion
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "io.fabric.tools:gradle:$fabric_version"
classpath "com.apollographql.apollo:apollo-gradle-plugin:$apollo_version"
}
}
allprojects {
repositories {
google()
jcenter()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
task runUnitTests(dependsOn: [':app:testDebugUnitTest']) {
description 'Run all unit tests'
}
task runAcceptanceTests(dependsOn: [':app:connectedAndroidTest']) {
description 'Run all acceptance tests.'
}
task runCoverageTests(dependsOn: [':app:jacocoTestReport']) {
description 'Run coverage tests.'
}
task deployDebug(type: Exec, dependsOn: 'app:installDebug') {
def rootDir = project.rootDir
def localProperties = new File(rootDir, "local.properties")
if (localProperties.exists()) {
Properties properties = new Properties()
localProperties.withInputStream {
inputStream -> properties.load(inputStream)
}
def sdkDir = properties.getProperty('sdk.dir')
def adb = "$sdkDir/platform-tools/adb"
commandLine "$adb", 'shell', 'am', 'start', '-n', 'com.his/com.his.core.navigation.RouteActivity'
}
}