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.
79 lines
1.7 KiB
79 lines
1.7 KiB
group = "com.yunqiinnovation.qq_music"
|
|
version = "1.0-SNAPSHOT"
|
|
|
|
buildscript {
|
|
ext.kotlin_version = "2.1.0"
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
classpath("com.android.tools.build:gradle:8.7.3")
|
|
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
// 添加本地AAR仓库
|
|
flatDir {
|
|
dirs 'libs'
|
|
}
|
|
}
|
|
}
|
|
|
|
apply plugin: "com.android.library"
|
|
apply plugin: "kotlin-android"
|
|
|
|
android {
|
|
namespace = "com.yunqiinnovation.qq_music"
|
|
|
|
compileSdk = 35
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = JavaVersion.VERSION_11
|
|
}
|
|
|
|
// 合并后的 sourceSets 配置
|
|
sourceSets {
|
|
main {
|
|
java.srcDirs += "src/main/kotlin"
|
|
aidl.srcDirs = ['src/main/aidl']
|
|
}
|
|
test {
|
|
java.srcDirs += "src/test/kotlin"
|
|
}
|
|
}
|
|
|
|
defaultConfig {
|
|
minSdk = 21
|
|
}
|
|
|
|
buildFeatures {
|
|
aidl true
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation("org.jetbrains.kotlin:kotlin-test")
|
|
testImplementation("org.mockito:mockito-core:5.0.0")
|
|
|
|
// 添加AndroidX AppCompat依赖
|
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
|
|
|
// 添加 Gson 依赖
|
|
implementation 'com.google.code.gson:gson:2.10.1'
|
|
|
|
// 添加 ConstraintLayout 依赖
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
|
|
|
api(name: 'qqmusic-innovation-aidl-api-sdk-1.0.26', ext: 'aar')
|
|
}
|
|
}
|
|
|