This repository has been archived by the owner on May 12, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsettings.gradle.kts
131 lines (100 loc) · 5.09 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
versionCatalogs {
create("libs") {
general()
aboutLibraries()
androidx()
apollo()
compose()
firebase()
hilt()
kotlinx()
}
}
}
rootProject.name = "Koguma"
include("", "app")
include(":core")
include(":data")
include(":domain")
include(":presentation")
fun VersionCatalogBuilder.general() {
library("junit", "junit", "junit").version("4.13.2")
library("coil-compose", "io.coil-kt", "coil-compose").version("2.2.2")
library("xml-core", "io.github.pdvrieze.xmlutil", "core-android").version("0.84.3")
library("xml", "io.github.pdvrieze.xmlutil", "serialization-android").version("0.84.3")
plugin("ktlint", "org.jlleitschuh.gradle.ktlint").version("11.0.0")
}
fun VersionCatalogBuilder.aboutLibraries() {
val version = version("aboutlibraries", "10.5.0")
library("aboutlibraries-core", "com.mikepenz", "aboutlibraries-core").versionRef(version)
plugin("aboutlibraries", "com.mikepenz.aboutlibraries.plugin").versionRef(version)
bundle("aboutlibraries", listOf("aboutlibraries-core"))
}
fun VersionCatalogBuilder.androidx() {
val agp = version("agp", "7.4.0-rc01")
library("androidx-viewmodel-compose", "androidx.lifecycle", "lifecycle-viewmodel-compose").version("2.5.1")
library("androidx-corektx", "androidx.core", "core-ktx").version("1.9.0")
library("androidx-lifecycle-runtimektx", "androidx.lifecycle", "lifecycle-runtime-ktx").version("2.5.1")
library("androidx-activity-compose", "androidx.activity", "activity-compose").version("1.6.1")
library("androidx-junit", "androidx.test.ext", "junit").version("1.1.5")
library("androidx-espresso", "androidx.test.espresso", "espresso-core").version("3.5.1")
plugin("android-application", "com.android.application").versionRef(agp)
plugin("android-library", "com.android.library").versionRef(agp)
}
fun VersionCatalogBuilder.apollo() {
val version = version("apollo", "3.6.2")
library("apollo-runtime", "com.apollographql.apollo3", "apollo-runtime").versionRef(version)
plugin("apollo", "com.apollographql.apollo3").versionRef(version)
}
fun VersionCatalogBuilder.compose() {
val compose = version("compose", "1.2.1")
version("compose-compiler", "1.4.0")
val navigation = version("navigation", "2.5.2")
library("compose-navigation", "androidx.navigation", "navigation-compose").versionRef(navigation)
library("compose-icons", "androidx.compose.material", "material-icons-extended").versionRef(compose)
library("compose-ui-core", "androidx.compose.ui", "ui").versionRef(compose)
library("compose-ui-toolingpreview", "androidx.compose.ui", "ui-tooling-preview").versionRef(compose)
library("compose-material3", "androidx.compose.material3", "material3").version("1.0.1")
library("compose-junit", "androidx.compose.ui", "ui-test-junit4").versionRef(compose)
library("compose-ui-tooling", "androidx.compose.ui", "ui-tooling").versionRef(compose)
library("compose-ui-testmanifest", "androidx.compose.ui", "ui-test-manifest").versionRef(compose)
library("compose-animation", "androidx.compose.animation", "animation").versionRef(compose)
}
fun VersionCatalogBuilder.firebase() {
library("google-services", "com.google.gms", "google-services").version("4.3.15")
library("firebase-bom", "com.google.firebase", "firebase-bom").version("31.2.0")
library("firebase-analytics-ktx", "com.google.firebase", "firebase-analytics-ktx").version("")
library("firebase-crashlytics-ktx", "com.google.firebase", "firebase-crashlytics-ktx").version("")
library("firebase-crashlytics-gradle", "com.google.firebase", "firebase-crashlytics-gradle").version("2.9.2")
plugin("google-services", "com.google.gms.google-services").version("")
plugin("firebase-crashlytics", "com.google.firebase.crashlytics").version("")
bundle("firebase", listOf("firebase-analytics-ktx", "firebase-crashlytics-ktx"))
}
fun VersionCatalogBuilder.hilt() {
val hilt = version("hilt", "2.44")
library("hilt-android", "com.google.dagger", "hilt-android").versionRef(hilt)
library("hilt-compiler", "com.google.dagger", "hilt-compiler").versionRef(hilt)
library("hilt-navigation", "androidx.hilt", "hilt-navigation-compose").version("1.0.0")
library("javax-inject", "javax.inject:javax.inject:1")
plugin("hilt", "com.google.dagger.hilt.android").versionRef(hilt)
}
fun VersionCatalogBuilder.kotlinx() {
val kotlin = version("kotlin", "1.8.0")
library("kotlinx-serialization", "org.jetbrains.kotlinx", "kotlinx-serialization-json").version("1.4.1")
plugin("kotlinx-serialization", "org.jetbrains.kotlin.plugin.serialization").versionRef(kotlin)
plugin("kotlin-android", "org.jetbrains.kotlin.android").versionRef(kotlin)
plugin("kotlin-kapt", "org.jetbrains.kotlin.kapt").version("")
}