nchalko | d526662 | 2018-08-30 10:33:03 -0700 | [diff] [blame] | 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 | */ |
Shraddha Basantwani | 478c13b | 2019-08-20 11:49:06 +0530 | [diff] [blame] | 21 | apply plugin: 'com.android.application' |
nchalko | d526662 | 2018-08-30 10:33:03 -0700 | [diff] [blame] | 22 | |
| 23 | buildscript { |
| 24 | repositories { |
nchalko | d526662 | 2018-08-30 10:33:03 -0700 | [diff] [blame] | 25 | google() |
Umang Saini | 525b0c9 | 2019-06-06 17:31:19 -0700 | [diff] [blame] | 26 | jcenter() |
nchalko | d526662 | 2018-08-30 10:33:03 -0700 | [diff] [blame] | 27 | } |
| 28 | dependencies { |
Umang Saini | de4628c | 2019-11-02 12:46:05 +0530 | [diff] [blame] | 29 | classpath 'com.android.tools.build:gradle:3.5.2' |
Shraddha Basantwani | 478c13b | 2019-08-20 11:49:06 +0530 | [diff] [blame] | 30 | classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.10' |
nchalko | d526662 | 2018-08-30 10:33:03 -0700 | [diff] [blame] | 31 | } |
| 32 | } |
Shraddha Basantwani | 478c13b | 2019-08-20 11:49:06 +0530 | [diff] [blame] | 33 | |
nchalko | d526662 | 2018-08-30 10:33:03 -0700 | [diff] [blame] | 34 | android { |
Umang Saini | de4628c | 2019-11-02 12:46:05 +0530 | [diff] [blame] | 35 | compileSdkVersion 29 |
| 36 | buildToolsVersion '29.0.2' |
Shraddha Basantwani | 478c13b | 2019-08-20 11:49:06 +0530 | [diff] [blame] | 37 | |
| 38 | compileOptions() { |
| 39 | sourceCompatibility JavaVersion.VERSION_1_8 |
| 40 | targetCompatibility JavaVersion.VERSION_1_8 |
nchalko | d526662 | 2018-08-30 10:33:03 -0700 | [diff] [blame] | 41 | } |
Shraddha Basantwani | 478c13b | 2019-08-20 11:49:06 +0530 | [diff] [blame] | 42 | |
Umang Saini | de4628c | 2019-11-02 12:46:05 +0530 | [diff] [blame] | 43 | lintOptions { |
| 44 | abortOnError false |
| 45 | } |
| 46 | |
nchalko | d526662 | 2018-08-30 10:33:03 -0700 | [diff] [blame] | 47 | buildTypes { |
| 48 | debug { |
| 49 | minifyEnabled false |
| 50 | } |
| 51 | release { |
| 52 | minifyEnabled true |
| 53 | } |
| 54 | } |
Shraddha Basantwani | 478c13b | 2019-08-20 11:49:06 +0530 | [diff] [blame] | 55 | |
| 56 | defaultConfig { |
| 57 | minSdkVersion 23 |
| 58 | resConfigs "en" |
Umang Saini | de4628c | 2019-11-02 12:46:05 +0530 | [diff] [blame] | 59 | targetSdkVersion 29 |
Shraddha Basantwani | 478c13b | 2019-08-20 11:49:06 +0530 | [diff] [blame] | 60 | versionCode 1 |
| 61 | versionName "1.0" |
nchalko | d526662 | 2018-08-30 10:33:03 -0700 | [diff] [blame] | 62 | } |
Shraddha Basantwani | 478c13b | 2019-08-20 11:49:06 +0530 | [diff] [blame] | 63 | |
nchalko | d526662 | 2018-08-30 10:33:03 -0700 | [diff] [blame] | 64 | sourceSets { |
| 65 | main { |
Shraddha Basantwani | e1b7ac1 | 2020-02-18 18:03:06 +0530 | [diff] [blame] | 66 | res.srcDirs = ['res', 'material_res', 'ratings/res'] |
nchalko | d526662 | 2018-08-30 10:33:03 -0700 | [diff] [blame] | 67 | java.srcDirs = ['src', 'partner_support/src'] |
| 68 | manifest.srcFile 'AndroidManifest.xml' |
| 69 | } |
| 70 | } |
| 71 | } |
| 72 | |
Shraddha Basantwani | 478c13b | 2019-08-20 11:49:06 +0530 | [diff] [blame] | 73 | allprojects { |
| 74 | repositories { |
| 75 | google() |
| 76 | jcenter() |
| 77 | } |
nchalko | d526662 | 2018-08-30 10:33:03 -0700 | [diff] [blame] | 78 | } |
| 79 | |
nchalko | d526662 | 2018-08-30 10:33:03 -0700 | [diff] [blame] | 80 | dependencies { |
Umang Saini | de4628c | 2019-11-02 12:46:05 +0530 | [diff] [blame] | 81 | implementation 'androidx.appcompat:appcompat:1.1.0' |
| 82 | implementation 'androidx.core:core:1.1.0' |
Shraddha Basantwani | 478c13b | 2019-08-20 11:49:06 +0530 | [diff] [blame] | 83 | implementation 'androidx.palette:palette:1.0.0' |
| 84 | implementation 'androidx.leanback:leanback:1.1.0-alpha02' |
Umang Saini | de4628c | 2019-11-02 12:46:05 +0530 | [diff] [blame] | 85 | implementation 'androidx.recyclerview:recyclerview:1.1.0' |
Shraddha Basantwani | 478c13b | 2019-08-20 11:49:06 +0530 | [diff] [blame] | 86 | implementation 'androidx.recyclerview:recyclerview-selection:1.0.0' |
| 87 | implementation 'androidx.tvprovider:tvprovider:1.0.0' |
Ridhim Rastogi | f483121 | 2019-02-07 10:00:10 -0800 | [diff] [blame] | 88 | |
Umang Saini | de4628c | 2019-11-02 12:46:05 +0530 | [diff] [blame] | 89 | annotationProcessor 'com.google.auto.factory:auto-factory:1.0-beta7' |
| 90 | implementation 'com.google.auto.factory:auto-factory:1.0-beta7' |
Shraddha Basantwani | 478c13b | 2019-08-20 11:49:06 +0530 | [diff] [blame] | 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' |
Umang Saini | de4628c | 2019-11-02 12:46:05 +0530 | [diff] [blame] | 97 | implementation 'com.google.guava:guava:28.1-jre' |
| 98 | implementation 'com.google.protobuf:protobuf-javalite:3.11.0' |
Shraddha Basantwani | 478c13b | 2019-08-20 11:49:06 +0530 | [diff] [blame] | 99 | |
| 100 | implementation project(':common') |
| 101 | } |