-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdependencies.gradle
106 lines (80 loc) · 3.66 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
ext {
/*====================================== MAIN ======================================*/
android = [
compileSdkVersion: 29,
minSdkVersion : 16,
targetSdkVersion : 29,
buildToolsVersion: "29.0.0",
]
libVersion = "1.0.6"
libGroup = "com.github.illiashenkoo"
/*================================= BUILD PLUGINS ==================================*/
buildVersions = [
gradle : '3.5.1',
kotlin : '1.3.50',
dcendents: '2.1',
dokka : '0.9.18',
]
buildPlugins = [
gradle : "com.android.tools.build:gradle:$buildVersions.gradle",
kotlin : "org.jetbrains.kotlin:kotlin-gradle-plugin:$buildVersions.kotlin",
dcendents: "com.github.dcendents:android-maven-gradle-plugin:$buildVersions.dcendents",
dokka : "org.jetbrains.dokka:dokka-android-gradle-plugin:$buildVersions.dokka",
]
/*================================== DEPENDENCIES ==================================*/
def androidx_appcompat = '1.1.0'
def androidx_fragment = '1.1.0'
def junit_version = '4.12'
def mockito_version = '2.7.22'
def robolectric_version = '4.2.1'
def libs = [
kotlin_stdlib : "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$buildVersions.kotlin",
androidx_appcompat: "androidx.appcompat:appcompat:$androidx_appcompat",
androidx_fragment : "androidx.fragment:fragment:$androidx_fragment",
]
def testLibs = [
jnuit : "junit:junit:$junit_version",
mockito : "org.mockito:mockito-core:$mockito_version",
robolectric: "org.robolectric:robolectric:$robolectric_version"
]
/*============================== MODULE DEPENDENCIES ==============================*/
def modules = [
library: ":startask-permissions",
]
libraryModuleDependencies = [
[configuration: "implementation", dependency: libs.androidx_appcompat],
[configuration: "implementation", dependency: libs.androidx_fragment],
[configuration: "implementation", dependency: libs.kotlin_stdlib],
[configuration: "testImplementation", dependency: testLibs.jnuit],
[configuration: "testImplementation", dependency: testLibs.mockito],
[configuration: "testImplementation", dependency: testLibs.robolectric],
]
sampleModuleDependencies = [
[configuration: "implementation", dependency: libs.androidx_appcompat],
[configuration: "implementation", dependency: libs.kotlin_stdlib],
[configuration: "implementation", dependency: project(modules.library)]
]
/*==================================== PLUGINS =====================================*/
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',
android_maven : 'com.github.dcendents.android-maven',
dokka_android : 'org.jetbrains.dokka-android',
jacoco : 'jacoco',
]
sampleModulePlugins = [
plugins.android_application,
plugins.kotlin_android,
plugins.kotlin_android_extensions,
plugins.kotlin_kapt,
]
libraryModulePlugins = [
plugins.android_library,
plugins.kotlin_android,
plugins.android_maven,
plugins.dokka_android,
]
}