blob: 006779bbf79d86cbe5c56859280c1ec1b87051ab [file] [log] [blame]
/*
* Copyright (C) 2022 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.
*/
import androidx.build.LibraryType
import androidx.build.SdkHelperKt
import androidx.build.SupportConfig
plugins {
id("AndroidXPlugin")
id("kotlin")
}
dependencies {
api(libs.kotlinStdlib)
implementation(libs.kotlinStdlibJdk8)
implementation(libs.asm)
implementation(libs.asmCommons)
implementation project(path: ':privacysandbox:tools:tools')
implementation project(path: ':privacysandbox:tools:tools-core')
testImplementation(project(":internal-testutils-truth"))
testImplementation(project(":privacysandbox:tools:tools-testing"))
testImplementation(project(":room:room-compiler-processing-testing"))
testImplementation(libs.junit)
testImplementation(libs.truth)
// TODO(b/281638337): Remove below dependency once SdkActivityLauncher stubs are removed
// Include android jar for compilation of generated sources.
testImplementation(fileTree(
dir: "${SdkHelperKt.getSdkPath(project)}/platforms/$SupportConfig.COMPILE_SDK_VERSION/",
include: "android.jar"
))
}
androidx {
name = "androidx.privacysandbox.tools:tools-apipackager"
type = LibraryType.OTHER_CODE_PROCESSOR
inceptionYear = "2022"
description = "Packages API descriptions from SDKs compiled with Privacy Sandbox annotations."
}