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.
31 lines
800 B
31 lines
800 B
plugins {
|
|
id("com.android.library")
|
|
id("org.jetbrains.kotlin.android")
|
|
}
|
|
|
|
android {
|
|
namespace = "com.yunqiinnovation.sparkchain"
|
|
compileSdk = 35
|
|
|
|
defaultConfig {
|
|
minSdk = 21
|
|
consumerProguardFiles("consumer-rules.pro")
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "11"
|
|
}
|
|
|
|
sourceSets.getByName("main").jniLibs.srcDirs("src/main/jniLibs")
|
|
}
|
|
|
|
// 插件自己会打成 AAR,不能再 implementation 本地 AAR,否则 release 打包直接失败。
|
|
// SparkChain.aar / Codec.aar 已拆成 libs/*.jar、jniLibs 和 assets。
|
|
dependencies {
|
|
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
|
|
}
|
|
|