From 9da9ea49916a054da5689c0de863e1ef279d090a Mon Sep 17 00:00:00 2001 From: Chris Warrington Date: Thu, 22 Apr 2021 19:11:05 +0100 Subject: Warn if compileSdk is higher than has been tested Update from cl/369869065 Other changes removed as they require other changes to Studio Bug: N/A Test: Included in I32e7e00e58bc946f796330e78454dd9529c11ec7 Change-Id: I5b96d002a4312ccc517712e1c6824f11c400666f --- protos/src/main/proto/analytics_enums.proto | 1 + protos/src/main/proto/studio_stats.proto | 3 +++ 2 files changed, 4 insertions(+) diff --git a/protos/src/main/proto/analytics_enums.proto b/protos/src/main/proto/analytics_enums.proto index b6328a9..44b9d00 100644 --- a/protos/src/main/proto/analytics_enums.proto +++ b/protos/src/main/proto/analytics_enums.proto @@ -569,6 +569,7 @@ enum StringOption { NATIVE_BUILD_OUTPUT_LEVEL = 30; AAPT2_FROM_MAVEN_VERSION_OVERRIDE = 31; LINT_HEAP_SIZE = 32; + SUPPRESS_UNSUPPORTED_COMPILE_SDK = 33; } enum VariantApiArtifactType { diff --git a/protos/src/main/proto/studio_stats.proto b/protos/src/main/proto/studio_stats.proto index 7d66daf..d7f6dba 100644 --- a/protos/src/main/proto/studio_stats.proto +++ b/protos/src/main/proto/studio_stats.proto @@ -1517,6 +1517,9 @@ message AndroidStudioEvent { // Java version used by AGP is too low. TYPE_AGP_USED_JAVA_VERSION_TOO_LOW = 55; + // An AGP upgrade is recommended to use this compile sdk version. + TYPE_COMPILE_SDK_VERSION_TOO_HIGH = 56; + // NOTE: When adding a new type here, increment the index by 1. This index // may not be consistent with the corresponding value in the Android Gradle // plugin (e.g., it could be higher by 1), because of an indexing issue in -- cgit v1.2.3