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.16.1' 17 releaseVersionCode = 2016001 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.6.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 androidxCoreVersion = '1.7.0' 41 androidxFuturesVersion = '1.1.0' 42 androidxMediaVersion = '1.4.3' 43 androidxMedia2Version = '1.2.0' 44 androidxMultidexVersion = '2.0.1' 45 androidxRecyclerViewVersion = '1.2.1' 46 androidxMaterialVersion = '1.4.0' 47 androidxTestCoreVersion = '1.4.0' 48 androidxTestJUnitVersion = '1.1.3' 49 androidxTestRunnerVersion = '1.4.0' 50 androidxTestRulesVersion = '1.4.0' 51 androidxTestServicesStorageVersion = '1.4.0' 52 androidxTestTruthVersion = '1.4.0' 53 truthVersion = '1.1.3' 54 okhttpVersion = '4.9.2' 55 modulePrefix = ':' 56 if (gradle.ext.has('exoplayerModulePrefix')) { 57 modulePrefix += gradle.ext.exoplayerModulePrefix 58 } 59} 60