Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 1 | /* |
Kirill Grouchnikov | 578e5ba | 2019-12-17 11:47:24 -0500 | [diff] [blame] | 2 | * Copyright (C) 2019 The Android Open Source Project |
Yigit Boyar | 88c16ce | 2017-02-08 16:06:14 -0800 | [diff] [blame] | 3 | * |
| 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 Liutikas | 526389b | 2018-02-27 14:01:24 -0800 | [diff] [blame] | 16 | |
Tiem Song | ee0da74 | 2024-01-03 14:08:46 -0800 | [diff] [blame] | 17 | /** |
| 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 Liutikas | 9d8dd89 | 2020-04-17 14:46:00 -0700 | [diff] [blame] | 24 | import androidx.build.AndroidXRootPlugin |
Aurimas Liutikas | 55b44ec7 | 2018-07-27 16:29:35 -0700 | [diff] [blame] | 25 | import androidx.build.SdkHelperKt |
Alan Viverette | cc5197e | 2016-06-13 12:45:07 -0400 | [diff] [blame] | 26 | |
Xavier Ducrohet | 86fb8ef | 2013-02-22 15:04:37 -0800 | [diff] [blame] | 27 | buildscript { |
Alan Viverette | bb04f2e | 2020-04-09 17:13:37 -0400 | [diff] [blame] | 28 | SdkHelperKt.setSupportRootFolder(project, project.projectDir) |
Alan Viverette | bb04f2e | 2020-04-09 17:13:37 -0400 | [diff] [blame] | 29 | SdkHelperKt.writeSdkPathToLocalPropertiesFile(project) |
Xavier Ducrohet | 86fb8ef | 2013-02-22 15:04:37 -0800 | [diff] [blame] | 30 | } |
Aurimas Liutikas | f09d858 | 2017-01-20 21:49:51 -0800 | [diff] [blame] | 31 | |
Aurimas Liutikas | 00c7dff | 2019-04-16 15:12:37 -0700 | [diff] [blame] | 32 | apply from: "buildSrc/dependencies.gradle" |
Alan Viverette | cc5197e | 2016-06-13 12:45:07 -0400 | [diff] [blame] | 33 | |
Aurimas Liutikas | 9d8dd89 | 2020-04-17 14:46:00 -0700 | [diff] [blame] | 34 | apply plugin: AndroidXRootPlugin |
Jeff Gaston | 2f57588 | 2023-04-19 13:47:50 -0400 | [diff] [blame] | 35 | |
| 36 | // workaround for https://github.com/gradle/gradle/issues/24822 |
| 37 | if (project.hasProperty("androidx.update.signatures")) { |
| 38 | apply plugin: "java-library" |
| 39 | apply from: "buildSrc/shared-dependencies.gradle" |
| 40 | } |