2023-04-30 17:50:55 +08:00
|
|
|
rootProject.name = "gkd"
|
|
|
|
include(":app")
|
2023-07-10 11:25:17 +08:00
|
|
|
include(":selector")
|
|
|
|
include(":hidden_api")
|
2023-05-18 15:34:49 +08:00
|
|
|
|
|
|
|
pluginManagement {
|
|
|
|
repositories {
|
2023-08-31 22:22:03 +08:00
|
|
|
mavenLocal()
|
|
|
|
mavenCentral()
|
|
|
|
google()
|
|
|
|
maven("https://jitpack.io")
|
2023-05-18 15:34:49 +08:00
|
|
|
maven("https://plugins.gradle.org/m2/")
|
|
|
|
}
|
|
|
|
}
|
2023-04-30 17:50:55 +08:00
|
|
|
|
2021-11-07 16:50:28 +08:00
|
|
|
dependencyResolutionManagement {
|
2023-07-10 11:25:17 +08:00
|
|
|
|
2023-05-18 15:34:49 +08:00
|
|
|
// https://youtrack.jetbrains.com/issue/KT-55620
|
2023-07-10 11:25:17 +08:00
|
|
|
// https://stackoverflow.com/questions/69163511
|
|
|
|
repositoriesMode.set(RepositoriesMode.PREFER_PROJECT)
|
|
|
|
|
2021-11-07 16:50:28 +08:00
|
|
|
repositories {
|
2022-10-09 10:51:27 +08:00
|
|
|
mavenLocal()
|
2021-11-07 16:50:28 +08:00
|
|
|
mavenCentral()
|
2022-10-09 10:51:27 +08:00
|
|
|
google()
|
2023-04-30 17:50:55 +08:00
|
|
|
maven("https://jitpack.io")
|
|
|
|
}
|
2023-07-10 11:25:17 +08:00
|
|
|
|
2023-04-30 17:50:55 +08:00
|
|
|
versionCatalogs {
|
|
|
|
create("libs") {
|
2023-11-22 19:19:51 +08:00
|
|
|
val kotlinVersion = "1.9.20"
|
2023-07-10 11:25:17 +08:00
|
|
|
// use jdk17
|
|
|
|
version("jdkVersion", JavaVersion.VERSION_17.majorVersion)
|
2023-08-31 22:22:03 +08:00
|
|
|
version("kotlinVersion", kotlinVersion)
|
2023-04-30 17:50:55 +08:00
|
|
|
|
2023-08-31 22:22:03 +08:00
|
|
|
version("android.compileSdk", "34")
|
|
|
|
version("android.targetSdk", "34")
|
|
|
|
version("android.buildToolsVersion", "34.0.0")
|
2023-07-10 11:25:17 +08:00
|
|
|
version("android.minSdk", "26")
|
|
|
|
|
2023-11-22 19:19:51 +08:00
|
|
|
library("android.gradle", "com.android.tools.build:gradle:8.1.4")
|
|
|
|
plugin("android.library", "com.android.library").version("8.1.4")
|
|
|
|
plugin("android.application", "com.android.application").version("8.1.4")
|
2023-04-30 17:50:55 +08:00
|
|
|
|
2023-05-18 15:34:49 +08:00
|
|
|
// 当前 android 项目 kotlin 的版本
|
2023-10-20 17:32:33 +08:00
|
|
|
library(
|
2023-11-22 19:19:51 +08:00
|
|
|
"kotlin.gradle.plugin", "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
|
2023-10-27 16:11:14 +08:00
|
|
|
)
|
|
|
|
library(
|
2023-11-22 19:19:51 +08:00
|
|
|
"kotlin.serialization", "org.jetbrains.kotlin:kotlin-serialization:$kotlinVersion"
|
2023-10-27 16:11:14 +08:00
|
|
|
)
|
|
|
|
library(
|
|
|
|
"kotlin.stdlib.common", "org.jetbrains.kotlin:kotlin-stdlib-common:$kotlinVersion"
|
2023-10-20 17:32:33 +08:00
|
|
|
)
|
|
|
|
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
|
|
|
|
)
|
2023-08-31 22:22:03 +08:00
|
|
|
plugin("kotlin.android", "org.jetbrains.kotlin.android").version(kotlinVersion)
|
2023-04-30 17:50:55 +08:00
|
|
|
|
|
|
|
// compose 编译器的版本, 需要注意它与 compose 的版本没有关联
|
|
|
|
// https://mvnrepository.com/artifact/androidx.compose.compiler/compiler
|
2023-11-22 19:19:51 +08:00
|
|
|
version("compose.compilerVersion", "1.5.4")
|
2023-10-27 16:11:14 +08:00
|
|
|
val composeVersion = "1.5.4"
|
|
|
|
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")
|
2023-10-19 16:17:59 +08:00
|
|
|
library("compose.material3", "androidx.compose.material3:material3:1.1.2")
|
2023-11-17 17:36:25 +08:00
|
|
|
library("compose.activity", "androidx.activity:activity-compose:1.8.1")
|
2023-04-30 17:50:55 +08:00
|
|
|
|
|
|
|
// https://github.com/Tencent/MMKV/blob/master/README_CN.md
|
2023-11-22 19:19:51 +08:00
|
|
|
library("tencent.mmkv", "com.tencent:mmkv:1.3.2")
|
2023-04-30 17:50:55 +08:00
|
|
|
// https://bugly.qq.com/docs/user-guide/instruction-manual-android/
|
2023-11-07 14:02:05 +08:00
|
|
|
library("tencent.bugly", "com.tencent.bugly:crashreport:4.1.9.3")
|
2023-04-30 17:50:55 +08:00
|
|
|
|
2023-07-10 11:25:17 +08:00
|
|
|
// https://github.com/RikkaApps/HiddenApiRefinePlugin
|
2023-10-27 16:11:14 +08:00
|
|
|
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")
|
2023-07-10 11:25:17 +08:00
|
|
|
|
|
|
|
// https://github.com/RikkaApps/Shizuku-API
|
2023-09-25 20:47:00 +08:00
|
|
|
library("rikka.shizuku.api", "dev.rikka.shizuku:api:13.1.5")
|
|
|
|
library("rikka.shizuku.provider", "dev.rikka.shizuku:provider:13.1.5")
|
2023-07-10 11:25:17 +08:00
|
|
|
|
|
|
|
// https://github.com/LSPosed/AndroidHiddenApiBypass
|
|
|
|
library("lsposed.hiddenapibypass", "org.lsposed.hiddenapibypass:hiddenapibypass:4.3")
|
2023-04-30 17:50:55 +08:00
|
|
|
|
|
|
|
// 工具集合类
|
|
|
|
// https://github.com/Blankj/AndroidUtilCode/blob/master/lib/utilcode/README-CN.md
|
2023-10-27 16:11:14 +08:00
|
|
|
library("others.utilcodex", "com.blankj:utilcodex:1.31.1")
|
2023-10-16 17:58:43 +08:00
|
|
|
|
2023-04-30 17:50:55 +08:00
|
|
|
// https://dylancaicoding.github.io/ActivityResultLauncher/#/
|
|
|
|
library(
|
2023-08-31 22:22:03 +08:00
|
|
|
"others.activityResultLauncher",
|
2023-04-30 17:50:55 +08:00
|
|
|
"com.github.DylanCaiCoding:ActivityResultLauncher:1.1.2"
|
|
|
|
)
|
2023-10-11 21:04:07 +08:00
|
|
|
// json5
|
2023-04-30 17:50:55 +08:00
|
|
|
// https://github.com/falkreon/Jankson
|
2023-10-11 21:04:07 +08:00
|
|
|
library("others.jankson", "blue.endless:jankson:1.2.3")
|
2023-10-16 17:58:43 +08:00
|
|
|
|
2023-08-31 22:22:03 +08:00
|
|
|
// https://github.com/TorryDo/Floating-Bubble-View
|
2023-10-27 16:11:14 +08:00
|
|
|
library("others.floating.bubble.view", "io.github.torrydo:floating-bubble-view:0.6.3")
|
2023-04-30 17:50:55 +08:00
|
|
|
|
|
|
|
library("androidx.appcompat", "androidx.appcompat:appcompat:1.6.1")
|
2023-09-11 19:19:01 +08:00
|
|
|
library("androidx.core.ktx", "androidx.core:core-ktx:1.12.0")
|
2023-04-30 17:50:55 +08:00
|
|
|
library(
|
2023-09-11 19:19:01 +08:00
|
|
|
"androidx.lifecycle.runtime.ktx", "androidx.lifecycle:lifecycle-runtime-ktx:2.6.2"
|
2023-04-30 17:50:55 +08:00
|
|
|
)
|
|
|
|
library("androidx.junit", "androidx.test.ext:junit:1.1.5")
|
|
|
|
library("androidx.espresso", "androidx.test.espresso:espresso-core:3.5.1")
|
|
|
|
|
2023-10-27 16:11:14 +08:00
|
|
|
// https://developer.android.com/jetpack/androidx/releases/room
|
|
|
|
val roomVersion = "2.6.0"
|
|
|
|
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")
|
2023-04-30 17:50:55 +08:00
|
|
|
|
2023-07-10 11:25:17 +08:00
|
|
|
library("androidx.splashscreen", "androidx.core:core-splashscreen:1.0.1")
|
|
|
|
|
2023-04-30 17:50:55 +08:00
|
|
|
library(
|
|
|
|
"google.accompanist.drawablepainter",
|
2023-09-11 19:19:01 +08:00
|
|
|
"com.google.accompanist:accompanist-drawablepainter:0.32.0"
|
2023-04-30 17:50:55 +08:00
|
|
|
)
|
2023-07-10 11:25:17 +08:00
|
|
|
|
2023-04-30 17:50:55 +08:00
|
|
|
library("junit", "junit:junit:4.13.2")
|
|
|
|
|
2023-11-22 17:14:02 +08:00
|
|
|
val ktorVersion = "2.3.6"
|
2023-04-30 17:50:55 +08:00
|
|
|
// 请注意,当 client 和 server 版本不一致时, 会报错 socket hang up
|
2023-09-11 19:19:01 +08:00
|
|
|
library("ktor.server.core", "io.ktor:ktor-server-core:$ktorVersion")
|
2023-11-22 17:14:02 +08:00
|
|
|
library("ktor.server.cio", "io.ktor:ktor-server-cio:$ktorVersion")
|
2023-09-11 19:19:01 +08:00
|
|
|
library("ktor.server.cors", "io.ktor:ktor-server-cors:$ktorVersion")
|
2023-04-30 17:50:55 +08:00
|
|
|
library(
|
2023-09-11 19:19:01 +08:00
|
|
|
"ktor.server.content.negotiation", "io.ktor:ktor-server-content-negotiation:$ktorVersion"
|
2023-04-30 17:50:55 +08:00
|
|
|
)
|
2023-09-11 19:19:01 +08:00
|
|
|
library("ktor.client.core", "io.ktor:ktor-client-core:$ktorVersion")
|
|
|
|
library("ktor.client.okhttp", "io.ktor:ktor-client-okhttp:$ktorVersion")
|
2023-07-10 11:25:17 +08:00
|
|
|
// https://ktor.io/docs/http-client-engines.html#android android 平台使用 android 或者 okhttp 都行
|
2023-04-30 17:50:55 +08:00
|
|
|
library(
|
2023-09-11 19:19:01 +08:00
|
|
|
"ktor.client.content.negotiation", "io.ktor:ktor-client-content-negotiation:$ktorVersion"
|
2023-04-30 17:50:55 +08:00
|
|
|
)
|
|
|
|
library(
|
2023-09-11 19:19:01 +08:00
|
|
|
"ktor.serialization.kotlinx.json", "io.ktor:ktor-serialization-kotlinx-json:$ktorVersion"
|
2023-04-30 17:50:55 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
library(
|
|
|
|
"kotlinx.serialization.json",
|
2023-11-22 19:19:51 +08:00
|
|
|
"org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.1"
|
2023-04-30 17:50:55 +08:00
|
|
|
)
|
2023-10-16 17:58:43 +08:00
|
|
|
|
2023-04-30 17:50:55 +08:00
|
|
|
// https://github.com/Kotlin/kotlinx.collections.immutable
|
|
|
|
library(
|
|
|
|
"kotlinx.collections.immutable",
|
2023-10-20 17:32:33 +08:00
|
|
|
"org.jetbrains.kotlinx:kotlinx-collections-immutable:0.3.6"
|
2023-04-30 17:50:55 +08:00
|
|
|
)
|
|
|
|
|
2023-05-18 15:34:49 +08:00
|
|
|
// https://developer.android.com/reference/kotlin/org/json/package-summary
|
2023-04-30 17:50:55 +08:00
|
|
|
library("org.json", "org.json:json:20210307")
|
2023-07-10 11:25:17 +08:00
|
|
|
|
2023-11-22 19:19:51 +08:00
|
|
|
plugin("google.ksp", "com.google.devtools.ksp").version("1.9.20-1.0.14")
|
2023-07-10 11:25:17 +08:00
|
|
|
|
2023-10-27 16:11:14 +08:00
|
|
|
plugin("google.hilt", "com.google.dagger.hilt.android").version("2.48.1")
|
|
|
|
library("google.hilt.android", "com.google.dagger:hilt-android:2.48.1")
|
|
|
|
library(
|
|
|
|
"google.hilt.android.compiler",
|
|
|
|
"com.google.dagger:hilt-android-compiler:2.48.1"
|
|
|
|
)
|
2023-08-10 22:02:12 +08:00
|
|
|
library(
|
2023-11-22 19:19:51 +08:00
|
|
|
"androidx.hilt.navigation.compose", "androidx.hilt:hilt-navigation-compose:1.1.0"
|
2023-08-10 22:02:12 +08:00
|
|
|
)
|
2023-08-31 22:22:03 +08:00
|
|
|
|
2023-10-20 17:32:33 +08:00
|
|
|
// https://github.com/raamcosta/compose-destinations
|
2023-08-10 22:02:12 +08:00
|
|
|
library(
|
2023-11-22 19:19:51 +08:00
|
|
|
"destinations.core", "io.github.raamcosta.compose-destinations:core:1.9.55"
|
2023-08-10 22:02:12 +08:00
|
|
|
)
|
2023-11-22 19:19:51 +08:00
|
|
|
library("destinations.ksp", "io.github.raamcosta.compose-destinations:ksp:1.9.55")
|
2023-08-31 22:22:03 +08:00
|
|
|
|
2023-11-08 21:46:31 +08:00
|
|
|
library("coil.compose", "io.coil-kt:coil-compose:2.5.0")
|
|
|
|
library("coil.gif", "io.coil-kt:coil-gif:2.5.0")
|
|
|
|
|
2023-08-31 22:22:03 +08:00
|
|
|
// https://github.com/aclassen/ComposeReorderable
|
|
|
|
library("others.reorderable", "org.burnoutcrew.composereorderable:reorderable:0.9.6")
|
2022-10-09 10:51:27 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-04-30 17:50:55 +08:00
|
|
|
|