1/* 2 * Copyright (C) 2018 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 18/* 19 * Experimental gradle configuration. This file may not be up to date. 20 */ 21apply plugin: 'com.android.application' 22 23buildscript { 24 repositories { 25 google() 26 jcenter() 27 } 28 dependencies { 29 classpath 'com.android.tools.build:gradle:3.5.2' 30 classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.10' 31 } 32} 33 34android { 35 compileSdkVersion 29 36 buildToolsVersion '29.0.2' 37 38 compileOptions() { 39 sourceCompatibility JavaVersion.VERSION_1_8 40 targetCompatibility JavaVersion.VERSION_1_8 41 } 42 43 lintOptions { 44 abortOnError false 45 } 46 47 buildTypes { 48 debug { 49 minifyEnabled false 50 } 51 release { 52 minifyEnabled true 53 } 54 } 55 56 defaultConfig { 57 minSdkVersion 23 58 resConfigs "en" 59 targetSdkVersion 29 60 versionCode 1 61 versionName "1.0" 62 } 63 64 sourceSets { 65 main { 66 res.srcDirs = ['res', 'material_res', 'ratings/res'] 67 java.srcDirs = ['src', 'partner_support/src'] 68 manifest.srcFile 'AndroidManifest.xml' 69 } 70 } 71} 72 73allprojects { 74 repositories { 75 google() 76 jcenter() 77 } 78} 79 80dependencies { 81 implementation 'androidx.appcompat:appcompat:1.1.0' 82 implementation 'androidx.core:core:1.1.0' 83 implementation 'androidx.palette:palette:1.0.0' 84 implementation 'androidx.leanback:leanback:1.1.0-alpha02' 85 implementation 'androidx.recyclerview:recyclerview:1.1.0' 86 implementation 'androidx.recyclerview:recyclerview-selection:1.0.0' 87 implementation 'androidx.tvprovider:tvprovider:1.0.0' 88 89 annotationProcessor 'com.google.auto.factory:auto-factory:1.0-beta7' 90 implementation 'com.google.auto.factory:auto-factory:1.0-beta7' 91 annotationProcessor 'com.google.auto.value:auto-value:1.5.3' 92 implementation 'com.google.auto.value:auto-value:1.5.3' 93 implementation 'com.google.dagger:dagger:2.23' 94 implementation 'com.google.dagger:dagger-android:2.23' 95 annotationProcessor 'com.google.dagger:dagger-android-processor:2.23' 96 annotationProcessor 'com.google.dagger:dagger-compiler:2.23' 97 implementation 'com.google.guava:guava:28.1-jre' 98 implementation 'com.google.protobuf:protobuf-javalite:3.11.0' 99 100 implementation project(':common') 101} 102