1// 2// Copyright (C) 2016 The Android Open Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15// 16 17// Proto dependencies 18package { 19 default_applicable_licenses: ["Android-Apache-2.0"], 20} 21 22java_library { 23 name: "LocalMediaPlayer-proto", 24 srcs: ["proto/**/*.proto"], 25 proto: { 26 type: "nano", 27 local_include_dirs: ["proto"], 28 }, 29 product_variables: { 30 pdk: { 31 enabled: false, 32 }, 33 }, 34} 35 36// Actual Package 37 38android_app { 39 name: "LocalMediaPlayer", 40 srcs: ["src/**/*.java"], 41 resource_dirs: ["res"], 42 platform_apis: true, 43 certificate: "platform", 44 privileged: true, 45 min_sdk_version: "26", 46 target_sdk_version: "current", 47 static_libs: [ 48 "LocalMediaPlayer-proto", 49 "androidx.legacy_legacy-support-v4", 50 ], 51 optimize: { 52 enabled: false, 53 }, 54 dex_preopt: { 55 enabled: false, 56 }, 57 product_variables: { 58 pdk: { 59 enabled: false, 60 }, 61 }, 62} 63