1// Copyright (C) 2021 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17 default_visibility: [ 18 ":__subpackages__", 19 "//art/libartservice:__subpackages__", 20 "//packages/modules:__subpackages__", 21 ], 22} 23 24// Needed because otherwise java_defaults would resolve it in module directory. 25filegroup { 26 name: "framework-system-server-module-optimize-proguard-rules", 27 srcs: [ 28 "system-api.pro", 29 "system-server.pro", 30 ], 31} 32 33java_defaults { 34 name: "framework-system-server-module-optimize-defaults", 35 optimize: { 36 enabled: true, 37 shrink: true, 38 optimize: false, 39 obfuscate: false, 40 proguard_compatibility: false, 41 ignore_warnings: false, 42 proguard_flags_files: [":framework-system-server-module-optimize-proguard-rules"], 43 }, 44} 45 46// Needed because otherwise java_defaults would resolve it in module directory. 47filegroup { 48 name: "standalone-system-server-module-optimize-proguard-rules", 49 srcs: [ 50 "system-server.pro", 51 ], 52} 53 54java_defaults { 55 name: "standalone-system-server-module-optimize-defaults", 56 optimize: { 57 enabled: true, 58 shrink: true, 59 optimize: false, 60 obfuscate: false, 61 proguard_compatibility: false, 62 ignore_warnings: false, 63 proguard_flags_files: [":standalone-system-server-module-optimize-proguard-rules"], 64 }, 65} 66