[go: nahoru, domu]

blob: 111387ae7158f2e5f9669bd4b4547ff373de46f3 [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
Tiem Songee0da742024-01-03 14:08:46 -080017/**
18 * This file was created using the `create_project.py` script located in the
19 * `<AndroidX root>/development/project-creator` directory.
20 *
21 * Please use that script when creating a new project, rather than copying an existing project and
22 * modifying its settings.
23 */
Aurimas Liutikas9d8dd892020-04-17 14:46:00 -070024import androidx.build.AndroidXRootPlugin
Aurimas Liutikas55b44ec72018-07-27 16:29:35 -070025import androidx.build.SdkHelperKt
Alan Viverettecc5197e2016-06-13 12:45:07 -040026
Xavier Ducrohet86fb8ef2013-02-22 15:04:37 -080027buildscript {
Alan Viverettebb04f2e2020-04-09 17:13:37 -040028 SdkHelperKt.setSupportRootFolder(project, project.projectDir)
Alan Viverettebb04f2e2020-04-09 17:13:37 -040029 SdkHelperKt.writeSdkPathToLocalPropertiesFile(project)
Xavier Ducrohet86fb8ef2013-02-22 15:04:37 -080030}
Aurimas Liutikasf09d8582017-01-20 21:49:51 -080031
Aurimas Liutikas00c7dff2019-04-16 15:12:37 -070032apply from: "buildSrc/dependencies.gradle"
Alan Viverettecc5197e2016-06-13 12:45:07 -040033
Aurimas Liutikas9d8dd892020-04-17 14:46:00 -070034apply plugin: AndroidXRootPlugin
Jeff Gaston2f575882023-04-19 13:47:50 -040035
36// workaround for https://github.com/gradle/gradle/issues/24822
37if (project.hasProperty("androidx.update.signatures")) {
38 apply plugin: "java-library"
39 apply from: "buildSrc/shared-dependencies.gradle"
40}