forked from gkd-kit/gkd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle.kts
213 lines (181 loc) · 9.42 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
rootProject.name = "gkd"
include(":app")
include(":selector")
include(":hidden_api")
pluginManagement {
repositories {
mavenLocal()
mavenCentral()
google()
maven("https://jitpack.io")
maven("https://plugins.gradle.org/m2/")
}
}
dependencyResolutionManagement {
// https://youtrack.jetbrains.com/issue/KT-55620
// https://stackoverflow.com/questions/69163511
// repositoriesMode.set(RepositoriesMode.PREFER_PROJECT)
repositories {
mavenLocal()
mavenCentral()
google()
maven("https://jitpack.io")
}
versionCatalogs {
create("libs") {
val kotlinVersion = "1.9.22"
// use jdk17
version("jdkVersion", JavaVersion.VERSION_17.majorVersion)
version("kotlinVersion", kotlinVersion)
version("android.compileSdk", "34")
version("android.targetSdk", "34")
version("android.buildToolsVersion", "34.0.0")
version("android.minSdk", "26")
val androidLibraryVersion = "8.2.2"
library("android.gradle", "com.android.tools.build:gradle:$androidLibraryVersion")
plugin("android.library", "com.android.library").version(androidLibraryVersion)
plugin("android.application", "com.android.application").version(androidLibraryVersion)
// 当前 android 项目 kotlin 的版本
library(
"kotlin.gradle.plugin", "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
)
library(
"kotlin.serialization", "org.jetbrains.kotlin:kotlin-serialization:$kotlinVersion"
)
library(
"kotlin.stdlib.common", "org.jetbrains.kotlin:kotlin-stdlib-common:$kotlinVersion"
)
plugin("kotlin.serialization", "org.jetbrains.kotlin.plugin.serialization").version(
kotlinVersion
)
plugin("kotlin.parcelize", "org.jetbrains.kotlin.plugin.parcelize").version(
kotlinVersion
)
plugin("kotlin.multiplatform", "org.jetbrains.kotlin.multiplatform").version(
kotlinVersion
)
plugin("kotlin.android", "org.jetbrains.kotlin.android").version(kotlinVersion)
// compose 编译器的版本, 需要注意它与 compose 的版本没有关联
// https://developer.android.com/jetpack/androidx/releases/compose-compiler
version("compose.compilerVersion", "1.5.9")
val composeVersion = "1.6.1"
library("compose.ui", "androidx.compose.ui:ui:$composeVersion")
library("compose.preview", "androidx.compose.ui:ui-tooling-preview:$composeVersion")
library("compose.tooling", "androidx.compose.ui:ui-tooling:$composeVersion")
library("compose.junit4", "androidx.compose.ui:ui-test-junit4:$composeVersion")
// https://developer.android.com/reference/kotlin/androidx/compose/material/icons/package-summary
// https://fonts.google.com/icons?icon.platform=android
library(
"compose.icons",
"androidx.compose.material:material-icons-extended:$composeVersion"
)
library("compose.material3", "androidx.compose.material3:material3:1.2.0")
library("compose.activity", "androidx.activity:activity-compose:1.8.2")
// https://github.com/Tencent/MMKV/blob/master/README_CN.md
library("tencent.mmkv", "com.tencent:mmkv:1.3.3")
// https://github.com/RikkaApps/HiddenApiRefinePlugin
val rikkaVersion = "4.4.0"
plugin("rikka.refine", "dev.rikka.tools.refine").version(rikkaVersion)
library("rikka.gradle", "dev.rikka.tools.refine:gradle-plugin:$rikkaVersion")
library("rikka.processor", "dev.rikka.tools.refine:annotation-processor:$rikkaVersion")
library("rikka.annotation", "dev.rikka.tools.refine:annotation:$rikkaVersion")
library("rikka.runtime", "dev.rikka.tools.refine:runtime:$rikkaVersion")
// https://github.com/RikkaApps/Shizuku-API
library("rikka.shizuku.api", "dev.rikka.shizuku:api:13.1.5")
library("rikka.shizuku.provider", "dev.rikka.shizuku:provider:13.1.5")
// https://github.com/LSPosed/AndroidHiddenApiBypass
library("lsposed.hiddenapibypass", "org.lsposed.hiddenapibypass:hiddenapibypass:4.3")
// 工具集合类
// https://github.com/Blankj/AndroidUtilCode/blob/master/lib/utilcode/README-CN.md
library("others.utilcodex", "com.blankj:utilcodex:1.31.1")
// https://dylancaicoding.github.io/ActivityResultLauncher/#/
library(
"others.activityResultLauncher",
"com.github.DylanCaiCoding:ActivityResultLauncher:1.1.2"
)
// json5
// https://github.com/falkreon/Jankson
library("others.jankson", "blue.endless:jankson:1.2.3")
// https://github.com/TorryDo/Floating-Bubble-View
library("others.floating.bubble.view", "io.github.torrydo:floating-bubble-view:0.6.4")
library("androidx.appcompat", "androidx.appcompat:appcompat:1.6.1")
library("androidx.core.ktx", "androidx.core:core-ktx:1.12.0")
library(
"androidx.lifecycle.runtime.ktx", "androidx.lifecycle:lifecycle-runtime-ktx:2.7.0"
)
library("androidx.junit", "androidx.test.ext:junit:1.1.5")
library("androidx.espresso", "androidx.test.espresso:espresso-core:3.5.1")
// https://developer.android.com/jetpack/androidx/releases/room
val roomVersion = "2.6.1"
library("androidx.room.runtime", "androidx.room:room-runtime:$roomVersion")
library("androidx.room.compiler", "androidx.room:room-compiler:$roomVersion")
library("androidx.room.ktx", "androidx.room:room-ktx:$roomVersion")
library("androidx.splashscreen", "androidx.core:core-splashscreen:1.0.1")
library(
"google.accompanist.drawablepainter",
"com.google.accompanist:accompanist-drawablepainter:0.34.0"
)
library("junit", "junit:junit:4.13.2")
val ktorVersion = "2.3.8"
// 请注意,当 client 和 server 版本不一致时, 会报错 socket hang up
library("ktor.server.core", "io.ktor:ktor-server-core:$ktorVersion")
library("ktor.server.cio", "io.ktor:ktor-server-cio:$ktorVersion")
library("ktor.server.cors", "io.ktor:ktor-server-cors:$ktorVersion")
library(
"ktor.server.content.negotiation",
"io.ktor:ktor-server-content-negotiation:$ktorVersion"
)
library("ktor.client.core", "io.ktor:ktor-client-core:$ktorVersion")
library("ktor.client.okhttp", "io.ktor:ktor-client-okhttp:$ktorVersion")
// https://ktor.io/docs/http-client-engines.html#android android 平台使用 android 或者 okhttp 都行
library(
"ktor.client.content.negotiation",
"io.ktor:ktor-client-content-negotiation:$ktorVersion"
)
library(
"ktor.serialization.kotlinx.json",
"io.ktor:ktor-serialization-kotlinx-json:$ktorVersion"
)
library(
"kotlinx.serialization.json",
"org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.2"
)
// https://github.com/Kotlin/kotlinx.collections.immutable
// 仍然存在一些限制 kotlinx.serialization https://github.com/Kotlin/kotlinx.collections.immutable/issues/63
library(
"kotlinx.collections.immutable",
"org.jetbrains.kotlinx:kotlinx-collections-immutable:0.3.7"
)
// https://developer.android.com/reference/kotlin/org/json/package-summary
library("org.json", "org.json:json:20210307")
plugin("google.ksp", "com.google.devtools.ksp").version("1.9.22-1.0.17")
val hiltVersion = "2.50"
plugin("google.hilt", "com.google.dagger.hilt.android").version(hiltVersion)
library("google.hilt.android", "com.google.dagger:hilt-android:$hiltVersion")
library(
"google.hilt.android.compiler",
"com.google.dagger:hilt-android-compiler:$hiltVersion"
)
library(
"androidx.hilt.navigation.compose", "androidx.hilt:hilt-navigation-compose:1.1.0"
)
// https://github.com/raamcosta/compose-destinations
val destinationsVersion = "1.10.0"
library(
"destinations.core",
"io.github.raamcosta.compose-destinations:core:$destinationsVersion"
)
library(
"destinations.ksp",
"io.github.raamcosta.compose-destinations:ksp:$destinationsVersion"
)
val coilVersion = "2.5.0"
library("coil.compose", "io.coil-kt:coil-compose:$coilVersion")
library("coil.gif", "io.coil-kt:coil-gif:$coilVersion")
// https://github.com/Calvin-LL/Reorderable
library("others.reorderable", "sh.calvin.reorderable:reorderable:1.3.1")
// https://www.objecthunter.net/exp4j/
library("exp4j", "net.objecthunter:exp4j:0.4.8")
}
}
}