| /* |
| * Copyright (C) 2016 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 static androidx.build.dependencies.DependenciesKt.* |
| |
| plugins { |
| id("AndroidXPlugin") |
| id("com.android.application") |
| id("kotlin-android") |
| } |
| |
| project.ext.noDocs = true |
| |
| android { |
| buildTypes { |
| getByName("release") { |
| minifyEnabled = true |
| } |
| } |
| |
| defaultConfig.vectorDrawables.useSupportLibrary = true |
| } |
| |
| dependencies { |
| // Using -PuseMaxDepVersions does not use the right version of the annotation processor |
| // Remove this workaround after b/127495641 is fixed |
| if (project.hasProperty('useMaxDepVersions')) { |
| annotationProcessor(project(":room:room-compiler")) |
| implementation(project(":room:room-runtime")) |
| } else { |
| annotationProcessor(ARCH_ROOM_COMPILER) |
| implementation(ARCH_ROOM_RUNTIME) |
| } |
| |
| implementation(CONSTRAINT_LAYOUT) |
| implementation project(':work:work-runtime-ktx') |
| implementation(ARCH_CORE_RUNTIME) |
| implementation(ARCH_LIFECYCLE_EXTENSIONS) |
| implementation(ANDROIDX_RECYCLERVIEW) |
| implementation(SUPPORT_APPCOMPAT) |
| // SUPPORT_DESIGN has a @aar. So it needs { transitive = true } |
| implementation(SUPPORT_DESIGN) { transitive = true } |
| } |
| |
| tasks['check'].dependsOn(tasks['connectedCheck']) |
| |
| uploadArchives.enabled = false |