Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46b29ae5 authored by Michael Bestas's avatar Michael Bestas
Browse files

Eleven: Convert to Android.bp

Change-Id: I691eedc2d50b1b251a6f8de2b16a1fdb1ed0421d
parent 517fa697
Loading
Loading
Loading
Loading

Android.bp

0 → 100644
+63 −0
Original line number Diff line number Diff line
//
// Copyright (C) 2020 The LineageOS 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.
//

android_app {
    name: "Eleven",

    srcs: [
        "src/org/lineageos/eleven/IElevenService.aidl",
        "src/**/*.java",
        "src_aosp/**/*.java",
    ],

    resource_dirs: ["res"],

    static_libs: [
        "androidx.appcompat_appcompat",
        "androidx.cardview_cardview",
        "androidx-constraintlayout_constraintlayout",
        "androidx.core_core",
        "androidx.legacy_legacy-support-v4",
        "androidx.palette_palette",
        "androidx.preference_preference",
        "androidx.recyclerview_recyclerview",
    ],

    overrides: ["Music"],

    sdk_version: "current",

    privileged: true,

    product_specific: true,

    jni_libs: ["librsjni"],

    optimize: {
        proguard_flags_files: ["proguard.cfg"],
        enabled: false,
    },

    required: ["privapp_whitelist_org.lineageos.eleven"],
}

prebuilt_etc {
    name: "privapp_whitelist_org.lineageos.eleven",
    product_specific: true,
    src: "privapp_whitelist_org.lineageos.eleven.xml",
    sub_dir: "permissions",
    filename_from_src: true,
}

Android.mk

deleted100644 → 0
+0 −49
Original line number Diff line number Diff line
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := optional

LOCAL_SRC_FILES := src/org/lineageos/eleven/IElevenService.aidl
LOCAL_SRC_FILES += $(call all-java-files-under, src)
LOCAL_SRC_FILES += $(call all-java-files-under, src_aosp)

LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, res)

LOCAL_STATIC_ANDROID_LIBRARIES := \
    androidx.appcompat_appcompat \
    androidx.cardview_cardview \
    androidx-constraintlayout_constraintlayout \
    androidx.core_core \
    androidx.legacy_legacy-support-v4 \
    androidx.palette_palette \
    androidx.preference_preference \
    androidx.recyclerview_recyclerview

LOCAL_USE_AAPT2 := true

LOCAL_PACKAGE_NAME := Eleven
LOCAL_OVERRIDES_PACKAGES := Music

LOCAL_SDK_VERSION := current

LOCAL_PRIVILEGED_MODULE := true

LOCAL_PRODUCT_MODULE := true

LOCAL_JNI_SHARED_LIBRARIES := librsjni

LOCAL_PROGUARD_FLAGS := -include $(LOCAL_PATH)/proguard.cfg
LOCAL_PROGUARD_ENABLED := disabled

LOCAL_REQUIRED_MODULES := privapp_whitelist_org.lineageos.eleven.xml

include $(BUILD_PACKAGE)

include $(CLEAR_VARS)
LOCAL_MODULE := privapp_whitelist_org.lineageos.eleven.xml
LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT_ETC)/permissions
LOCAL_PRODUCT_MODULE := true
LOCAL_SRC_FILES := $(LOCAL_MODULE)
include $(BUILD_PREBUILT)