From 7504ce763e8525a2d9d22fd1f3983979f7827cf3 Mon Sep 17 00:00:00 2001 From: christosts Date: Wed, 8 Apr 2020 13:44:49 +0100 Subject: [PATCH] Add QoePingStore and QoePingItem This is the first CL for the offline qoe reporting feature. Refer to the design doc for full information. Design doc: go/exoplayer-offline-qoe PiperOrigin-RevId: 305459231 --- constants.gradle | 2 +- .../google/android/exoplayer2/database/VersionTable.java | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/constants.gradle b/constants.gradle index c06858e244..1a7840588f 100644 --- a/constants.gradle +++ b/constants.gradle @@ -21,7 +21,7 @@ project.ext { compileSdkVersion = 29 dexmakerVersion = '2.21.0' junitVersion = '4.13-rc-2' - guavaVersion = '23.5-android' + guavaVersion = '28.2-android' mockitoVersion = '2.25.0' robolectricVersion = '4.3.1' checkerframeworkVersion = '2.5.0' diff --git a/library/core/src/main/java/com/google/android/exoplayer2/database/VersionTable.java b/library/core/src/main/java/com/google/android/exoplayer2/database/VersionTable.java index be367d2f22..f1d269ddbf 100644 --- a/library/core/src/main/java/com/google/android/exoplayer2/database/VersionTable.java +++ b/library/core/src/main/java/com/google/android/exoplayer2/database/VersionTable.java @@ -40,6 +40,8 @@ public final class VersionTable { public static final int FEATURE_CACHE_CONTENT_METADATA = 1; /** Version of tables used for cache file metadata. */ public static final int FEATURE_CACHE_FILE_METADATA = 2; + /** Version of tables used from external features. */ + public static final int FEATURE_EXTERNAL = 1000; private static final String TABLE_NAME = DatabaseProvider.TABLE_PREFIX + "Versions"; @@ -67,7 +69,12 @@ public final class VersionTable { @Documented @Retention(RetentionPolicy.SOURCE) - @IntDef({FEATURE_OFFLINE, FEATURE_CACHE_CONTENT_METADATA, FEATURE_CACHE_FILE_METADATA}) + @IntDef({ + FEATURE_OFFLINE, + FEATURE_CACHE_CONTENT_METADATA, + FEATURE_CACHE_FILE_METADATA, + FEATURE_EXTERNAL + }) private @interface Feature {} private VersionTable() {}