1/*
2 * Copyright (C) 2017 The Android Open Source Project
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 */
16
17// This file enables using Support Library in a Composite Build. More information about Composite
18// Builds can be found at https://docs.gradle.org/current/userguide/composite_builds.html .
19// This file is a workaround for https://github.com/gradle/gradle/issues/1909 .
20
21// Projects that want to include the build of Support Library should apply this file to their
22// settings.gradle . For example, if Support Library is at the file path ~/support-library, then
23// to include Support Library in your build, add this line to the bottom of your settings.gradle:
24//
25//   apply(from:'~/support-library/frameworks/support/include-support-library.gradle')
26
27String buildScriptDir = buildscript.sourceFile.parent
28
29// include any builds required by Support Library
30apply(from:new File(buildScriptDir, 'include-composite-deps.gradle'))
31
32// include Support Library itself
33includeBuild(buildScriptDir)
34
35