blob: fc4788fb02e77da96fa61011762e143cf54f180b [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
Alan Viverettecc5197e2016-06-13 12:45:07 -040019
Xavier Ducrohet86fb8ef2013-02-22 15:04:37 -080020buildscript {
Alan Viverettebb04f2e2020-04-09 17:13:37 -040021 SdkHelperKt.setSupportRootFolder(project, project.projectDir)
Alan Viverettebb04f2e2020-04-09 17:13:37 -040022 SdkHelperKt.writeSdkPathToLocalPropertiesFile(project)
Xavier Ducrohet86fb8ef2013-02-22 15:04:37 -080023}
Aurimas Liutikasf09d8582017-01-20 21:49:51 -080024
Aurimas Liutikas00c7dff2019-04-16 15:12:37 -070025apply from: "buildSrc/dependencies.gradle"
Alan Viverettecc5197e2016-06-13 12:45:07 -040026
Aurimas Liutikas9d8dd892020-04-17 14:46:00 -070027apply plugin: AndroidXRootPlugin
Jeff Gaston2f575882023-04-19 13:47:50 -040028
29// workaround for https://github.com/gradle/gradle/issues/24822
30if (project.hasProperty("androidx.update.signatures")) {
31 apply plugin: "java-library"
32 apply from: "buildSrc/shared-dependencies.gradle"
33}