1// Copyright 2017 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14project.ext {
15    // ExoPlayer version and version code.
16    releaseVersion = '2.17.1'
17    releaseVersionCode = 2_017_001
18    minSdkVersion = 16
19    appTargetSdkVersion = 29
20    // Upgrading this requires [Internal ref: b/193254928] to be fixed, or some
21    // additional robolectric config.
22    targetSdkVersion = 30
23    compileSdkVersion = 31
24    dexmakerVersion = '2.28.1'
25    junitVersion = '4.13.2'
26    // Use the same Guava version as the Android repo:
27    // https://cs.android.com/android/platform/superproject/+/master:external/guava/METADATA
28    guavaVersion = '31.0.1-android'
29    mockitoVersion = '3.12.4'
30    robolectricVersion = '4.8-alpha-1'
31    // Keep this in sync with Google's internal Checker Framework version.
32    checkerframeworkVersion = '3.13.0'
33    checkerframeworkCompatVersion = '2.5.5'
34    errorProneVersion = '2.10.0'
35    jsr305Version = '3.0.2'
36    kotlinAnnotationsVersion = '1.5.31'
37    androidxAnnotationVersion = '1.3.0'
38    androidxAppCompatVersion = '1.3.1'
39    androidxCollectionVersion = '1.1.0'
40    androidxConstraintLayoutVersion = '2.0.4'
41    androidxCoreVersion = '1.7.0'
42    androidxFuturesVersion = '1.1.0'
43    androidxMediaVersion = '1.4.3'
44    androidxMedia2Version = '1.2.0'
45    androidxMultidexVersion = '2.0.1'
46    androidxRecyclerViewVersion = '1.2.1'
47    androidxMaterialVersion = '1.4.0'
48    androidxTestCoreVersion = '1.4.0'
49    androidxTestJUnitVersion = '1.1.3'
50    androidxTestRunnerVersion = '1.4.0'
51    androidxTestRulesVersion = '1.4.0'
52    androidxTestServicesStorageVersion = '1.4.0'
53    androidxTestTruthVersion = '1.4.0'
54    truthVersion = '1.1.3'
55    okhttpVersion = '4.9.2'
56    modulePrefix = ':'
57    if (gradle.ext.has('exoplayerModulePrefix')) {
58        modulePrefix += gradle.ext.exoplayerModulePrefix
59    }
60}
61