blob: cf82b166651d22b05a735026863fa4e3d682c582 [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.
*/
import androidx.build.AndroidXConfig
import androidx.build.ApkCopyHelperKt
plugins {
id("com.android.application")
id("AndroidXPlugin")
id("AndroidXComposePlugin")
id("org.jetbrains.kotlin.android")
}
android {
namespace = "androidx.xr.compose.integration.mediaplayerapp"
compileSdk = 35
defaultConfig {
minSdk = 34
}
buildTypes {
release {
minifyEnabled = true
shrinkResources = true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt')
}
}
}
dependencies {
implementation(project(":xr:compose:compose"))
implementation(project(":xr:assets"))
implementation("androidx.core:core-ktx:1.15.0")
implementation("androidx.activity:activity-compose:1.10.0")
implementation("androidx.media3:media3-exoplayer:1.5.0")
implementation("androidx.media3:media3-ui:1.5.0")
implementation("androidx.compose.ui:ui:1.7.0")
implementation("androidx.compose.ui:ui-tooling-preview:1.7.0")
implementation("androidx.compose.runtime:runtime:1.8.0")
compileOnly(files(new File(AndroidXConfig.getPrebuiltsRoot(project), "androidx/xr/extensions/com.android.extensions.xr.jar")))
}
// Making this APK available via Android Build so the QA team can
// access it in a convenient manner.
ApkCopyHelperKt.setupAppApkCopy(project, "release")