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 */ 21 22buildscript { 23 repositories { 24 mavenCentral() 25 google() 26 } 27 dependencies { 28 classpath 'com.android.tools.build:gradle:3.1.4' 29 classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.6' 30 } 31} 32apply plugin: 'com.android.application' 33android { 34 compileSdkVersion 28 35 buildToolsVersion '28.0.3' 36 dexOptions { 37 preDexLibraries = false 38 additionalParameters=['--core-library'] 39 javaMaxHeapSize "6g" 40 } 41 android { 42 defaultConfig { 43 resConfigs "en" 44 } 45 } 46 defaultConfig { 47 minSdkVersion 23 48 targetSdkVersion 28 49 versionCode 1 50 versionName "1.0" 51 } 52 buildTypes { 53 debug { 54 minifyEnabled false 55 } 56 release { 57 minifyEnabled true 58 } 59 } 60 compileOptions() { 61 sourceCompatibility JavaVersion.VERSION_1_8 62 targetCompatibility JavaVersion.VERSION_1_8 63 } 64 sourceSets { 65 main { 66 res.srcDirs = ['res', 'material_res'] 67 java.srcDirs = ['src', 'partner_support/src'] 68 manifest.srcFile 'AndroidManifest.xml' 69 } 70 } 71} 72 73repositories { 74 mavenCentral() 75 jcenter() 76 google() 77} 78 79dependencies { 80 implementation 'androidx.appcompat:appcompat:1.0.2' 81 implementation 'androidx.palette:palette:1.0.0' 82 implementation 'androidx.leanback:leanback:1.0.0' 83 implementation "androidx.tvprovider:tvprovider:1.0.0" 84 implementation "androidx.recyclerview:recyclerview:1.0.0" 85 implementation "androidx.recyclerview:recyclerview-selection:1.0.0" 86 implementation "androidx.palette:palette:1.0.0" 87 88 implementation 'com.google.dagger:dagger:2.18' 89 implementation 'com.google.dagger:dagger-android:2.18' 90 annotationProcessor 'com.google.dagger:dagger-compiler:2.18' 91 annotationProcessor 'com.google.dagger:dagger-android-processor:2.18' 92 93 /*Not building with latest one (1.6.3)*/ 94 annotationProcessor 'com.google.auto.value:auto-value:1.5.4' 95 implementation 'com.google.auto.value:auto-value:1.5.4' 96 implementation 'javax.inject:javax.inject:1' 97 implementation 'com.google.guava:guava:26.0-android' 98 implementation project(':common') 99}