-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
100 lines (92 loc) · 5.22 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
final majorVersion = 4
final minorVersion = 3
final patchVersion = 0
final minSdk = 21
final latestSdk = 29
final buildToolsVersion = "29.0.2"
ext.config = [
versionCode: 1000000 * majorVersion + 1000 * minorVersion + patchVersion,
versionName: "$majorVersion.$minorVersion.$patchVersion",
compileSdk : latestSdk,
targetSdk : latestSdk,
minSdk : minSdk,
buildToolsVersion : buildToolsVersion
]
final versions = [
kotlin : '1.3.41',
support : '1.1.0-rc01',
material : '1.2.0-alpha03',
constraintLayout : '2.0.0-beta6',
recyclerView : '1.1.0-beta01',
ktx : '1.2.0-alpha02',
lifecycle : '2.2.0-alpha02',
bleLibrary : '2.2.4',
timber : '4.7.1',
permissionsDispatcher: '4.5.0',
junit : '4.13-beta-3',
atsl : '1.2.0-beta01', // Android Testing Support Library
espresso : '3.2.0-beta01',
lottie : '2.5.0',
grabner : '1.4',
kotpref : '2.2.0',
kotprefInitializer : '2.2.0',
room : '2.2.5',
navigation : '1.0.0-alpha09',
appIntro : '6.0.0'
]
ext.deps = [
kotlinGradlePlugin : "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}",
kotlinStdLib : "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${versions.kotlin}",
appcompat : "androidx.appcompat:appcompat:${versions.support}",
material : "com.google.android.material:material:${versions.material}",
annotation : "androidx.annotation:annotation:${versions.support}",
lifecycleExtensions : "androidx.lifecycle:lifecycle-extensions:${versions.lifecycle}",
lifecycleCommon : "androidx.lifecycle:lifecycle-common-java8:${versions.lifecycle}",
liveData : "androidx.lifecycle:lifecycle-livedata-ktx:${versions.lifecycle}",
viewModel : "androidx.lifecycle:lifecycle-viewmodel-ktx:${versions.lifecycle}",
ktx : "androidx.core:core-ktx:${versions.ktx}",
constraintLayout : "androidx.constraintlayout:constraintlayout:${versions.constraintLayout}",
recyclerView : "androidx.recyclerview:recyclerview:${versions.recyclerview}",
bleLibrary : "no.nordicsemi.android:ble:${versions.bleLibrary}",
bleCommon : "no.nordicsemi.android:ble-common:${versions.bleLibrary}",
bleLiveData : "no.nordicsemi.android:ble-livedata:${versions.bleLibrary}",
timber : "com.jakewharton.timber:timber:${versions.timber}",
permissionsDispatcher : "org.permissionsdispatcher:permissionsdispatcher:${versions.permissionsDispatcher}",
permissionsDispatcherProcessor: "org.permissionsdispatcher:permissionsdispatcher-processor:${versions.permissionsDispatcher}",
mpAndroidChart : "com.github.PhilJay:MPAndroidChart:v3.1.0",
bluetoothStateView : "eo.view:bluetoothstate:1.1.1",
batteryMeterView : "eo.view:batterymeter:2.0.0",
junit : "junit:junit:${versions.junit}",
atsl : "androidx.test:runner:${versions.atsl}",
espresso : "androidx.test.espresso:espresso-core:${versions.espresso}",
lottie : "com.airbnb.android:lottie:${versions.lottie}",
circleProgress : "com.github.jakob-grabner:Circle-Progress-View:${versions.grabner}",
kotpref : "com.chibatching.kotpref:kotpref:${versions.kotpref}",
kotprefInitializer : "com.chibatching.kotpref:initializer:${versions.kotprefInitializer}",
roomRuntime : "androidx.room:room-runtime:${versions.room}",
roomCompiler : "androidx.room:room-compiler:${versions.room}",
roomKtx : "androidx.room:room-ktx:${versions.room}",
roomPersistence : "android.arch.persistence.room:compiler:1.1.1",
appIntro : "com.github.AppIntro:AppIntro:${versions.appIntro}"
]
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.2'
classpath deps.kotlinGradlePlugin
}
}
allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}