generated from ali/HarmonyTemplate
51 lines
1.2 KiB
Kotlin
51 lines
1.2 KiB
Kotlin
plugins {
|
|
alias(libs.plugins.android.library)
|
|
alias(libs.plugins.kotlin.compose)
|
|
alias(libs.plugins.hilt)
|
|
alias(libs.plugins.ksp)
|
|
}
|
|
|
|
android {
|
|
namespace = "sh.haven.feature.tunnel"
|
|
compileSdk = 37
|
|
|
|
defaultConfig {
|
|
minSdk = 26
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
buildFeatures {
|
|
compose = true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":core:ui"))
|
|
implementation(project(":core:data"))
|
|
implementation(project(":core:tunnel"))
|
|
implementation(project(":core:security"))
|
|
// OkHttp shared client is provided by :core:tunnel's Hilt module; we
|
|
// need the dep at compile time so the @Inject ctor parameter resolves.
|
|
implementation(libs.okhttp)
|
|
|
|
implementation(libs.activity.compose)
|
|
implementation(libs.hilt.android)
|
|
ksp(libs.hilt.compiler)
|
|
implementation(libs.hilt.navigation.compose)
|
|
implementation(libs.lifecycle.viewmodel)
|
|
|
|
testImplementation(libs.junit)
|
|
testImplementation(libs.mockk)
|
|
testImplementation(libs.coroutines.test)
|
|
}
|
|
|
|
kotlin {
|
|
compilerOptions {
|
|
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)
|
|
}
|
|
}
|