Roshan Pius | 354b10b | 2023-11-14 14:30:26 -0800 | [diff] [blame] | 1 | package { |
| 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 | |
| 10 | filegroup { |
| 11 | name: "framework-nfc-non-updatable-sources", |
| 12 | path: "java", |
Roshan Pius | b5ff8cf | 2023-11-13 14:29:09 -0800 | [diff] [blame] | 13 | srcs: [ |
| 14 | "java/android/nfc/NfcServiceManager.java", |
| 15 | "java/android/nfc/cardemulation/ApduServiceInfo.aidl", |
| 16 | "java/android/nfc/cardemulation/ApduServiceInfo.java", |
| 17 | "java/android/nfc/cardemulation/NfcFServiceInfo.aidl", |
| 18 | "java/android/nfc/cardemulation/NfcFServiceInfo.java", |
| 19 | "java/android/nfc/cardemulation/AidGroup.aidl", |
| 20 | "java/android/nfc/cardemulation/AidGroup.java", |
| 21 | ], |
Roshan Pius | 354b10b | 2023-11-14 14:30:26 -0800 | [diff] [blame] | 22 | } |
| 23 | |
| 24 | filegroup { |
| 25 | name: "framework-nfc-updatable-sources", |
| 26 | path: "java", |
| 27 | srcs: [ |
| 28 | "java/**/*.java", |
| 29 | "java/**/*.aidl", |
| 30 | ], |
| 31 | exclude_srcs: [ |
| 32 | ":framework-nfc-non-updatable-sources", |
| 33 | ], |
| 34 | } |
| 35 | |
| 36 | java_sdk_library { |
| 37 | name: "framework-nfc", |
| 38 | libs: [ |
| 39 | "unsupportedappusage", // for android.compat.annotation.UnsupportedAppUsage |
| 40 | ], |
Roshan Pius | b5ff8cf | 2023-11-13 14:29:09 -0800 | [diff] [blame] | 41 | static_libs: [ |
| 42 | "android.nfc.flags-aconfig-java", |
| 43 | "android.permission.flags-aconfig-java", |
| 44 | ], |
Roshan Pius | 354b10b | 2023-11-14 14:30:26 -0800 | [diff] [blame] | 45 | srcs: [ |
| 46 | ":framework-nfc-updatable-sources", |
Roshan Pius | b5ff8cf | 2023-11-13 14:29:09 -0800 | [diff] [blame] | 47 | ":framework-nfc-javastream-protos", |
Roshan Pius | 354b10b | 2023-11-14 14:30:26 -0800 | [diff] [blame] | 48 | ], |
Roshan Pius | 05836fa | 2023-12-07 10:54:05 -0800 | [diff] [blame] | 49 | defaults: ["framework-module-defaults"], |
| 50 | sdk_version: "module_current", |
Roshan Pius | b5ff8cf | 2023-11-13 14:29:09 -0800 | [diff] [blame] | 51 | min_sdk_version: "34", // should be 35 (making it 34 for compiling for `-next`) |
Roshan Pius | 05836fa | 2023-12-07 10:54:05 -0800 | [diff] [blame] | 52 | installable: true, |
| 53 | optimize: { |
| 54 | enabled: false, |
| 55 | }, |
| 56 | hostdex: true, // for hiddenapi check |
Roshan Pius | 354b10b | 2023-11-14 14:30:26 -0800 | [diff] [blame] | 57 | permitted_packages: [ |
| 58 | "android.nfc", |
| 59 | "com.android.nfc", |
| 60 | ], |
| 61 | hidden_api_packages: [ |
| 62 | "com.android.nfc", |
| 63 | ], |
Roshan Pius | b5ff8cf | 2023-11-13 14:29:09 -0800 | [diff] [blame] | 64 | impl_library_visibility: [ |
| 65 | "//frameworks/base:__subpackages__", |
| 66 | "//cts/tests/tests/nfc", |
| 67 | "//packages/apps/Nfc:__subpackages__", |
| 68 | ], |
| 69 | jarjar_rules: ":nfc-jarjar-rules", |
Roshan Pius | 0f7fa6a | 2023-12-19 13:55:55 -0800 | [diff] [blame] | 70 | lint: { |
| 71 | strict_updatability_linting: true, |
Cole Faust | 90c366f | 2024-01-16 16:16:43 -0800 | [diff] [blame^] | 72 | baseline_filename: "lint-baseline.xml", |
Roshan Pius | 0f7fa6a | 2023-12-19 13:55:55 -0800 | [diff] [blame] | 73 | }, |
Roshan Pius | 9667b04 | 2024-01-12 14:16:10 -0800 | [diff] [blame] | 74 | apex_available: [ |
| 75 | "//apex_available:platform", |
| 76 | "com.android.nfcservices", |
| 77 | ], |
Roshan Pius | b5ff8cf | 2023-11-13 14:29:09 -0800 | [diff] [blame] | 78 | } |
| 79 | |
| 80 | filegroup { |
| 81 | name: "nfc-jarjar-rules", |
| 82 | srcs: ["jarjar-rules.txt"], |
Roshan Pius | 354b10b | 2023-11-14 14:30:26 -0800 | [diff] [blame] | 83 | } |