From 52c90072eca543d532703e87a3faa32103fb9f74 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Wed, 6 Jan 2021 20:51:54 +0000 Subject: msm8996-common: doze: Use all shared resources from devicesettings Change-Id: Icd7f381c574ea36eb4d797cefd60ba9f1a0941bd --- doze/Android.bp | 23 +++++++++++ doze/Android.mk | 25 ------------ doze/res/color/switch_bar_bg.xml | 20 ---------- doze/res/drawable/switchbar_background.xml | 20 ---------- doze/res/layout/switch_bar.xml | 48 ----------------------- doze/res/values/styles.xml | 62 ------------------------------ 6 files changed, 23 insertions(+), 175 deletions(-) create mode 100644 doze/Android.bp delete mode 100644 doze/Android.mk delete mode 100644 doze/res/color/switch_bar_bg.xml delete mode 100644 doze/res/drawable/switchbar_background.xml delete mode 100644 doze/res/layout/switch_bar.xml delete mode 100644 doze/res/values/styles.xml (limited to 'doze') diff --git a/doze/Android.bp b/doze/Android.bp new file mode 100644 index 0000000..9a2d1e1 --- /dev/null +++ b/doze/Android.bp @@ -0,0 +1,23 @@ +// +// Copyright (C) 2017-2021 The LineageOS Project +// +// SPDX-License-Identifier: Apache-2.0 +// + +android_app { + name: "ZukDoze", + + srcs: ["src/**/*.java"], + resource_dirs: ["res"], + certificate: "platform", + platform_apis: true, + privileged: true, + + static_libs: [ + "org.lineageos.settings.resources", + ], + + optimize: { + proguard_flags_files: ["proguard.flags"], + }, +} diff --git a/doze/Android.mk b/doze/Android.mk deleted file mode 100644 index 1112da5..0000000 --- a/doze/Android.mk +++ /dev/null @@ -1,25 +0,0 @@ -LOCAL_PATH:= $(call my-dir) -include $(CLEAR_VARS) - -LOCAL_MODULE_TAGS := optional - -LOCAL_SRC_FILES := $(call all-java-files-under, src) - -LOCAL_PACKAGE_NAME := ZukDoze -LOCAL_CERTIFICATE := platform -LOCAL_PRIVATE_PLATFORM_APIS := true -LOCAL_PRIVILEGED_MODULE := true - -LOCAL_USE_AAPT2 := true - -LOCAL_STATIC_ANDROID_LIBRARIES := \ - androidx.core_core \ - androidx.preference_preference - -LOCAL_RESOURCE_DIR := \ - $(LOCAL_PATH)/res \ - $(TOP)/packages/resources/devicesettings/res - -LOCAL_PROGUARD_FLAG_FILES := proguard.flags - -include $(BUILD_PACKAGE) diff --git a/doze/res/color/switch_bar_bg.xml b/doze/res/color/switch_bar_bg.xml deleted file mode 100644 index ba2dae1..0000000 --- a/doze/res/color/switch_bar_bg.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - diff --git a/doze/res/drawable/switchbar_background.xml b/doze/res/drawable/switchbar_background.xml deleted file mode 100644 index f210707..0000000 --- a/doze/res/drawable/switchbar_background.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - diff --git a/doze/res/layout/switch_bar.xml b/doze/res/layout/switch_bar.xml deleted file mode 100644 index 9e11a0a..0000000 --- a/doze/res/layout/switch_bar.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - diff --git a/doze/res/values/styles.xml b/doze/res/values/styles.xml deleted file mode 100644 index 3443c0b..0000000 --- a/doze/res/values/styles.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - -- cgit v1.2.3