-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
settings.gradle.kts
109 lines (87 loc) · 3.23 KB
/
settings.gradle.kts
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
import fe.buildsettings.extension.*
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
maven { url = uri("https://jitpack.io") }
}
includeBuild("build-settings")
plugins {
kotlin("plugin.serialization") version "2.0.20"
id("de.fayard.refreshVersions") version "0.60.5"
id("androidx.navigation.safeargs") version "2.8.2"
}
}
plugins {
id("de.fayard.refreshVersions")
id("build-settings-plugin")
}
includeBuild("build-logic")
@Suppress("UnstableApiUsage")
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
gradlePluginPortal()
maven { url = uri("https://jitpack.io") }
maven { url = uri("https://maven.mozilla.org/maven2") }
mavenLocal()
}
}
rootProject.name = "LinkSheet"
include(":app", ":config")
include(":bottom-sheet", ":scaffold")
include(":hidden-api")
val localProperties = file("local.properties")
val devProperties = localProperties.loadPropertiesOrNull()
val isDev = (devProperties?.get("dev")?.toString()?.toBooleanStrictOrNull() == true)
if (devProperties != null && isDev && (!isCI && !isJitPack)) {
include(":benchmark")
trySubstitute(devProperties["kotlin-ext.dir"], "com.gitlab.grrfe.kotlin-ext") {
this["core"] = "core"
this["io"] = "io"
this["java-time"] = "java-time"
this["result-core"] = "result:result-core"
this["result-assert"] = "result:result-assert"
this["process-core"] = "process:process-core"
this["process-android"] = "process:process-android"
this["uri"] = "uri"
}
trySubstitute(devProperties["httpkt.dir"], "com.gitlab.grrfe.httpkt") {
this["core"] = "core"
this["ext-gson"] = "ext-gson"
this["ext-jsoup"] = "ext-jsoup"
}
trySubstitute(devProperties["gson-ext.dir"], "com.gitlab.grrfe.gson-ext") {
this["core"] = "core"
}
trySubstitute(devProperties["android-lifecycle-util.dir"], "com.github.1fexd.android-lifecycle-util") {
this["core"] = "core"
this["koin"] = "koin"
}
trySubstitute(devProperties["android-pref-helper.dir"], "com.github.1fexd.android-pref-helper") {
this["core"] = "core"
this["compose"] = "compose"
this["mock"] = "compose-mock"
}
trySubstitute(devProperties["android-span-helper.dir"], "com.github.1fexd.android-span-helper") {
this["core"] = "core"
this["compose"] = "compose"
}
trySubstitute(devProperties["composekit.dir"], "com.github.1fexd.composekit") {
this["app-core"] = "app-core"
this["theme-core"] = "theme-core"
this["theme-preference"] = "theme-preference"
this["component"] = "component"
this["core"] = "core"
this["layout"] = "layout"
}
trySubstitute(devProperties["libredirect.dir"], "com.github.1fexd:libredirectkt")
trySubstitute(devProperties["tld-lib.dir"], "com.github.1fexd:tld-lib")
trySubstitute(devProperties["embed-resolve.dir"], "com.github.1fexd:embed-resolve") {
this[":"] = "core"
}
trySubstitute(devProperties["clearurl.dir"], "com.github.1fexd:clearurlkt")
}