Yigit Boyar | 2eb5199 | 2016-12-13 15:00:07 -0800 | [diff] [blame] | 1 | /* |
| 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 Boyar | 34e5031 | 2017-01-14 14:06:13 -0800 | [diff] [blame] | 19 | |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 20 | def inAppToolkitProject = rootProject.name == "app-toolkit" |
| 21 | def supportRoot |
| 22 | if (inAppToolkitProject) { |
| 23 | supportRoot = new File(rootProject.projectDir, "..").getCanonicalFile() |
| 24 | } else { |
| 25 | supportRoot = rootProject.projectDir |
| 26 | } |
Yigit Boyar | 34e5031 | 2017-01-14 14:06:13 -0800 | [diff] [blame] | 27 | |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 28 | println "support root:${supportRoot}" |
| 29 | |
Yigit Boyar | 8205ce1 | 2017-07-09 23:07:05 -0700 | [diff] [blame] | 30 | include ':arch:runtime' |
| 31 | project(':arch:runtime').projectDir = new File(supportRoot, "app-toolkit/runtime") |
| 32 | |
| 33 | include ':arch:common' |
| 34 | project(':arch:common').projectDir = new File(supportRoot, "app-toolkit/common") |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 35 | |
Chris Craik | 9fd8e61 | 2017-06-23 14:07:04 -0700 | [diff] [blame] | 36 | include ':paging:common' |
| 37 | project(':paging:common').projectDir = new File(supportRoot, "paging/common") |
| 38 | |
| 39 | include ":paging:runtime" |
| 40 | project(':paging:runtime').projectDir = new File(supportRoot, "paging/runtime") |
| 41 | |
| 42 | include ':paging:integration-tests:testapp' |
| 43 | project(':paging:integration-tests:testapp').projectDir = new File(supportRoot, "paging/integration-tests/testapp") |
| 44 | |
Yigit Boyar | 64db0cc | 2017-04-17 13:18:56 -0700 | [diff] [blame] | 45 | include ':arch:core-testing' |
| 46 | project(':arch:core-testing').projectDir = new File(supportRoot, "app-toolkit/core-testing") |
Sergey Vasilinets | 459caad | 2017-03-01 11:11:34 -0800 | [diff] [blame] | 47 | |
Ian Lake | c0b801c | 2018-01-09 14:04:05 -0800 | [diff] [blame] | 48 | include ':lifecycle:livedata-core' |
| 49 | project(':lifecycle:livedata-core').projectDir = new File(supportRoot, "lifecycle/livedata-core") |
| 50 | |
Ian Lake | 3f841f9 | 2017-12-14 13:49:05 -0800 | [diff] [blame] | 51 | include ':lifecycle:livedata' |
| 52 | project(':lifecycle:livedata').projectDir = new File(supportRoot, "lifecycle/livedata") |
| 53 | |
| 54 | include ':lifecycle:viewmodel' |
| 55 | project(':lifecycle:viewmodel').projectDir = new File(supportRoot, "lifecycle/viewmodel") |
| 56 | |
| 57 | include ':lifecycle:extensions' |
| 58 | project(':lifecycle:extensions').projectDir = new File(supportRoot, "lifecycle/extensions") |
| 59 | |
Yigit Boyar | 2eb5199 | 2016-12-13 15:00:07 -0800 | [diff] [blame] | 60 | include ':lifecycle:extensions' |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 61 | project(':lifecycle:extensions').projectDir = new File(supportRoot, "lifecycle/extensions") |
Yigit Boyar | 2eb5199 | 2016-12-13 15:00:07 -0800 | [diff] [blame] | 62 | |
Jason Neufeld | 5349f0e | 2017-02-17 11:17:55 -0800 | [diff] [blame] | 63 | include ':lifecycle:reactivestreams' |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 64 | project(':lifecycle:reactivestreams').projectDir = new File(supportRoot, "lifecycle/reactivestreams") |
Jason Neufeld | 5349f0e | 2017-02-17 11:17:55 -0800 | [diff] [blame] | 65 | |
Yigit Boyar | 2eb5199 | 2016-12-13 15:00:07 -0800 | [diff] [blame] | 66 | include ':lifecycle:runtime' |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 67 | project(':lifecycle:runtime').projectDir = new File(supportRoot, "lifecycle/runtime") |
Yigit Boyar | 2eb5199 | 2016-12-13 15:00:07 -0800 | [diff] [blame] | 68 | |
| 69 | include ':lifecycle:common' |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 70 | project(':lifecycle:common').projectDir = new File(supportRoot, "lifecycle/common") |
Yigit Boyar | 2eb5199 | 2016-12-13 15:00:07 -0800 | [diff] [blame] | 71 | |
Sergey Vasilinets | 243ca80 | 2017-09-01 18:16:14 -0700 | [diff] [blame] | 72 | include ':lifecycle:common-java8' |
| 73 | project(':lifecycle:common-java8').projectDir = new File(supportRoot, "lifecycle/common-java8") |
| 74 | |
Yigit Boyar | 2eb5199 | 2016-12-13 15:00:07 -0800 | [diff] [blame] | 75 | include ':lifecycle:compiler' |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 76 | project(':lifecycle:compiler').projectDir = new File(supportRoot, "lifecycle/compiler") |
Yigit Boyar | 2eb5199 | 2016-12-13 15:00:07 -0800 | [diff] [blame] | 77 | |
Ian Lake | 4fa9444 | 2017-03-06 14:12:53 -0800 | [diff] [blame] | 78 | include ':lifecycle:integration-tests:testapp' |
| 79 | project(':lifecycle:integration-tests:testapp').projectDir = new File(supportRoot, "lifecycle/integration-tests/testapp") |
Yigit Boyar | 2eb5199 | 2016-12-13 15:00:07 -0800 | [diff] [blame] | 80 | |
| 81 | include ':room:common' |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 82 | project(':room:common').projectDir = new File(supportRoot, "room/common") |
Yigit Boyar | 2eb5199 | 2016-12-13 15:00:07 -0800 | [diff] [blame] | 83 | |
| 84 | include ':room:runtime' |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 85 | project(':room:runtime').projectDir = new File(supportRoot, "room/runtime") |
Yigit Boyar | 2eb5199 | 2016-12-13 15:00:07 -0800 | [diff] [blame] | 86 | |
| 87 | include ':room:compiler' |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 88 | project(':room:compiler').projectDir = new File(supportRoot, "room/compiler") |
Yigit Boyar | 2eb5199 | 2016-12-13 15:00:07 -0800 | [diff] [blame] | 89 | |
Yigit Boyar | a64756a | 2017-03-20 17:26:17 -0700 | [diff] [blame] | 90 | include ':room:migration' |
| 91 | project(':room:migration').projectDir = new File(supportRoot, "room/migration") |
| 92 | |
Yigit Boyar | 8fe7624 | 2017-09-18 09:36:51 -0700 | [diff] [blame] | 93 | include ':persistence:db' |
| 94 | project(':persistence:db').projectDir = new File(supportRoot, "persistence/db") |
Yigit Boyar | 2eb5199 | 2016-12-13 15:00:07 -0800 | [diff] [blame] | 95 | |
Yigit Boyar | 8fe7624 | 2017-09-18 09:36:51 -0700 | [diff] [blame] | 96 | include ":persistence:db-framework" |
| 97 | project(':persistence:db-framework').projectDir = new File(supportRoot, "persistence/db-framework") |
Yigit Boyar | 2eb5199 | 2016-12-13 15:00:07 -0800 | [diff] [blame] | 98 | |
Tyson Henning | f1ae006 | 2018-01-31 16:31:10 -0800 | [diff] [blame] | 99 | include ":room:guava" |
| 100 | project(':room:guava').projectDir = new File(supportRoot, "room/guava") |
| 101 | |
Yigit Boyar | a64756a | 2017-03-20 17:26:17 -0700 | [diff] [blame] | 102 | include ":room:testing" |
| 103 | project(':room:testing').projectDir = new File(supportRoot, "room/testing") |
| 104 | |
Yigit Boyar | 3c592c4 | 2017-04-04 14:53:04 -0700 | [diff] [blame] | 105 | include ":room:rxjava2" |
| 106 | project(':room:rxjava2').projectDir = new File(supportRoot, "room/rxjava2") |
| 107 | |
Yigit Boyar | 2eb5199 | 2016-12-13 15:00:07 -0800 | [diff] [blame] | 108 | include ':room:integration-tests:testapp' |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 109 | project(':room:integration-tests:testapp').projectDir = new File(supportRoot, "room/integration-tests/testapp") |
| 110 | |
Florina Muntenescu | 34f575b | 2017-07-17 10:38:50 +0100 | [diff] [blame] | 111 | include ':room:integration-tests:kotlintestapp' |
| 112 | project(':room:integration-tests:kotlintestapp').projectDir = new File(supportRoot, "room/integration-tests/kotlintestapp") |
| 113 | |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 114 | ///////////////////////////// |
| 115 | // |
Sergey Vasilinets | e69e470 | 2017-02-10 02:26:10 -0800 | [diff] [blame] | 116 | // External |
| 117 | // |
| 118 | ///////////////////////////// |
| 119 | |
Jeff Gaston | e3be4aa | 2018-01-17 19:11:11 -0500 | [diff] [blame] | 120 | apply(from: new File(supportRoot, 'include-composite-deps.gradle')) |