| package { |
| default_team: "trendy_team_fwk_nfc", |
| // See: http://go/android-license-faq |
| // A large-scale-change added 'default_applicable_licenses' to import |
| // all of the 'license_kinds' from "frameworks_base_license" |
| // to get the below license kinds: |
| // SPDX-license-identifier-Apache-2.0 |
| default_applicable_licenses: ["frameworks_base_license"], |
| } |
| |
| filegroup { |
| name: "framework-nfc-updatable-sources", |
| path: "java", |
| srcs: [ |
| "java/**/*.java", |
| "java/**/*.aidl", |
| ], |
| visibility: [ |
| "//frameworks/base:__subpackages__", |
| "//packages/apps/Nfc:__subpackages__", |
| "//packages/modules/Nfc:__subpackages__", |
| ], |
| } |
| |
| java_sdk_library { |
| name: "framework-nfc", |
| libs: [ |
| "androidx.annotation_annotation", |
| "unsupportedappusage", // for android.compat.annotation.UnsupportedAppUsage |
| "framework-permission-s.stubs.module_lib", |
| "framework-permission.stubs.module_lib", |
| ], |
| stub_only_libs: [ |
| // Needed for javadoc references. |
| "framework-permission-s.stubs.module_lib", |
| ], |
| static_libs: [ |
| "android.nfc.flags-aconfig-java", |
| "android.permission.flags-aconfig-java", |
| ], |
| srcs: [ |
| ":framework-nfc-updatable-sources", |
| ":framework-nfc-javastream-protos", |
| ], |
| defaults: ["framework-module-defaults"], |
| sdk_version: "module_current", |
| min_sdk_version: "35", // Make it 36 once available. |
| installable: true, |
| optimize: { |
| enabled: false, |
| }, |
| hostdex: true, // for hiddenapi check |
| permitted_packages: [ |
| "android.nfc", |
| "com.android.nfc", |
| ], |
| impl_library_visibility: [ |
| "//frameworks/base:__subpackages__", |
| "//cts:__subpackages__", |
| "//packages/apps/Nfc:__subpackages__", |
| "//packages/modules/Nfc:__subpackages__", |
| ], |
| jarjar_rules: ":nfc-jarjar-rules", |
| lint: { |
| baseline_filename: "lint-baseline.xml", |
| }, |
| apex_available: [ |
| "//apex_available:platform", |
| "com.android.nfcservices", |
| ], |
| aconfig_declarations: [ |
| "android.nfc.flags-aconfig", |
| ], |
| } |
| |
| filegroup { |
| name: "nfc-jarjar-rules", |
| srcs: ["jarjar-rules.txt"], |
| } |