forked from android10/Android-CleanArchitecture-Kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
61 lines (51 loc) · 1.53 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
apply from: 'buildsystem/ci.gradle'
apply from: 'buildsystem/dependencies.gradle'
buildscript {
ext.kotlin_version = '1.2.51'
ext.gradle_tools = '3.1.3'
ext.build_tools = '27.0.3'
ext.compile_sdk = 27
ext.target_sdk = 27
ext.min_sdk = 21
ext.application_id = 'com.fernandocejas.sample'
ext.version_name = '1.0'
ext.version_code = 1
ext.test_runner = 'android.support.test.runner.AndroidJUnitRunner'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
//noinspection DifferentKotlinGradleVersion
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
google()
jcenter()
}
}
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 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.fernandocejas.sample/com.fernandocejas.sample.core.navigation.RouteActivity'
}
}