forked from hoc081098/GithubSearchKMM-Compose-SwiftUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
34 lines (30 loc) · 804 Bytes
/
settings.gradle.kts
File metadata and controls
34 lines (30 loc) · 804 Bytes
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
arrayOf("gradle.properties", "gradle").forEach(::copyToBuildSrc)
pluginManagement {
repositories {
google()
gradlePluginPortal()
mavenCentral()
}
}
rootProject.name = "GithubSearchKMM"
include(":androidApp")
include(":shared")
include(":flowredux")
include(":multiplatform-viewmodel")
fun includeProject(name: String, filePath: String) {
include(name)
project(name).projectDir = File(filePath)
}
fun copyToBuildSrc(sourcePath: String) {
rootDir.resolve(sourcePath).copyRecursively(
target = rootDir.resolve("buildSrc").resolve(sourcePath),
overwrite = true
)
rootDir.resolve(sourcePath).copyRecursively(
target = rootDir.resolve("buildSrc")
.resolve("buildSrc")
.resolve(sourcePath),
overwrite = true
)
println("[DONE] copied $sourcePath")
}