This repository has been archived by the owner on Oct 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle
117 lines (108 loc) · 4.93 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
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
107
108
109
110
111
112
113
114
115
116
117
buildscript {
// Manifest version information!
def versionMajor = 1
def versionMinor = 0
def versionPatch = 2
def versionBuild = 0 // bump for dogfood builds, public betas, etc.
ext.versions = [
'compileSdk': 27,
'minSdk': 21,
'minSdkInstant' : 21,
'targetSdk': 27,
'kotlin': '1.2.40',
'versionCode' : versionMajor * 10000 + versionMinor * 1000 + versionPatch * 100 + versionBuild,
'versionName' : "${versionMajor}.${versionMinor}.${versionPatch}",
'supportLibrary': '26.1.0',
'constraintLayout': '1.0.2',
'googlePlayServices': '15.0.0',
'dagger': '2.15',
'leakCanary': '1.5.1',
'mosby': '3.1.0',
'retrofit': '2.4.0',
'permissionsDispatcher': '3.0.1'
]
ext.deps = [
'kotlin': [
'stdlib': "org.jetbrains.kotlin:kotlin-stdlib-jre7:$versions.kotlin",
'gradlePlugin': "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin"
],
'support': [
'v4': "com.android.support:support-v4:${versions.supportLibrary}",
'v13': "com.android.support:support-v13:${versions.supportLibrary}",
'appCompat': "com.android.support:appcompat-v7:${versions.supportLibrary}",
'annotations': "com.android.support:support-annotations:${versions.supportLibrary}",
'design': "com.android.support:design:${versions.supportLibrary}",
'recyclerView': "com.android.support:recyclerview-v7:${versions.supportLibrary}",
'cardView': "com.android.support:cardview-v7:${versions.supportLibrary}",
'palette': "com.android.support:palette-v7:${versions.supportLibrary}",
'constraintLayout': "com.android.support.constraint:constraint-layout:${versions.constraintLayout}",
],
'dagger': [
'runtime': "com.google.dagger:dagger:${versions.dagger}",
'compiler': "com.google.dagger:dagger-compiler:${versions.dagger}",
],
'daggerAndroid': [
'runtime': "com.google.dagger:dagger-android-support:${versions.dagger}",
'compiler':"com.google.dagger:dagger-android-processor:${versions.dagger}"
],
'leakCanary': [
'real': "com.squareup.leakcanary:leakcanary-android:${versions.leakCanary}",
'noOp': "com.squareup.leakcanary:leakcanary-android-no-op:${versions.leakCanary}",
],
'mosby': [
'core': "com.hannesdorfmann.mosby3:mvp:${versions.mosby}",
'viewState': "com.hannesdorfmann.mosby3:viewstate:${versions.mosby}",
],
'retrofit': [
'base': "com.squareup.retrofit2:retrofit:${versions.retrofit}",
'gson': "com.squareup.retrofit2:converter-gson:${versions.retrofit}",
],
'permissionsDispatcher': [
'runtime': "com.github.hotchemi:permissionsdispatcher:${versions.permissionsDispatcher}",
'compiler': "com.github.hotchemi:permissionsdispatcher-processor:${versions.permissionsDispatcher}",
],
'googlePlayServices': [
'location': "com.google.android.gms:play-services-location:${versions.googlePlayServices}",
],
'fabric':[
"gradlePlugin": "io.fabric.tools:gradle:1.25.1",
'crashlytics': 'com.crashlytics.sdk.android:crashlytics:2.8.0@aar'
],
'test': [
'junit': "junit:junit:4.12",
'mockito': "org.mockito:mockito-core:2.10.0",
'mockitoKotlin': "com.nhaarman:mockito-kotlin-kt1.1:1.5.0"
],
'okHttpLogginInterceptor': 'com.squareup.okhttp3:logging-interceptor:3.9.0',
'instantApps': "com.google.android.instantapps:instantapps:1.1.0",
'timber': 'com.jakewharton.timber:timber:4.7.0',
'mpAndroidChart': "com.github.PhilJay:MPAndroidChart:v3.0.2",
'stetho': 'com.facebook.stetho:stetho-okhttp3:1.5.0',
]
ext.keys = [
'debug': [
'storePassword' : 'android',
'keyAlias' : 'androiddebugkey',
'keyPassword' : 'android',
'storeFile' : rootProject.file('key/debug.keystore')
]
]
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
classpath deps.kotlin.gradlePlugin
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" } // for MpAndroidChart
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}