-
Notifications
You must be signed in to change notification settings - Fork 17
/
dependencies.gradle
192 lines (172 loc) · 8.5 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
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*
*/
ext {
//---- Important -------------------
// We have to update following versionName and versionCode groups in order to
// publish correctly a new version of each of our libraries.
// e.g. screenManager library, you could have as a current version
// 1.0.0-beta1, if you want to publish a new version you will have to increase in one the
// screenManagerCoreVersionCode and to bump the screenManagerCoreVersionName.
// SurfaceDuo SDK libraries version code.
// If you want to publish a new version, bump in one (1) the specific line(s)
screenManagerCoreVersionCode = 4
screenManagerDMVersionCode = 4
screenManagerWMVersionCode = 4
screenManagerUtilsVersionCode = 4
layoutsVersionCode = 8
fragmentsHandlerVersionCode = 5
bottomNavigationVersionCode = 4
tabsVersionCode = 4
recyclerviewVersionCode = 6
inkSDKVersionCode = 7
wmUtilsVersionCode = 5
navigationVersionCode = 2
testingVersionCode = 4
snackbarVersionCode = 2
navigationRailVersionCode = 1
// SurfaceDuo SDK libraries version name:
// If you want to publish a new version, bump the specific line(s)
screenManagerCoreVersionName = '1.0.0-beta4'
screenManagerDMVersionName = '1.0.0-beta4'
screenManagerWMVersionName = '1.0.0-beta4'
screenManagerUtilsVersionName = '1.0.0-beta4'
layoutsVersionName = '1.0.0-beta9'
fragmentsHandlerVersionName = '1.0.0-beta5'
bottomNavigationVersionName = '1.0.0-beta5'
tabsVersionName = '1.0.0-beta5'
recyclerviewVersionName = '1.0.0-beta6'
inkSDKVersionName = "1.0.0-alpha5"
wmUtilsVersionName = "1.0.0-beta5"
navigationVersionName = "1.0.0-alpha3"
testingVersionName = "1.0.0-alpha4"
snackbarVersionName = "1.0.0-alpha2"
navigationRailVersionName = '1.0.0-alpha1'
// ----------------------------------
// Config Android sdk, plugins and libraries version
gradlePluginVersion = "7.0.2"
kotlinVersion = "1.5.0"
serializationVersion = "1.3.2"
dokkaVersion = "1.6.0"
compileSdkVersion = 31
buildToolsVersion = '30.0.3'
targetSdkVersion = compileSdkVersion
minSdkVersion = 21
config = [
gradlePlugin : "com.android.tools.build:gradle:$gradlePluginVersion",
kotlinGradlePlugin : "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion",
testInstrumentationRunner: "androidx.test.runner.AndroidJUnitRunner"
]
kotlinDependencies = [
kotlinStdlib: "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
]
dokkaDependencies = [
dokkaGradlePlugin: "org.jetbrains.dokka:dokka-gradle-plugin:$dokkaVersion"
]
//AndroidX versions
appCompatVersion = "1.3.1"
constraintLayoutVersion = "2.0.4"
coreKtxVersion = "1.5.0"
//This version of WindowManager is used only in the screen manager module that is deprecated.
windowAlphaVersion = "1.0.0-alpha01"
lifecycleVersion = "2.3.1"
recyclerViewVersion = "1.2.0"
lifecycleRuntimeKtxVersion = "2.4.0-rc01"
annotationVersion = "1.1.0"
fragmentKtxVersion = "1.3.1"
windowManagerVersion = '1.0.0'
activityKtxVersion = "1.1.0"
customViewVersion = "1.1.0"
drawerLayoutVersion = "1.1.1"
transitionVersion = "1.4.0"
androidxDependencies = [
appCompat : "androidx.appcompat:appcompat:$appCompatVersion",
constraintLayout : "androidx.constraintlayout:constraintlayout:$constraintLayoutVersion",
coreKtx : "androidx.core:core-ktx:$coreKtxVersion",
windowAlpha : "androidx.window:window:$windowAlphaVersion",
lifecycleViewmodel : "androidx.lifecycle:lifecycle-viewmodel:$lifecycleVersion",
recyclerView : "androidx.recyclerview:recyclerview:$recyclerViewVersion",
lifecycleRuntimeKtx: "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycleRuntimeKtxVersion",
annotation : "androidx.annotation:annotation:$annotationVersion",
fragmentKtx : "androidx.fragment:fragment-ktx:$fragmentKtxVersion",
windowManager : "androidx.window:window-java:$windowManagerVersion",
activityKtx : "androidx.activity:activity-ktx:$activityKtxVersion",
customView : "androidx.customview:customview:$customViewVersion",
drawerLayout : "androidx.drawerlayout:drawerlayout:$drawerLayoutVersion",
transition : "androidx.transition:transition:$transitionVersion"
]
//Material Design
materialVersion = "1.3.0"
// Can not migrate all libraries to 1.6.0 yet. This version will be used only by the NavigationRailView
materialVersion160 = "1.6.0"
materialDependencies = [
material : "com.google.android.material:material:$materialVersion",
material160: "com.google.android.material:material:$materialVersion160"
]
googleTruthVersion = "1.1.2"
mockitoVersion = "3.3.3"
mockitoDexMakerVersion = "2.28.0"
screenManagerVersion = "wm:screenmanager-windowmanager"
commonDependencies = [
googleTruth : "com.google.truth:truth:$googleTruthVersion",
mockitoCore : "org.mockito:mockito-core:$mockitoVersion",
mockitoDexMaker: "com.linkedin.dexmaker:dexmaker-mockito:$mockitoDexMakerVersion",
screenManager : ":screenmanager:$screenManagerVersion"
]
// Navigation version
// Navigation version
navigationVersion = "2.3.5"
navigationDependencies = [
common : "androidx.navigation:navigation-common:$navigationVersion",
commonKtx : "androidx.navigation:navigation-common-ktx:$navigationVersion",
runtime : "androidx.navigation:navigation-runtime:$navigationVersion",
runtimeKtx : "androidx.navigation:navigation-runtime-ktx:$navigationVersion",
fragment : "androidx.navigation:navigation-fragment:$navigationVersion",
fragmentKtx : "androidx.navigation:navigation-fragment-ktx:$navigationVersion",
testing : "androidx.navigation:navigation-testing:$navigationVersion",
ui : "androidx.navigation:navigation-ui:$navigationVersion",
uiKtx : "androidx.navigation:navigation-ui-ktx:$navigationVersion",
safeArgsPlugin: "androidx.navigation:navigation-safe-args-gradle-plugin:$navigationVersion"
]
//Test dependencies version
junitVersion = "4.13.2"
testDependencies = [
junit: "junit:junit:$junitVersion"
]
//Android test dependencies version
junitInstrumentationVersion = "1.1.3"
espressoCoreVersion = "3.3.0"
testRunnerVersion = "1.4.0"
testRulesVersion = "1.4.0"
uiAutomatorVersion = "2.2.0"
supportTestRulesVersion = "1.0.2"
fragmentTestingVersion = "1.3.1"
lifecycleRuntimeTestingVersion = "2.3.1"
supportTestRulesVersion = "1.0.2"
espressoIntentsVersion = "3.3.0"
espressoContribVersion = "3.3.0"
instrumentationTestDependencies = [
junit : "androidx.test.ext:junit:$junitInstrumentationVersion",
junitKtx : "androidx.test.ext:junit-ktx:$junitInstrumentationVersion",
espressoCore : "androidx.test.espresso:espresso-core:$espressoCoreVersion",
testRunner : "androidx.test:runner:$testRunnerVersion",
testRules : "androidx.test:rules:$testRulesVersion",
uiAutomator : "androidx.test.uiautomator:uiautomator:$uiAutomatorVersion",
navigationTesting : "androidx.navigation:navigation-testing:$navigationVersion",
fragmentTesting : "androidx.fragment:fragment-testing:$fragmentTestingVersion",
lifecycleRuntimeTesting: "androidx.lifecycle:lifecycle-runtime-testing:$lifecycleRuntimeTestingVersion",
supportTestRules : "com.android.support.test:rules:$supportTestRulesVersion",
espressoIntents : "androidx.test.espresso:espresso-intents:$espressoIntentsVersion",
espressoContrib : "androidx.test.espresso:espresso-contrib:$espressoContribVersion",
windowManagerTest : "androidx.window:window-testing:$windowManagerVersion",
]
mlKitVersion = "16.1.0"
mlKitDependencies = [
digitalInk: "com.google.mlkit:digital-ink-recognition:$mlKitVersion"
]
inkSDK = [
minSdkVersion: 23
]
}