blob: bbfe3c4a340424a12dca386f48eb8fae6ab529b4 [file] [log] [blame]
/*
* Copyright 2021 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.
*/
plugins {
id("AndroidXPlugin")
id("AndroidXComposePlugin")
id 'com.android.application'
id("org.jetbrains.kotlin.android")
}
android {
defaultConfig {
applicationId "androidx.wear.compose.integration.navigation"
minSdk 25
targetSdk 30
versionCode 1
versionName "1.0"
// Change the APK name to match the *testapp regex we use to pick up APKs for testing as
// part of CI.
archivesBaseName = "wear-compose-demos-testapp"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
buildFeatures {
viewBinding true
}
namespace "androidx.wear.compose.integration.navigation"
}
dependencies {
kotlinPlugin(project(":compose:compiler:compiler"))
implementation("androidx.activity:activity-compose:1.3.1")
implementation(project(":compose:ui:ui"))
implementation(project(':compose:integration-tests:demos:common'))
implementation(project(":compose:foundation:foundation"))
implementation(project(":compose:foundation:foundation-layout"))
implementation(project(":compose:runtime:runtime"))
implementation(project(':wear:compose:compose-material'))
implementation(project(':wear:compose:compose-foundation'))
implementation(project(":wear:compose:compose-foundation-samples"))
implementation(project(":wear:compose:compose-material-samples"))
implementation(project(':wear:compose:compose-navigation'))
// old version of common-java8 conflicts with newer version, because both have
// DefaultLifecycleEventObserver.
// Outside of androidx this is resolved via constraint added to lifecycle-common,
// but it doesn't work in androidx.
// See aosp/1804059
androidTestImplementation "androidx.lifecycle:lifecycle-common-java8:2.4.0"
}