1// This is auto-generated. DO NOT EDIT.
2
3package {
4    // A default list here prevents the license LSC from adding its own list which would
5    // be unnecessary as every module in the sdk already has its own licenses property.
6    default_applicable_licenses: ["Android-Apache-2.0"],
7}
8
9apex_contributions_defaults {
10    name: "btservices-module-sdk.contributions",
11    contents: [
12        "prebuilt_bluetooth-compat-config",
13        "prebuilt_bluetoothapk-platform-compat-config",
14        "prebuilt_framework-bluetooth-compat-config",
15        "prebuilt_framework-bluetooth",
16    ],
17}
18
19prebuilt_bootclasspath_fragment {
20    name: "com.android.btservices-bootclasspath-fragment",
21    // Do not prefer prebuilt if the Soong config variable "source_build" in namespace "btservices_module" is true.
22    use_source_config_var: {
23        config_namespace: "btservices_module",
24        var_name: "source_build",
25    },
26    visibility: ["//packages/modules/Bluetooth:__subpackages__"],
27    apex_available: ["com.android.btservices"],
28    licenses: ["btservices-module-sdk_system_bt_license"],
29    contents: ["framework-bluetooth"],
30    fragments: [
31        {
32            apex: "com.android.art",
33            module: "art-bootclasspath-fragment",
34        },
35    ],
36    hidden_api: {
37        unsupported: ["hiddenapi/hiddenapi-unsupported.txt"],
38        max_target_r_low_priority: ["hiddenapi/hiddenapi-max-target-r-low-priority.txt"],
39        max_target_o_low_priority: ["hiddenapi/hiddenapi-max-target-o-low-priority.txt"],
40        annotation_flags: "hiddenapi/annotation-flags.csv",
41        metadata: "hiddenapi/metadata.csv",
42        index: "hiddenapi/index.csv",
43        signature_patterns: "hiddenapi/signature-patterns.csv",
44        filtered_stub_flags: "hiddenapi/filtered-stub-flags.csv",
45        filtered_flags: "hiddenapi/filtered-flags.csv",
46    },
47}
48
49prebuilt_platform_compat_config {
50    name: "bluetooth-compat-config",
51    // Do not prefer prebuilt if the Soong config variable "source_build" in namespace "btservices_module" is true.
52    use_source_config_var: {
53        config_namespace: "btservices_module",
54        var_name: "source_build",
55    },
56    visibility: ["//packages/modules/Bluetooth:__subpackages__"],
57    licenses: ["btservices-module-sdk_Android-Apache-2.0"],
58    metadata: "compat_configs/bluetooth-compat-config/bluetooth-compat-config_meta.xml",
59}
60
61prebuilt_platform_compat_config {
62    name: "bluetoothapk-platform-compat-config",
63    // Do not prefer prebuilt if the Soong config variable "source_build" in namespace "btservices_module" is true.
64    use_source_config_var: {
65        config_namespace: "btservices_module",
66        var_name: "source_build",
67    },
68    visibility: ["//packages/modules/Bluetooth:__subpackages__"],
69    licenses: ["btservices-module-sdk_packages_apps_Bluetooth_license"],
70    metadata: "compat_configs/bluetoothapk-platform-compat-config/bluetoothapk-platform-compat-config_meta.xml",
71}
72
73prebuilt_platform_compat_config {
74    name: "framework-bluetooth-compat-config",
75    // Do not prefer prebuilt if the Soong config variable "source_build" in namespace "btservices_module" is true.
76    use_source_config_var: {
77        config_namespace: "btservices_module",
78        var_name: "source_build",
79    },
80    visibility: ["//packages/modules/Bluetooth:__subpackages__"],
81    licenses: ["btservices-module-sdk_Android-Apache-2.0"],
82    metadata: "compat_configs/framework-bluetooth-compat-config/framework-bluetooth-compat-config_meta.xml",
83}
84
85java_sdk_library_import {
86    name: "framework-bluetooth",
87    // Do not prefer prebuilt if the Soong config variable "source_build" in namespace "btservices_module" is true.
88    use_source_config_var: {
89        config_namespace: "btservices_module",
90        var_name: "source_build",
91    },
92    visibility: ["//visibility:public"],
93    apex_available: ["com.android.btservices"],
94    licenses: ["btservices-module-sdk_Android-Apache-2.0"],
95    shared_library: false,
96    permitted_packages: [
97        "android.bluetooth",
98        "com.android.bluetooth.flags",
99        "com.android.bluetooth.jarjar",
100    ],
101    public: {
102        jars: ["sdk_library/public/framework-bluetooth-stubs.jar"],
103        stub_srcs: ["sdk_library/public/framework-bluetooth.srcjar"],
104        current_api: "sdk_library/public/framework-bluetooth.txt",
105        removed_api: "sdk_library/public/framework-bluetooth-removed.txt",
106        annotations: "sdk_library/public/framework-bluetooth_annotations.zip",
107        sdk_version: "module_current",
108    },
109    system: {
110        jars: ["sdk_library/system/framework-bluetooth-stubs.jar"],
111        stub_srcs: ["sdk_library/system/framework-bluetooth.srcjar"],
112        current_api: "sdk_library/system/framework-bluetooth.txt",
113        removed_api: "sdk_library/system/framework-bluetooth-removed.txt",
114        annotations: "sdk_library/system/framework-bluetooth_annotations.zip",
115        sdk_version: "module_current",
116    },
117    module_lib: {
118        jars: ["sdk_library/module-lib/framework-bluetooth-stubs.jar"],
119        stub_srcs: ["sdk_library/module-lib/framework-bluetooth.srcjar"],
120        current_api: "sdk_library/module-lib/framework-bluetooth.txt",
121        removed_api: "sdk_library/module-lib/framework-bluetooth-removed.txt",
122        annotations: "sdk_library/module-lib/framework-bluetooth_annotations.zip",
123        sdk_version: "module_current",
124    },
125}
126
127java_import {
128    name: "service-bluetooth",
129    // Do not prefer prebuilt if the Soong config variable "source_build" in namespace "btservices_module" is true.
130    use_source_config_var: {
131        config_namespace: "btservices_module",
132        var_name: "source_build",
133    },
134    visibility: [
135        "//packages/modules/Bluetooth/apex",
136        "//packages/modules/Bluetooth/service",
137    ],
138    apex_available: ["com.android.btservices"],
139    licenses: ["btservices-module-sdk_Android-Apache-2.0"],
140    jars: ["java_systemserver_libs/snapshot/jars/are/invalid/service-bluetooth.jar"],
141    min_sdk_version: "33",
142}
143
144license {
145    name: "btservices-module-sdk_system_bt_license",
146    visibility: ["//visibility:private"],
147    license_kinds: [
148        "SPDX-license-identifier-Apache-2.0",
149        "SPDX-license-identifier-BSD",
150        "SPDX-license-identifier-MIT",
151        "legacy_unencumbered",
152    ],
153    license_text: ["licenses/packages/modules/Bluetooth/NOTICE"],
154}
155
156license {
157    name: "btservices-module-sdk_Android-Apache-2.0",
158    visibility: ["//visibility:private"],
159    license_kinds: ["SPDX-license-identifier-Apache-2.0"],
160    license_text: ["licenses/build/soong/licenses/LICENSE"],
161}
162
163license {
164    name: "btservices-module-sdk_packages_apps_Bluetooth_license",
165    visibility: ["//visibility:private"],
166    license_kinds: [
167        "SPDX-license-identifier-Apache-2.0",
168        "SPDX-license-identifier-BSD",
169    ],
170}
171
172prebuilt_systemserverclasspath_fragment {
173    name: "com.android.btservices-systemserverclasspath-fragment",
174    // Do not prefer prebuilt if the Soong config variable "source_build" in namespace "btservices_module" is true.
175    use_source_config_var: {
176        config_namespace: "btservices_module",
177        var_name: "source_build",
178    },
179    visibility: ["//packages/modules/Bluetooth:__subpackages__"],
180    apex_available: ["com.android.btservices"],
181    licenses: ["btservices-module-sdk_system_bt_license"],
182    standalone_contents: ["service-bluetooth"],
183}
184