plugins { id 'com.android.library' id 'kotlin-android' } android { compileSdk rootProject.ext.android.compileSdk buildToolsVersion rootProject.ext.android.buildToolsVersion defaultConfig { minSdk rootProject.ext.android.minSdk targetSdk rootProject.ext.android.targetSdk externalNativeBuild { cmake { cppFlags '-std=c++11 -frtti -fexceptions -lz' abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64' } } ndk { // 设置支持的SO库架构 abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64' } } buildTypes { release { minifyEnabled rootProject.ext.module.minifyEnabled proguardFiles 'proguard-rules.pro' } } buildFeatures { buildConfig false } lintOptions { abortOnError false } compileOptions { kotlinOptions.freeCompilerArgs += ['-module-name', "cn.yyxx.eyuangame.core"] } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = "1.8" } } dependencies { compileOnly project(':library_base') compileOnly "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" compileOnly "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version" compileOnly "androidx.core:core-ktx:1.7.0" }