blob: 18176def838f687e8d93f7796831a18d1d23fc21 [file] [log] [blame]
Yigit Boyar2eb51992016-12-13 15:00:07 -08001/*
2 * Copyright (C) 2016 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// If you change this file, you should also change the settings gradle inside
18// the sub project.
Yigit Boyar34e50312017-01-14 14:06:13 -080019
Yigit Boyar450ed382017-03-02 09:48:25 -080020def inAppToolkitProject = rootProject.name == "app-toolkit"
21def supportRoot
22if (inAppToolkitProject) {
23 supportRoot = new File(rootProject.projectDir, "..").getCanonicalFile()
24} else {
25 supportRoot = rootProject.projectDir
26}
Yigit Boyar34e50312017-01-14 14:06:13 -080027
Yigit Boyar450ed382017-03-02 09:48:25 -080028println "support root:${supportRoot}"
29
Yigit Boyar8205ce12017-07-09 23:07:05 -070030include ':arch:runtime'
31project(':arch:runtime').projectDir = new File(supportRoot, "app-toolkit/runtime")
32
33include ':arch:common'
34project(':arch:common').projectDir = new File(supportRoot, "app-toolkit/common")
Yigit Boyar450ed382017-03-02 09:48:25 -080035
Chris Craik9fd8e612017-06-23 14:07:04 -070036include ':paging:common'
37project(':paging:common').projectDir = new File(supportRoot, "paging/common")
38
39include ":paging:runtime"
40project(':paging:runtime').projectDir = new File(supportRoot, "paging/runtime")
41
42include ':paging:integration-tests:testapp'
43project(':paging:integration-tests:testapp').projectDir = new File(supportRoot, "paging/integration-tests/testapp")
44
Yigit Boyar64db0cc2017-04-17 13:18:56 -070045include ':arch:core-testing'
46project(':arch:core-testing').projectDir = new File(supportRoot, "app-toolkit/core-testing")
Sergey Vasilinets459caad2017-03-01 11:11:34 -080047
Ian Lakec0b801c2018-01-09 14:04:05 -080048include ':lifecycle:livedata-core'
49project(':lifecycle:livedata-core').projectDir = new File(supportRoot, "lifecycle/livedata-core")
50
Ian Lake3f841f92017-12-14 13:49:05 -080051include ':lifecycle:livedata'
52project(':lifecycle:livedata').projectDir = new File(supportRoot, "lifecycle/livedata")
53
54include ':lifecycle:viewmodel'
55project(':lifecycle:viewmodel').projectDir = new File(supportRoot, "lifecycle/viewmodel")
56
57include ':lifecycle:extensions'
58project(':lifecycle:extensions').projectDir = new File(supportRoot, "lifecycle/extensions")
59
Yigit Boyar2eb51992016-12-13 15:00:07 -080060include ':lifecycle:extensions'
Yigit Boyar450ed382017-03-02 09:48:25 -080061project(':lifecycle:extensions').projectDir = new File(supportRoot, "lifecycle/extensions")
Yigit Boyar2eb51992016-12-13 15:00:07 -080062
Jason Neufeld5349f0e2017-02-17 11:17:55 -080063include ':lifecycle:reactivestreams'
Yigit Boyar450ed382017-03-02 09:48:25 -080064project(':lifecycle:reactivestreams').projectDir = new File(supportRoot, "lifecycle/reactivestreams")
Jason Neufeld5349f0e2017-02-17 11:17:55 -080065
Yigit Boyar2eb51992016-12-13 15:00:07 -080066include ':lifecycle:runtime'
Yigit Boyar450ed382017-03-02 09:48:25 -080067project(':lifecycle:runtime').projectDir = new File(supportRoot, "lifecycle/runtime")
Yigit Boyar2eb51992016-12-13 15:00:07 -080068
69include ':lifecycle:common'
Yigit Boyar450ed382017-03-02 09:48:25 -080070project(':lifecycle:common').projectDir = new File(supportRoot, "lifecycle/common")
Yigit Boyar2eb51992016-12-13 15:00:07 -080071
Sergey Vasilinets243ca802017-09-01 18:16:14 -070072include ':lifecycle:common-java8'
73project(':lifecycle:common-java8').projectDir = new File(supportRoot, "lifecycle/common-java8")
74
Yigit Boyar2eb51992016-12-13 15:00:07 -080075include ':lifecycle:compiler'
Yigit Boyar450ed382017-03-02 09:48:25 -080076project(':lifecycle:compiler').projectDir = new File(supportRoot, "lifecycle/compiler")
Yigit Boyar2eb51992016-12-13 15:00:07 -080077
Ian Lake4fa94442017-03-06 14:12:53 -080078include ':lifecycle:integration-tests:testapp'
79project(':lifecycle:integration-tests:testapp').projectDir = new File(supportRoot, "lifecycle/integration-tests/testapp")
Yigit Boyar2eb51992016-12-13 15:00:07 -080080
81include ':room:common'
Yigit Boyar450ed382017-03-02 09:48:25 -080082project(':room:common').projectDir = new File(supportRoot, "room/common")
Yigit Boyar2eb51992016-12-13 15:00:07 -080083
84include ':room:runtime'
Yigit Boyar450ed382017-03-02 09:48:25 -080085project(':room:runtime').projectDir = new File(supportRoot, "room/runtime")
Yigit Boyar2eb51992016-12-13 15:00:07 -080086
87include ':room:compiler'
Yigit Boyar450ed382017-03-02 09:48:25 -080088project(':room:compiler').projectDir = new File(supportRoot, "room/compiler")
Yigit Boyar2eb51992016-12-13 15:00:07 -080089
Yigit Boyara64756a2017-03-20 17:26:17 -070090include ':room:migration'
91project(':room:migration').projectDir = new File(supportRoot, "room/migration")
92
Yigit Boyar8fe76242017-09-18 09:36:51 -070093include ':persistence:db'
94project(':persistence:db').projectDir = new File(supportRoot, "persistence/db")
Yigit Boyar2eb51992016-12-13 15:00:07 -080095
Yigit Boyar8fe76242017-09-18 09:36:51 -070096include ":persistence:db-framework"
97project(':persistence:db-framework').projectDir = new File(supportRoot, "persistence/db-framework")
Yigit Boyar2eb51992016-12-13 15:00:07 -080098
Yigit Boyara64756a2017-03-20 17:26:17 -070099include ":room:testing"
100project(':room:testing').projectDir = new File(supportRoot, "room/testing")
101
Yigit Boyar3c592c42017-04-04 14:53:04 -0700102include ":room:rxjava2"
103project(':room:rxjava2').projectDir = new File(supportRoot, "room/rxjava2")
104
Yigit Boyar2eb51992016-12-13 15:00:07 -0800105include ':room:integration-tests:testapp'
Yigit Boyar450ed382017-03-02 09:48:25 -0800106project(':room:integration-tests:testapp').projectDir = new File(supportRoot, "room/integration-tests/testapp")
107
Florina Muntenescu34f575b2017-07-17 10:38:50 +0100108include ':room:integration-tests:kotlintestapp'
109project(':room:integration-tests:kotlintestapp').projectDir = new File(supportRoot, "room/integration-tests/kotlintestapp")
110
Yigit Boyar450ed382017-03-02 09:48:25 -0800111/////////////////////////////
112//
Sergey Vasilinetse69e4702017-02-10 02:26:10 -0800113// External
114//
115/////////////////////////////
116
Jeff Gastone3be4aa2018-01-17 19:11:11 -0500117apply(from: new File(supportRoot, 'include-composite-deps.gradle'))