[go: nahoru, domu]

blob: 12f31bcb626ae60d8574e75875030391e81f4b9c [file] [log] [blame]
Yigit Boyar88c16ce2017-02-08 16:06:14 -08001/*
Kirill Grouchnikov578e5ba2019-12-17 11:47:24 -05002 * Copyright (C) 2019 The Android Open Source Project
Yigit Boyar88c16ce2017-02-08 16:06:14 -08003 *
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 */
Aurimas Liutikas526389b2018-02-27 14:01:24 -080016
Aurimas Liutikas9d8dd892020-04-17 14:46:00 -070017import androidx.build.AndroidXRootPlugin
Aurimas Liutikas55b44ec72018-07-27 16:29:35 -070018import androidx.build.SdkHelperKt
Daniel Santiago Rivera0c716ae2020-03-01 11:27:57 -080019import static androidx.build.dependencies.DependenciesKt.*
Alan Viverettecc5197e2016-06-13 12:45:07 -040020
Xavier Ducrohet86fb8ef2013-02-22 15:04:37 -080021buildscript {
Alan Viverettebb04f2e2020-04-09 17:13:37 -040022 SdkHelperKt.setSupportRootFolder(project, project.projectDir)
23
Jim Sproch9e38b4f2021-01-06 14:21:06 -080024 apply from: "buildSrc/repos.gradle"
Aurimas Liutikas9ab3b4c32017-04-19 09:33:27 -070025 repos.addMavenRepositories(repositories)
Alan Viverettebb04f2e2020-04-09 17:13:37 -040026
27 SdkHelperKt.writeSdkPathToLocalPropertiesFile(project)
Xavier Ducrohet86fb8ef2013-02-22 15:04:37 -080028}
Aurimas Liutikasf09d8582017-01-20 21:49:51 -080029
Jeff Gaston5afa0c72020-04-09 18:07:53 -040030def root = project
31repos.addMavenRepositories(root.repositories)
32subprojects { subproject ->
33 subproject.repositories.addAll(root.repositories)
Aurimas Liutikas00c7dff2019-04-16 15:12:37 -070034}
Alan Viverettecc5197e2016-06-13 12:45:07 -040035
Aurimas Liutikas00c7dff2019-04-16 15:12:37 -070036apply from: "buildSrc/dependencies.gradle"
37apply from: "buildSrc/out.gradle"
38init.chooseOutDir()
Alan Viverettecc5197e2016-06-13 12:45:07 -040039
Aurimas Liutikas9d8dd892020-04-17 14:46:00 -070040apply plugin: AndroidXRootPlugin