// Copyright (C) 2023 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package { default_applicable_licenses: ["Android-Apache-2.0"], } android_library { name: "adservices-cobalt", sdk_version: "module_current", min_sdk_version: "30", srcs: [ "java/**/*.java", ], exclude_srcs: [ "java/**/testing/*.java", ], plugins: [ "androidx.room_room-compiler-plugin", "auto_value_plugin", "auto_annotation_plugin", ], javacflags: [ "-Aroom.schemaLocation=packages/modules/AdServices/adservices/libraries/cobalt/schemas", ], libs: [ "androidx.room_room-runtime", "auto_value_annotations", "framework-annotations-lib", ], static_libs: [ "adservices-cobalt-proto-lite", "androidx.annotation_annotation", "androidx.sqlite_sqlite", "guava", "libprotobuf-java-lite", ], apex_available: [ "com.android.adservices", "com.android.extservices", ], lint: { extra_check_modules: ["AdServicesProdLintChecker"], disabled_checks: ["RoomDatabaseChange"], // TODO(b/329688645): Add Room DB migration guardrail tests. }, } android_library { name: "adservices-cobalt-testing", sdk_version: "module_current", min_sdk_version: "30", srcs: [ "java/**/testing/*.java", ], libs: [ "framework-annotations-lib", ], static_libs: [ "adservices-cobalt", "adservices-cobalt-proto-lite", "androidx.annotation_annotation", "guava", "libprotobuf-java-lite", ], apex_available: [ "com.android.adservices", "com.android.extservices", ], lint: { extra_check_modules: ["AdServicesProdLintChecker"], disabled_checks: ["RoomDatabaseChange"], // TODO(b/329688645): Add Room DB migration guardrail tests. }, } // Schemas needs to be bundled via this android_library since Cobalt unit tests for schema // migration will need this. android_library { name: "adservices-cobalt-schema", sdk_version: "module_current", min_sdk_version: "30", asset_dirs: [ "schemas", ], manifest: "AndroidManifest.xml", }