From f2f26414dce839b4628e77b97187481691692c7b Mon Sep 17 00:00:00 2001 From: Pig Date: Fri, 18 Dec 2020 00:40:41 +0800 Subject: [PATCH] alioth: parts: Convert to Android.bp Change-Id: Iecd8bbc5f1351ad29c974ef08dd3948eabacf2b3 --- parts/Android.bp | 29 +++++++++++++++++++++++++++++ parts/Android.mk | 35 ----------------------------------- 2 files changed, 29 insertions(+), 35 deletions(-) create mode 100644 parts/Android.bp delete mode 100644 parts/Android.mk diff --git a/parts/Android.bp b/parts/Android.bp new file mode 100644 index 0000000..9740143 --- /dev/null +++ b/parts/Android.bp @@ -0,0 +1,29 @@ +// +// Copyright (C) 2017-2020 The LineageOS Project +// +// SPDX-License-Identifier: Apache-2.0 +// + +android_app { + name: "XiaomiParts", + defaults: [ + "SettingsLibDefaults", + ], + + srcs: ["src/**/*.java"], + resource_dirs: ["res"], + certificate: "platform", + platform_apis: true, + system_ext_specific: true, + privileged: true, + + static_libs: [ + "androidx.core_core", + "androidx.preference_preference", + "org.lineageos.settings.resources", + ], + + optimize: { + proguard_flags_files: ["proguard.flags"], + }, +} diff --git a/parts/Android.mk b/parts/Android.mk deleted file mode 100644 index d57be95..0000000 --- a/parts/Android.mk +++ /dev/null @@ -1,35 +0,0 @@ -# -# Copyright (C) 2017-2020 The LineageOS Project -# -# SPDX-License-Identifier: Apache-2.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 := XiaomiParts -LOCAL_CERTIFICATE := platform -LOCAL_PRIVATE_PLATFORM_APIS := true -LOCAL_SYSTEM_EXT_MODULE := 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 frameworks/base/packages/SettingsLib/common.mk - -include $(BUILD_PACKAGE)