Alexander Dorokhine | 146e4a6 | 2016-11-09 18:34:39 -0800 | [diff] [blame] | 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. |
Ang Li | 4d02684 | 2017-12-15 21:12:33 -0800 | [diff] [blame] | 2 | // For android studio 2.3 and plugin 2.3.3 |
Alexander Dorokhine | 146e4a6 | 2016-11-09 18:34:39 -0800 | [diff] [blame] | 3 | |
| 4 | buildscript { |
| 5 | repositories { |
Xianyuan Jia | b172910 | 2021-10-06 11:59:07 -0700 | [diff] [blame] | 6 | mavenCentral() |
Ang Li | 4d02684 | 2017-12-15 21:12:33 -0800 | [diff] [blame] | 7 | google() |
Alexander Dorokhine | 146e4a6 | 2016-11-09 18:34:39 -0800 | [diff] [blame] | 8 | } |
| 9 | dependencies { |
Xianyuan Jia | b172910 | 2021-10-06 11:59:07 -0700 | [diff] [blame] | 10 | classpath 'com.android.tools.build:gradle:7.0.2' |
Alexander Dorokhine | 146e4a6 | 2016-11-09 18:34:39 -0800 | [diff] [blame] | 11 | |
| 12 | // NOTE: Do not place your application dependencies here; they belong |
| 13 | // in the individual module build.gradle files |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | allprojects { |
| 18 | repositories { |
Xianyuan Jia | b172910 | 2021-10-06 11:59:07 -0700 | [diff] [blame] | 19 | mavenCentral() |
Ang Li | 4d02684 | 2017-12-15 21:12:33 -0800 | [diff] [blame] | 20 | google() |
Alexander Dorokhine | 146e4a6 | 2016-11-09 18:34:39 -0800 | [diff] [blame] | 21 | } |
David Kao | 2d15a98 | 2017-02-22 13:25:16 -0800 | [diff] [blame] | 22 | gradle.projectsEvaluated { |
| 23 | tasks.withType(JavaCompile) { |
| 24 | options.compilerArgs << "-Xlint:all" |
| 25 | } |
| 26 | } |
Alexander Dorokhine | 146e4a6 | 2016-11-09 18:34:39 -0800 | [diff] [blame] | 27 | } |
| 28 | |