-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
71 lines (61 loc) · 2.25 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.2.41'
// Android Architecture Components
// Ref: https://developer.android.com/topic/libraries/architecture/adding-components
ext.aacNavigationVer = '1.0.0-alpha01'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.0-alpha14'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// Ref: https://stackoverflow.com/questions/50284338/could-not-find-androidx-navigationsafe-args-gradle-plugin1-0-0-alpha01/50295150
// classpath "androidx.navigation:safe-args-gradle-plugin:${aacNavigationVer}"
classpath "android.arch.navigation:navigation-safe-args-gradle-plugin:${aacNavigationVer}"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
// Define versions in a single place
// Ref: https://github.com/googlesamples/android-architecture/blob/dev-todo-mvvm-rxjava/todoapp/build.gradle
ext {
// Sdk and tools
// Alter system var names to suppress lint warnings
minSdkVer = 19
targetSdkVer = 27
compileSdkVer = 27
// App dependencies
// Deliberately held back to avoid conflicts w/AAC deps
supportLibraryVersion = '27.1.0'
constraintLayoutVer = '1.1.0'
androidArchLifecycleExtVer = '1.1.1'
// Android Architecture Components
// Ref: https://developer.android.com/topic/libraries/architecture/adding-components
aacLifecycleVer = '1.1.1'
aacLifecycleAndroidXVer = '2.0.0-alpha1'
aacNavigationVer = '1.0.0-alpha01'
aacPagingVer = '1.0.0'
aacPagingAlphaVer = '1.0.0-alpha1'
aacPagingAndroidXVer = '2.0.0-alpha1'
aacRoomVer = '1.1.0'
aacRoomAndroidXVer = '2.0.0-alpha1'
aacWorkMgrVer = '1.0.0-alpha01'
// 3rd party libs/frameworks
jsoupVersion = '1.11.3' // https://jsoup.org/download
moshiVer = '1.5.0'
// Testing
junitVer = '4.12'
testRunnerVer = '1.0.2'
espressoVer = '3.0.2'
}