mirror of
https://github.com/whitechi73/OpenShamrock.git
synced 2024-08-14 13:12:17 +08:00
108 lines
3.7 KiB
Plaintext
108 lines
3.7 KiB
Plaintext
plugins {
|
||
id("com.android.library")
|
||
id("org.jetbrains.kotlin.android")
|
||
//id("io.realm.kotlin")
|
||
id("kotlin-kapt")
|
||
kotlin("plugin.serialization") version "1.8.10"
|
||
}
|
||
|
||
android {
|
||
namespace = "moe.fuqiuluo.xposed"
|
||
compileSdk = 34
|
||
|
||
defaultConfig {
|
||
minSdk = 27
|
||
|
||
consumerProguardFiles("consumer-rules.pro")
|
||
@Suppress("UnstableApiUsage")
|
||
externalNativeBuild {
|
||
cmake {
|
||
cppFlags += ""
|
||
}
|
||
}
|
||
}
|
||
|
||
buildFeatures {
|
||
aidl = true
|
||
}
|
||
buildTypes {
|
||
release {
|
||
isMinifyEnabled = true
|
||
proguardFiles(
|
||
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||
"proguard-rules.pro"
|
||
)
|
||
}
|
||
}
|
||
compileOptions {
|
||
sourceCompatibility = JavaVersion.VERSION_17
|
||
targetCompatibility = JavaVersion.VERSION_17
|
||
}
|
||
kotlinOptions {
|
||
jvmTarget = "17"
|
||
}
|
||
externalNativeBuild {
|
||
cmake {
|
||
path = file("src/main/cpp/CMakeLists.txt")
|
||
version = "3.22.1"
|
||
}
|
||
}
|
||
}
|
||
|
||
dependencies {
|
||
compileOnly ("de.robv.android.xposed:api:82")
|
||
compileOnly (project(":qqinterface"))
|
||
|
||
implementation("androidx.core:core-ktx:1.9.0")
|
||
implementation("androidx.appcompat:appcompat:1.6.1")
|
||
implementation("com.google.android.material:material:1.9.0")
|
||
|
||
// 业务场景不适配
|
||
//implementation("io.realm.kotlin:library-base:1.11.0")
|
||
//implementation("io.realm.kotlin:library-sync:1.11.0")
|
||
|
||
val ktorVersion = "2.3.3"
|
||
//implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1")
|
||
implementation("io.github.xn32:json5k:0.3.0")
|
||
implementation("org.jetbrains.kotlinx:kotlinx-io-jvm:0.1.16")
|
||
implementation("io.ktor:ktor-server-core:$ktorVersion")
|
||
implementation("io.ktor:ktor-server-host-common:$ktorVersion")
|
||
implementation("io.ktor:ktor-server-status-pages:$ktorVersion")
|
||
implementation("io.ktor:ktor-server-netty:$ktorVersion")
|
||
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktorVersion")
|
||
implementation("io.ktor:ktor-server-content-negotiation:$ktorVersion")
|
||
implementation("io.ktor:ktor-client-core:$ktorVersion")
|
||
implementation("io.ktor:ktor-client-cio:$ktorVersion")
|
||
implementation("io.ktor:ktor-client-content-negotiation:$ktorVersion")
|
||
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktorVersion")
|
||
//implementation("io.ktor:ktor-serialization-kotlinx-protobuf:$ktorVersion")
|
||
implementation("io.ktor:ktor-network-tls-certificates:$ktorVersion")
|
||
|
||
/**
|
||
* 为什么不用Ktor的WebSocket呢?
|
||
* 因为那玩意使用了安卓9才有的Java API
|
||
*/
|
||
implementation("org.java-websocket:Java-WebSocket:1.5.4")
|
||
|
||
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
|
||
implementation("androidx.exifinterface:exifinterface:1.3.6")
|
||
implementation("com.google.protobuf:protobuf-java:3.24.0")
|
||
|
||
val roomVersion = "2.5.0"
|
||
implementation("androidx.room:room-runtime:$roomVersion")
|
||
//annotationProcessor("androidx.room:room-compiler:$roomVersion")
|
||
// To use Kotlin annotation processing tool (kapt)
|
||
kapt("androidx.room:room-compiler:$roomVersion")
|
||
// To use Kotlin Symbol Processing (KSP)
|
||
//ksp("androidx.room:room-compiler:$roomVersion")
|
||
// optional - Kotlin Extensions and Coroutines support for Room
|
||
implementation("androidx.room:room-ktx:$roomVersion")
|
||
|
||
testImplementation("junit:junit:4.13.2")
|
||
androidTestImplementation("androidx.test.ext:junit:1.1.5")
|
||
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
|
||
androidTestImplementation(platform("androidx.compose:compose-bom:2023.06.01"))
|
||
androidTestImplementation("androidx.compose.ui:ui-test-junit4")
|
||
}
|
||
|