forked from STMicroelectronics/STBLESensor_Android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
132 lines (110 loc) · 4.05 KB
/
build.gradle
File metadata and controls
132 lines (110 loc) · 4.05 KB
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
/// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.3.72'
ext.os_licenses_plugin_version='0.10.2'
repositories {
jcenter()
google()
//needed for Crashlytics
maven {
url 'https://maven.fabric.io/public'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'
classpath 'com.google.gms:google-services:4.3.3'
// google-services plugin needed for Crashlytics
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.1.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.google.android.gms:oss-licenses-plugin:$os_licenses_plugin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
//Add for compiling BLESensor with login module shared with Asset Tracking
maven { url 'https://jitpack.io' }
}
}
// Define versions in a single place
ext {
// Sdk and tools
minSdkVersion = 21
targetSdkVersion = 29
compileSdkVersion = 29
buildToolsVersion = '29.0.3'
androidx_appCompatVersion = '1.1.0'
androidx_fragmentVersion = '1.2.5'
androidx_supportLegacy = '1.0.0'
androidx_gridLayout = '1.0.0'
androidx_materialVersion = '1.1.0'
androidx_constraintLayoutVersion = '1.1.3'
androidx_recycleViewVersion = '1.1.0'
androidx_cardViewVersion = '1.0.0'
androidx_lifecycleExtVersion = '2.2.0'
androidx_lifecycleSaveStateVersion = '2.2.0'
androidx_roomVersion = "2.2.5"
androidx_annotationVersion = "1.1.0"
androidx_localBroadcastVersion = "1.0.0"
androidx_preferenceVersion = "1.1.1"
androidx_swipeRefreshLayoutVersion = "1.0.0"
cloud_pahoVersion = "1.2.4"
cloud_pahoServiceVersion = "1.1.1"
gsonVersion = '2.8.6'
// Test dependency
androidx_runnerVersion = '1.2.0'
androidx_rulesVersion = '1.2.0'
androidx_espressoVersion = '3.2.0'
mockitoVersion = '1.9.5'
//Add for compiling BLESensor with login module shared with Asset Tracking
androidx_preference = '1.1.1'
androidx_activityKtx = '1.1.0'
androidx_fragmentKtx = '1.2.5'
androidx_viewPager2 = '1.0.0'
//Analytics
amazonSDKVersion = '2.16.12'
awsVersion = '2.16.12'
firebase_messagingVersion = '20.2.0'
junitVersion = '4.13'
androidx_junitVersion = '1.1.1'
//kotlin
kotlin_coroutineVersion = '1.3.7'
kotlin_coroutineAndroidVersion = '1.3.7'
kotlin_coroutine = '1.3.7'
javaVersion = JavaVersion.VERSION_1_8
retrofitVersion = '2.9.0'
}
//dependency for the BLE Toolbox module
ext.versions = [
'compileSdk' : compileSdkVersion,
'buildTools' : buildToolsVersion,
'minSdk' : minSdkVersion,
'targetSdk' : targetSdkVersion,
'appcompat' : androidx_appCompatVersion,
'material' : androidx_materialVersion,
'swipeRefresh' : androidx_swipeRefreshLayoutVersion,
'localBroadcast' : androidx_localBroadcastVersion,
'androidx' : '1.0.0',
'androidxArch' : '2.0.0',
'room' : androidx_roomVersion,
'constraintLayout': androidx_constraintLayoutVersion,
'coreKtx' : '1.2.0-rc01',
'coroutines' : '1.3.0',
'fragment' : androidx_fragmentVersion,
'espresso' : '3.2.0',
'extJunit' : '1.1.1',
'recyclerView' : androidx_recycleViewVersion,
'coreTest' : '2.1.0',
'junit' : '4.12',
'mockk' : '1.9.3',
'ktlint' : '0.24.0',
'lifecycle' : androidx_lifecycleExtVersion,
'test_coreKtx' : '1.2.0',
'test_rules' : '1.1.0-beta02',
'test_runner' : '1.1.0-beta02',
'test_fragment' : '1.2.0-rc03',
'ui_automator' : '2.2.0-beta02',
]