Aurimas Liutikas | 9d8dd89 | 2020-04-17 14:46:00 -0700 | [diff] [blame] | 1 | import androidx.build.AndroidXRootPlugin |
Aurimas Liutikas | aa460b0 | 2019-04-25 16:03:21 -0700 | [diff] [blame] | 2 | import androidx.build.SdkHelperKt |
| 3 | |
| 4 | buildscript { |
Alan Viverette | bb04f2e | 2020-04-09 17:13:37 -0400 | [diff] [blame] | 5 | // Note this is different from the root project's `build.gradle`. We call this method to |
| 6 | // establish the "canonical" root project directory, e.g. `frameworks/support`. |
| 7 | SdkHelperKt.setSupportRootFolder(project, project.projectDir.parentFile) |
| 8 | |
Aurimas Liutikas | aa460b0 | 2019-04-25 16:03:21 -0700 | [diff] [blame] | 9 | apply from: 'buildSrc/repos.gradle' |
| 10 | apply from: 'buildSrc/build_dependencies.gradle' |
| 11 | repos.addMavenRepositories(repositories) |
Alan Viverette | bb04f2e | 2020-04-09 17:13:37 -0400 | [diff] [blame] | 12 | |
| 13 | SdkHelperKt.writeSdkPathToLocalPropertiesFile(project) |
Aurimas Liutikas | aa460b0 | 2019-04-25 16:03:21 -0700 | [diff] [blame] | 14 | } |
| 15 | |
| 16 | allprojects { |
| 17 | repos.addMavenRepositories(repositories) |
| 18 | } |
| 19 | |
| 20 | apply from: "buildSrc/dependencies.gradle" |
| 21 | apply from: "buildSrc/out.gradle" |
George Mount | 68e8557 | 2019-05-06 16:33:16 -0700 | [diff] [blame] | 22 | init.chooseOutDir("/ui") |
Aurimas Liutikas | aa460b0 | 2019-04-25 16:03:21 -0700 | [diff] [blame] | 23 | |
Aurimas Liutikas | 9d8dd89 | 2020-04-17 14:46:00 -0700 | [diff] [blame] | 24 | apply plugin: AndroidXRootPlugin |