1// Copyright (C) 2023 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 default_team: "trendy_team_rubidium_sdk_runtime", 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20java_test_host { 21 name: "SdkSandboxSmallModuleHostTest", 22 srcs: [ 23 "src/**/*.java", 24 ], 25 test_config: "SdkSandboxSmallModuleHostTest.xml", 26 libs: [ 27 "tradefed", 28 ], 29 static_libs: [ 30 "modules-utils-build-testing", 31 "cts-install-lib-host", 32 "SdkSandboxHostTestUtils", 33 ], 34 data: [ 35 ":EmptySdkProviderApp", 36 ":SdkSandboxSmallModuleTestApp", 37 ], 38 test_suites: ["general-tests"], 39} 40 41android_test_helper_app { 42 name: "SdkSandboxSmallModuleTestApp", 43 srcs: [ 44 "app/src/**/*.java", 45 ], 46 manifest: "app/SdkSandboxSmallModuleTestAppManifest.xml", 47 static_libs: [ 48 "androidx.core_core", 49 "androidx.test.ext.junit", 50 "cts-install-lib", 51 "SdkSandboxTestUtils", 52 ], 53 libs: [ 54 "framework-adservices.impl", 55 ], 56 java_resources: [ 57 ":com.android.adservices.fullmodule", 58 ":com.android.adservices.smallmodule", 59 ], 60 min_sdk_version: "33", 61 target_sdk_version: "33", 62 test_suites: ["general-tests"], 63} 64 65override_apex { 66 name: "com.android.adservices.smallmodule", 67 base: "com.android.adservices", 68 apps: ["SdkSandbox"], 69 package_name: "com.android.adservices", 70 certificate: ":com.android.adservices.certificate", 71 key: "com.android.adservices.key", 72 compressible: false, 73} 74 75override_apex { 76 name: "com.android.adservices.fullmodule", 77 base: "com.android.adservices", 78 apps: [ 79 "AdServicesApk", 80 "SdkSandbox", 81 ], 82 package_name: "com.android.adservices", 83 certificate: ":com.android.adservices.certificate", 84 key: "com.android.adservices.key", 85 compressible: false, 86} 87