| package { |
| // 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-non-updatable-sources", |
| path: "java", |
| srcs: [ |
| "java/android/nfc/NfcServiceManager.java", |
| "java/android/nfc/cardemulation/ApduServiceInfo.aidl", |
| "java/android/nfc/cardemulation/ApduServiceInfo.java", |
| "java/android/nfc/cardemulation/NfcFServiceInfo.aidl", |
| "java/android/nfc/cardemulation/NfcFServiceInfo.java", |
| "java/android/nfc/cardemulation/AidGroup.aidl", |
| "java/android/nfc/cardemulation/AidGroup.java", |
| ], |
| } |
| |
| filegroup { |
| name: "framework-nfc-updatable-sources", |
| path: "java", |
| srcs: [ |
| "java/**/*.java", |
| "java/**/*.aidl", |
| ], |
| exclude_srcs: [ |
| ":framework-nfc-non-updatable-sources", |
| ], |
| } |
| |
| java_sdk_library { |
| name: "framework-nfc", |
| libs: [ |
| "unsupportedappusage", // for android.compat.annotation.UnsupportedAppUsage |
| ], |
| 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: "34", // should be 35 (making it 34 for compiling for `-next`) |
| installable: true, |
| optimize: { |
| enabled: false, |
| }, |
| hostdex: true, // for hiddenapi check |
| permitted_packages: [ |
| "android.nfc", |
| "com.android.nfc", |
| ], |
| hidden_api_packages: [ |
| "com.android.nfc", |
| ], |
| impl_library_visibility: [ |
| "//frameworks/base:__subpackages__", |
| "//cts/tests/tests/nfc", |
| "//packages/apps/Nfc:__subpackages__", |
| ], |
| jarjar_rules: ":nfc-jarjar-rules", |
| lint: { |
| strict_updatability_linting: true, |
| baseline_filename: "lint-baseline.xml", |
| }, |
| apex_available: [ |
| "//apex_available:platform", |
| "com.android.nfcservices", |
| ], |
| } |
| |
| filegroup { |
| name: "nfc-jarjar-rules", |
| srcs: ["jarjar-rules.txt"], |
| } |