build.gradle.kts
1.47 KB
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
plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
}
android {
namespace = "com.tools.tts"
compileSdk = 35
defaultConfig {
minSdk = 21
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
}
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = "11"
}
}
dependencies {
implementation(fileTree("libs") { include("*.jar", "*.aar") })
implementation("androidx.core:core-ktx:1.15.0")
implementation("androidx.appcompat:appcompat:1.5.0")
implementation("org.tensorflow:tensorflow-lite:2.8.0")
implementation("org.tensorflow:tensorflow-lite-api:2.8.0")
implementation("org.tensorflow:tensorflow-lite-support:0.3.1")
implementation("org.tensorflow:tensorflow-lite-select-tf-ops:2.8.0")
// {
// exclude(group = "org.tensorflow", module = "tensorflow-lite")
// exclude(group = "org.tensorflow", module = "tensorflow-lite-api")
// exclude(group = "org.tensorflow", module = "tensorflow-lite-select-tf-ops")
// }
implementation("com.belerweb:pinyin4j:2.5.1")
}