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.
62 lines
1.6 KiB
62 lines
1.6 KiB
plugins {
|
|
// Android Library 插件
|
|
id("com.android.library")
|
|
// Kotlin Android 插件
|
|
id("org.jetbrains.kotlin.android")
|
|
id("com.github.johnrengelman.shadow") version "8.1.1"
|
|
}
|
|
|
|
// 添加mavenLocal()仓库
|
|
repositories {
|
|
mavenLocal()
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
|
|
android {
|
|
// 命名空间,对应你插件的包名(需与代码内包名保持一致)
|
|
namespace = "com.yunqiinnovation.jl_opus"
|
|
|
|
// 目标 SDK 版本
|
|
compileSdk = 35
|
|
|
|
defaultConfig {
|
|
// 最低 SDK 版本
|
|
minSdk = 21
|
|
targetSdk = 35
|
|
}
|
|
|
|
// Java 语言级别兼容配置
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
|
|
// Kotlin 语言级别
|
|
kotlinOptions {
|
|
jvmTarget = "11"
|
|
}
|
|
|
|
// 添加packaging配置,排除冲突文件
|
|
packaging {
|
|
resources {
|
|
excludes.add("META-INF/DEPENDENCIES")
|
|
excludes.add("META-INF/LICENSE")
|
|
excludes.add("META-INF/LICENSE.txt")
|
|
excludes.add("META-INF/license.txt")
|
|
excludes.add("META-INF/NOTICE")
|
|
excludes.add("META-INF/NOTICE.txt")
|
|
excludes.add("META-INF/notice.txt")
|
|
excludes.add("META-INF/*.kotlin_module")
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.10")
|
|
implementation("androidx.annotation:annotation:1.5.0")
|
|
implementation("androidx.core:core-ktx:1.9.0")
|
|
// 使用从本地Maven仓库引用的AAR依赖
|
|
implementation("com.jieli.audio:jl_audio_decode:2.0.0")
|
|
}
|
|
|
|
|