-
Notifications
You must be signed in to change notification settings - Fork 30
/
settings.gradle.kts
115 lines (104 loc) · 2.89 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
109
110
111
112
113
114
115
/*
* Copyright (c) 2020 Mustafa Ozhan. All rights reserved.
*/
pluginManagement {
repositories {
google()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
@Suppress("UnstableApiUsage")
repositories {
google()
mavenCentral()
maven("https://developer.huawei.com/repo/")
}
}
include(
// region Android only modules
":android:app",
// Core modules
":android:core:billing",
":android:core:ad",
// UI modules
":android:ui:mobile",
":android:ui:widget",
// ViewModel modules
":android:viewmodel:widget",
// endregion
// region iOS only modules
":ios:provider",
// Repository modules
":ios:repository:background",
// endregion
// region Backend only modules
":backend:app",
// Service modules
":backend:service:premium",
// Controller modules
":backend:controller:sync",
":backend:controller:api",
// endregion
// region Client only modules Android+iOS
// Core modules
":client:core:viewmodel",
":client:core:shared",
":client:core:res",
":client:core:analytics",
":client:core:persistence",
":client:core:remoteconfig",
// Storage modules
":client:storage:app",
":client:storage:calculation",
// DataSource modules
":client:datasource:currency",
":client:datasource:watcher",
// Service modules
":client:service:backend",
// ConfigService modules
":client:configservice:ad",
":client:configservice:review",
":client:configservice:update",
// Repository modules
":client:repository:adcontrol",
":client:repository:appconfig",
// ViewModel modules
":client:viewmodel:main",
":client:viewmodel:calculator",
":client:viewmodel:currencies",
":client:viewmodel:settings",
":client:viewmodel:selectcurrency",
":client:viewmodel:watchers",
":client:viewmodel:premium",
// endregion
// region Common only modules Android+iOS+Backend
// Core modules
":common:core:database",
":common:core:network",
":common:core:infrastructure",
":common:core:model",
// DataSource modules
":common:datasource:conversion",
// endregion
":test",
)
// region Git Submodules independent modules and project hosted in different repository
includeBuild("submodule/logmob") // KMP, logger library
includeBuild("submodule/scopemob") // KMP, hand scope functions
includeBuild("submodule/basemob") // Android only base classes
includeBuild("submodule/parsermob") // KMP, parsing library
// endregion
rootProject.name = "CCC"
rootProject.updateBuildFileNames()
fun ProjectDescriptor.updateBuildFileNames() {
buildFileName = path
.drop(1)
.replace(":", "-")
.dropLastWhile { it != '-' }
.plus(name)
.plus(".gradle.kts")
if (children.isNotEmpty()) {
children.forEach { it.updateBuildFileNames() }
}
}