blob: 62f55334e115805e2206f972abae5d58aec86ea8 [file] [log] [blame]
/*
* 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.
*/
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("AndroidXPlugin")
id("androidx.privacysandboxplugin")
id("org.jetbrains.kotlin.android")
}
android {
compileSdk = 36
namespace = "androidx.privacysandbox.ui.integration.testsdkprovider"
buildTypes {
release {
minifyEnabled = false
}
}
privacySandbox {
enable = true
}
experimentalProperties["android.privacySandboxSdk.apiGenerator"] =
project.dependencies.create(project(":privacysandbox:tools:tools-apigenerator"))
experimentalProperties["android.privacySandboxSdk.apiGenerator.generatedRuntimeDependencies"] =
[libs.kotlinStdlib.get(),
libs.kotlinCoroutinesAndroid.get(),
libs.kotlinCoroutinesCore.get(),
project.dependencies.create(project(":privacysandbox:ui:ui-core")),
project.dependencies.create(project(":privacysandbox:ui:ui-client"))
]
}
dependencies {
api(libs.kotlinStdlib)
api("androidx.annotation:annotation:1.8.1")
implementation(project(":privacysandbox:sdkruntime:sdkruntime-provider"))
implementation(project(":privacysandbox:ui:integration-tests:sdkproviderutils"))
implementation(project(":privacysandbox:ui:ui-provider"))
implementation(project(":privacysandbox:ui:integration-tests:mediateesdkproviderwrapper"))
// Add library dependencies at head - to override the dependencies that will be added by
// privacysandboxplugin.
ksp(project(':privacysandbox:tools:tools-apicompiler'))
implementation(project(':privacysandbox:tools:tools'))
implementation(project(":privacysandbox:ui:ui-core"))
implementation(project(':privacysandbox:activity:activity-core'))
implementation(project(':privacysandbox:activity:activity-provider'))
}
// TODO(b/430983364): Fix when incremental doesn't break compileReleaseKotlin
tasks.withType(KotlinCompile).configureEach {
incremental = false
}