1package { 2 // See: http://go/android-license-faq 3 // A large-scale-change added 'default_applicable_licenses' to import 4 // all of the 'license_kinds' from "frameworks_base_license" 5 // to get the below license kinds: 6 // SPDX-license-identifier-Apache-2.0 7 default_applicable_licenses: ["frameworks_base_license"], 8} 9 10filegroup { 11 name: "framework-location-sources", 12 srcs: [ 13 "java/**/*.java", 14 "java/**/*.aidl", 15 ], 16} 17 18java_sdk_library { 19 name: "framework-location", 20 srcs: [ 21 ":framework-location-sources", 22 ], 23 defaults: ["framework-non-updatable-unbundled-defaults"], 24 permitted_packages: [ 25 "android.location", 26 "com.android.internal.location", 27 ], 28 libs: [ 29 "android.location.flags-aconfig-java", 30 "app-compat-annotations", 31 "unsupportedappusage", // for android.compat.annotation.UnsupportedAppUsage 32 ], 33 aidl: { 34 include_dirs: [ 35 "frameworks/base/location/java", 36 "frameworks/base/core/java", 37 ], 38 }, 39 lint: { 40 baseline_filename: "lint-baseline.xml", 41 warning_checks: [ 42 "FlaggedApi", 43 ], 44 }, 45} 46 47platform_compat_config { 48 name: "framework-location-compat-config", 49 src: ":framework-location", 50} 51