| /* |
| * Copyright 2025 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.SoftwareType |
| |
| plugins { |
| id("AndroidXPlugin") |
| id("com.android.library") |
| id("AndroidXComposePlugin") |
| } |
| |
| androidx { |
| name = "Remote Compose Player Compose" |
| type = SoftwareType.PUBLISHED_LIBRARY_ONLY_USED_BY_KOTLIN_CONSUMERS |
| inceptionYear = "2025" |
| description = "Compose player for RemoteCompose documents" |
| addGoldenImageAssets() |
| } |
| |
| android { |
| namespace = "androidx.compose.remote.player.compose" |
| compileSdk { version = release(35) } |
| defaultConfig { |
| minSdk { version = release(29) } |
| } |
| testOptions { |
| unitTests { |
| includeAndroidResources = true |
| } |
| } |
| sourceSets { |
| test { |
| kotlin.srcDirs += [file("src/sharedTest/java")] |
| } |
| androidTest { |
| kotlin.srcDirs += [file("src/sharedTest/java")] |
| } |
| } |
| } |
| |
| dependencies { |
| implementation(project(":compose:remote:remote-core")) |
| implementation(project(":compose:remote:remote-player-core")) |
| implementation(project(":compose:remote:remote-player-view")) |
| implementation(project(":compose:remote:remote-creation-compose")) |
| implementation("androidx.compose.material3:material3:1.3.1") |
| implementation("androidx.compose.ui:ui-text-google-fonts:1.8.3") |
| implementation(libs.androidx.core) |
| implementation("androidx.appcompat:appcompat:1.7.0") |
| implementation("androidx.collection:collection:1.5.0") |
| implementation("androidx.compose.animation:animation-core:1.8.3") |
| implementation("androidx.compose.foundation:foundation:1.8.3") |
| implementation("androidx.compose.foundation:foundation-layout:1.8.3") |
| implementation("androidx.compose.ui:ui:1.8.3") |
| implementation("androidx.compose.ui:ui-util:1.8.3") |
| implementation("androidx.tracing:tracing-ktx:1.3.0") |
| implementation("androidx.activity:activity-compose:1.9.0") |
| testImplementation(project(":compose:ui:ui-test")) |
| testImplementation(project(":compose:ui:ui-test-junit4")) |
| testImplementation(project(":compose:remote:remote-testing")) |
| testImplementation(project(":compose:remote:remote-creation")) |
| testImplementation(project(":compose:remote:remote-creation-compose")) |
| testImplementation(libs.robolectric) |
| testImplementation(libs.testCore) |
| testImplementation(libs.junit) |
| testImplementation(libs.truth) |
| testImplementation(libs.kotlinTest) |
| debugImplementation(project(":compose:ui:ui-test-manifest")) |
| androidTestImplementation(project(":compose:remote:remote-testing")) |
| androidTestImplementation(project(":compose:remote:remote-creation")) |
| androidTestImplementation(project(":compose:remote:remote-creation-compose")) |
| androidTestImplementation(project(":compose:remote:remote-player-compose-testutils")) |
| androidTestImplementation(project(":compose:remote:remote-core-testutils")) |
| androidTestImplementation(project(":compose:remote:remote-tooling-preview")) |
| androidTestImplementation(project(":compose:ui:ui-test")) |
| androidTestImplementation(project(":compose:ui:ui-test-junit4")) |
| androidTestImplementation(project(":compose:animation:animation")) |
| androidTestImplementation(project(":compose:test-utils")) |
| androidTestImplementation(project(":test:screenshot:screenshot")) |
| androidTestImplementation(libs.testExtJunit) |
| androidTestImplementation(libs.testRules) |
| androidTestImplementation(libs.testRunner) |
| androidTestImplementation(libs.espressoCore) |
| androidTestImplementation(libs.junit) |
| androidTestImplementation(libs.kotlinTest) |
| androidTestImplementation(libs.truth) |
| androidTestImplementation(libs.testParameterInjector) |
| } |