forked from cashapp/paparazzi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
45 lines (38 loc) · 1.46 KB
/
settings.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
rootProject.name = 'paparazzi-root'
include ':libs:layoutlib'
include ':libs:native-macarm'
include ':libs:native-macosx'
include ':libs:native-win'
include ':libs:native-linux'
include ':paparazzi'
include ':paparazzi2'
include ':paparazzi-annotations'
include ':paparazzi-preview-processor'
include ':paparazzi-gradle-plugin'
include ':sample'
enableFeaturePreview('TYPESAFE_PROJECT_ACCESSORS')
includeBuild('build-logic') {
dependencySubstitution {
substitute module('app.cash.paparazzi:paparazzi-gradle-plugin') using project(':paparazzi-gradle-plugin')
}
}
def isIdea = !(System.getProperty("idea.version") ?: "").isEmpty()
if (isIdea) {
includeTestProjectsIntoIDE()
}
private void includeTestProjectsIntoIDE() {
// Some of the test projects are intentionally supposed to fail. Don't import these into the main project.
def brokenProjects = [
"invalid-application-plugin", // intentionally does not import
"missing-library-plugin", // intentionally does not import
"missing-supported-plugins", // intentionally does not import
"multiplatform-plugin-without-android", // intentionally does not import
]
new File(rootDir, "paparazzi-gradle-plugin/src/test/projects").eachDir {
def dirName = it.name
if (!dirName.startsWith(".") && !brokenProjects.contains(dirName)) {
include ":test-projects:$dirName"
project(":test-projects:$dirName").projectDir = new File(rootDir, "paparazzi-gradle-plugin/src/test/projects/$dirName")
}
}
}