blob: 313f888a567c998fe658a16e3307269aa1a2c0a8 [file] [log] [blame]
/*
* Copyright (C) 2024 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.
*/
/**
* This file was created using the `create_project.py` script located in the
* `<AndroidX root>/development/project-creator` directory.
*
* Please use that script when creating a new project, rather than copying an existing project and
* modifying its settings.
*/
import androidx.build.LibraryType
import androidx.build.KotlinTarget
plugins {
id("AndroidXPlugin")
id("com.android.library")
id("org.jetbrains.kotlin.android")
id("AndroidXComposePlugin")
}
dependencies {
api(libs.kotlinStdlib)
api(project(":xr:compose:compose"))
api(project(":xr:runtime:runtime"))
api(project(":xr:scenecore:scenecore"))
api(project(":xr:scenecore:scenecore-testing"))
implementation(libs.mockitoKotlin)
implementation(libs.robolectric)
implementation(libs.testExtTruth)
implementation("androidx.annotation:annotation:1.8.1")
implementation("androidx.compose.runtime:runtime:1.2.1")
implementation("androidx.compose.ui:ui:1.2.1")
implementation("androidx.compose.ui:ui-unit:1.2.1")
implementation("androidx.compose.ui:ui-util:1.2.1")
implementation("androidx.compose.ui:ui-test-junit4:1.2.1")
implementation("com.google.ar:impress:0.0.1")
}
android {
defaultConfig {
// TODO: This should be lower, possibly 21.
// Address API calls that require higher versions.
minSdkVersion 30
}
namespace = "androidx.xr.compose.testing"
}
androidx {
name = "XR Compose Testing"
type = LibraryType.PUBLISHED_KOTLIN_ONLY_TEST_LIBRARY
inceptionYear = "2024"
description = "Libraries to aid in unit testing Compose for XR clients."
kotlinTarget = KotlinTarget.KOTLIN_1_9
// TODO: b/326456246
optOutJSpecify = true
}