You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.3 KiB
64 lines
1.3 KiB
import com.android.build.gradle.LibraryExtension
|
|
|
|
buildscript {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath("com.android.tools.build:gradle:7.3.0")
|
|
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:2.1.0")
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
id("com.android.library")
|
|
id("org.jetbrains.kotlin.android")
|
|
}
|
|
|
|
// 配置android扩展
|
|
configure<LibraryExtension> {
|
|
namespace = "com.yunqiinnovation.volcano_speech"
|
|
compileSdkVersion(33)
|
|
|
|
defaultConfig {
|
|
minSdk = 21
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
|
|
sourceSets {
|
|
getByName("main") {
|
|
manifest.srcFile("src/main/AndroidManifest.xml")
|
|
java.srcDirs("src/main/kotlin")
|
|
}
|
|
}
|
|
|
|
// 添加lint选项
|
|
lintOptions {
|
|
isCheckReleaseBuilds = false
|
|
}
|
|
}
|
|
|
|
// 显式设置Kotlin JVM目标版本
|
|
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
kotlinOptions {
|
|
jvmTarget = "11"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// 添加火山引擎语音合成SDK
|
|
implementation("com.bytedance.speechengine:speechengine_tob:0.0.5")
|
|
}
|