diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2019-12-12 01:25:07 -0800 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2019-12-12 01:26:42 -0800 |
commit | b48556d578234bf0776604d2c09d428ac5c3abbc (patch) | |
tree | 4110628f583f21ce0b795698f6da3bae8df1f774 /packages/SystemUI/plugin_core | |
parent | af58990806eee028a9bd041c598906b67d404d60 (diff) |
Restricting the java version for plugin lib
Android Studio only supports jre 8, which prevents Robolectric tests
from running in the IDE when using the plugin lib
Test: Verified the tests run successfully
Change-Id: I44bfc1ef551b3e35698bed9084d31c0d5d3f5e6c
Diffstat (limited to 'packages/SystemUI/plugin_core')
-rw-r--r-- | packages/SystemUI/plugin_core/Android.bp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/SystemUI/plugin_core/Android.bp b/packages/SystemUI/plugin_core/Android.bp index 42d67620b81d..581fef721acc 100644 --- a/packages/SystemUI/plugin_core/Android.bp +++ b/packages/SystemUI/plugin_core/Android.bp @@ -16,4 +16,8 @@ java_library { sdk_version: "current", name: "PluginCoreLib", srcs: ["src/**/*.java"], + + // Enforce that the library is built against java 8 so that there are + // no compatibility issues with launcher + java_version: "1.8", } |