blob: 3aceb05070dddfddb51d5ebc32d9ec11b4982d00 [file] [log] [blame]
nchalkod5266622018-08-30 10:33:03 -07001/*
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 Basantwani478c13b2019-08-20 11:49:06 +053021apply plugin: 'com.android.application'
nchalkod5266622018-08-30 10:33:03 -070022
23buildscript {
24 repositories {
nchalkod5266622018-08-30 10:33:03 -070025 google()
Umang Saini525b0c92019-06-06 17:31:19 -070026 jcenter()
nchalkod5266622018-08-30 10:33:03 -070027 }
28 dependencies {
Umang Sainide4628c2019-11-02 12:46:05 +053029 classpath 'com.android.tools.build:gradle:3.5.2'
Shraddha Basantwani478c13b2019-08-20 11:49:06 +053030 classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.10'
nchalkod5266622018-08-30 10:33:03 -070031 }
32}
Shraddha Basantwani478c13b2019-08-20 11:49:06 +053033
nchalkod5266622018-08-30 10:33:03 -070034android {
Umang Sainide4628c2019-11-02 12:46:05 +053035 compileSdkVersion 29
36 buildToolsVersion '29.0.2'
Shraddha Basantwani478c13b2019-08-20 11:49:06 +053037
38 compileOptions() {
39 sourceCompatibility JavaVersion.VERSION_1_8
40 targetCompatibility JavaVersion.VERSION_1_8
nchalkod5266622018-08-30 10:33:03 -070041 }
Shraddha Basantwani478c13b2019-08-20 11:49:06 +053042
Umang Sainide4628c2019-11-02 12:46:05 +053043 lintOptions {
44 abortOnError false
45 }
46
nchalkod5266622018-08-30 10:33:03 -070047 buildTypes {
48 debug {
49 minifyEnabled false
50 }
51 release {
52 minifyEnabled true
53 }
54 }
Shraddha Basantwani478c13b2019-08-20 11:49:06 +053055
56 defaultConfig {
57 minSdkVersion 23
58 resConfigs "en"
Umang Sainide4628c2019-11-02 12:46:05 +053059 targetSdkVersion 29
Shraddha Basantwani478c13b2019-08-20 11:49:06 +053060 versionCode 1
61 versionName "1.0"
nchalkod5266622018-08-30 10:33:03 -070062 }
Shraddha Basantwani478c13b2019-08-20 11:49:06 +053063
nchalkod5266622018-08-30 10:33:03 -070064 sourceSets {
65 main {
Shraddha Basantwanie1b7ac12020-02-18 18:03:06 +053066 res.srcDirs = ['res', 'material_res', 'ratings/res']
nchalkod5266622018-08-30 10:33:03 -070067 java.srcDirs = ['src', 'partner_support/src']
68 manifest.srcFile 'AndroidManifest.xml'
69 }
70 }
71}
72
Shraddha Basantwani478c13b2019-08-20 11:49:06 +053073allprojects {
74 repositories {
75 google()
76 jcenter()
77 }
nchalkod5266622018-08-30 10:33:03 -070078}
79
nchalkod5266622018-08-30 10:33:03 -070080dependencies {
Umang Sainide4628c2019-11-02 12:46:05 +053081 implementation 'androidx.appcompat:appcompat:1.1.0'
82 implementation 'androidx.core:core:1.1.0'
Shraddha Basantwani478c13b2019-08-20 11:49:06 +053083 implementation 'androidx.palette:palette:1.0.0'
84 implementation 'androidx.leanback:leanback:1.1.0-alpha02'
Umang Sainide4628c2019-11-02 12:46:05 +053085 implementation 'androidx.recyclerview:recyclerview:1.1.0'
Shraddha Basantwani478c13b2019-08-20 11:49:06 +053086 implementation 'androidx.recyclerview:recyclerview-selection:1.0.0'
87 implementation 'androidx.tvprovider:tvprovider:1.0.0'
Ridhim Rastogif4831212019-02-07 10:00:10 -080088
Umang Sainide4628c2019-11-02 12:46:05 +053089 annotationProcessor 'com.google.auto.factory:auto-factory:1.0-beta7'
90 implementation 'com.google.auto.factory:auto-factory:1.0-beta7'
Shraddha Basantwani478c13b2019-08-20 11:49:06 +053091 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 Sainide4628c2019-11-02 12:46:05 +053097 implementation 'com.google.guava:guava:28.1-jre'
98 implementation 'com.google.protobuf:protobuf-javalite:3.11.0'
Shraddha Basantwani478c13b2019-08-20 11:49:06 +053099
100 implementation project(':common')
101}