-
Notifications
You must be signed in to change notification settings - Fork 12
/
dependencies.gradle
83 lines (67 loc) · 2.59 KB
/
dependencies.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
75
76
77
78
79
80
81
82
83
ext {
android = [
compileSdkVersion : 28,
minSdkVersion : 16,
targetSdkVersion : 28,
]
/* build plugins versions */
build = [
gradle : "7.0.2",
kotlin : "1.5.31",
]
buildPlugins = [
gradle : "com.android.tools.build:gradle:$build.gradle",
kotlin : "org.jetbrains.kotlin:kotlin-gradle-plugin:$build.kotlin",
]
/* dependencies versions */
def androidx_app_compat_version = '1.3.1'
def androidx_material_version = '1.4.0'
def junit_version = '4.13.2'
def libs = [
/* android support */
supportAppCompat : "androidx.appcompat:appcompat:$androidx_app_compat_version",
supportDesign : "com.google.android.material:material:$androidx_material_version",
/* kotlin */
kotlinStdlib : "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$build.kotlin",
]
def testLibs = [
jnuit : "junit:junit:$junit_version",
]
def modules = [
library : ":library"
]
libraryModuleDependencies = [
/* android support */
[configuration: "implementation", dependency: libs.supportDesign],
/* kotlin */
[configuration: "implementation", dependency: libs.kotlinStdlib],
/* test */
[configuration: "testImplementation", dependency: testLibs.jnuit],
]
sampleModuleDependencies = [
/* android support */
[configuration: "implementation", dependency: libs.supportAppCompat],
[configuration: "implementation", dependency: libs.supportDesign],
/* kotlin */
[configuration: "implementation", dependency: libs.kotlinStdlib],
/* modules */
[configuration: "implementation", dependency: project(modules.library)],
]
def plugins = [
android_library : 'com.android.library',
android_application : 'com.android.application',
kotlin_android : 'kotlin-android',
kotlin_android_extensions : 'kotlin-android-extensions',
kotlin_kapt : 'kotlin-kapt',
maven_publish : 'maven-publish',
]
libraryModulePlugins = [
plugins.android_library,
plugins.kotlin_android,
plugins.maven_publish,
]
sampleModulePlugins = [
plugins.android_application,
plugins.kotlin_android,
]
}