This contains the core interfaces for plugin support, e.g. Plugin.java and the associated annotations. It is reused by the shared library and plugin interfaces in both sysui and launcher are built off of it. Test: atest com.android.systemui.shared.plugins Test: cd $ANDROID_BUILD_TOP/frameworks/base/packages/SystemUI/plugin_core \ && mma -j32 && cd - out/target/product/$TARGET_PRODUCT/obj/JAVA_LIBRARIES/PluginCoreLib_intermediates/javalib.jar contains the created jar and is useable in launcher Bug: 115877296 Change-Id: I82ca7398e882d6432333238e2f77a12e776f1d76
41 lines
965 B
Plaintext
41 lines
965 B
Plaintext
// Copyright (C) 2016 The Android Open Source Project
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
java_library {
|
|
|
|
name: "SystemUIPluginLib",
|
|
|
|
srcs: ["src/**/*.java"],
|
|
|
|
static_libs: [
|
|
"PluginCoreLib"
|
|
],
|
|
|
|
}
|
|
|
|
android_app {
|
|
|
|
// Dummy to generate .toc files.
|
|
name: "PluginDummyLib",
|
|
platform_apis: true,
|
|
srcs: ["src/**/*.java"],
|
|
|
|
libs: ["SystemUIPluginLib"],
|
|
|
|
optimize: {
|
|
enabled: false,
|
|
},
|
|
|
|
}
|