Separate out ShaderLib from AnimationLib.
Bug: 258689851
Test: m, gradle build
Change-Id: I784637fbe09d82215cc99420d5a472ad06b5326a
diff --git a/packages/SystemUI/animation/Android.bp b/packages/SystemUI/animation/Android.bp
index 978ab5d..5b5871f 100644
--- a/packages/SystemUI/animation/Android.bp
+++ b/packages/SystemUI/animation/Android.bp
@@ -29,6 +29,10 @@
"src/**/*.java",
"src/**/*.kt",
],
+ exclude_srcs: [
+ "src/com/android/systemui/surfaceeffects/**/*.java",
+ "src/com/android/systemui/surfaceeffects/**/*.kt",
+ ],
resource_dirs: [
"res",
@@ -38,8 +42,30 @@
"androidx.core_core-animation-nodeps",
"androidx.core_core-ktx",
"androidx.annotation_annotation",
+ "SystemUIShaderLib",
+ ],
+
+ manifest: "AndroidManifest.xml",
+ kotlincflags: ["-Xjvm-default=all"],
+}
+
+android_library {
+ name: "SystemUIShaderLib",
+
+ srcs: [
+ "src/com/android/systemui/surfaceeffects/**/*.java",
+ "src/com/android/systemui/surfaceeffects/**/*.kt",
+ ],
+
+ static_libs: [
+ "androidx.core_core-animation-nodeps",
+ "androidx.core_core-ktx",
+ "androidx.annotation_annotation",
],
manifest: "AndroidManifest.xml",
kotlincflags: ["-Xjvm-default=all"],
+
+ // sdk_version must be specified, otherwise it compiles against private APIs.
+ sdk_version: "current",
}