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 22apply plugin: 'com.android.library' 23apply plugin: 'com.google.protobuf' 24 25android { 26 compileSdkVersion 29 27 buildToolsVersion '29.0.2' 28 29 compileOptions() { 30 sourceCompatibility JavaVersion.VERSION_1_8 31 targetCompatibility JavaVersion.VERSION_1_8 32 } 33 34 lintOptions { 35 abortOnError false 36 } 37 38 defaultConfig { 39 minSdkVersion 23 40 resConfigs "en" 41 targetSdkVersion 28 42 versionCode 1 43 versionName "1.0" 44 } 45 46 buildTypes { 47 debug { 48 minifyEnabled false 49 } 50 release { 51 minifyEnabled true 52 } 53 } 54 55 sourceSets { 56 main { 57 res.srcDirs = ['res'] 58 java.srcDirs = ['src'] 59 manifest.srcFile 'AndroidManifest.xml' 60 proto { 61 srcDir 'proto' 62 } 63 } 64 } 65} 66 67dependencies { 68 implementation 'androidx.annotation:annotation:1.1.0' 69 implementation 'androidx.appcompat:appcompat:1.1.0' 70 implementation 'androidx.leanback:leanback:1.1.0-alpha02' 71 implementation 'androidx.recyclerview:recyclerview:1.1.0' 72 implementation 'androidx.recyclerview:recyclerview-selection:1.0.0' 73 implementation 'androidx.tvprovider:tvprovider:1.0.0' 74 75 implementation 'com.google.android.exoplayer:exoplayer:r1.5.16' 76 api 'com.google.android.exoplayer:exoplayer-core:2.10.1' 77 implementation 'com.google.android.exoplayer:exoplayer-ui:2.10.1' 78 annotationProcessor 'com.google.auto.factory:auto-factory:1.0-beta7' 79 implementation 'com.google.auto.factory:auto-factory:1.0-beta7' 80 implementation 'com.google.dagger:dagger:2.23' 81 implementation 'com.google.dagger:dagger-android:2.23' 82 annotationProcessor 'com.google.dagger:dagger-android-processor:2.23' 83 annotationProcessor 'com.google.dagger:dagger-compiler:2.23' 84 implementation 'com.google.guava:guava:28.1-jre' 85 implementation 'com.google.protobuf:protobuf-javalite:3.11.0' 86 87 implementation project(':common') 88} 89 90protobuf { 91 protoc { 92 artifact = 'com.google.protobuf:protoc:3.11.0' 93 } 94 generateProtoTasks { 95 all().each { task -> 96 task.builtins { 97 java { 98 option "lite" 99 } 100 } 101 } 102 } 103} 104