apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
android {
compileOptions {
sourceCompatibility = rootProject.ext.android.COMPILE_JAVA_VERSION
targetCompatibility = rootProject.ext.android.COMPILE_JAVA_VERSION
}
compileSdkVersion rootProject.ext.android.COMPILE_SDK_VERSION
buildToolsVersion rootProject.ext.android.BUILD_TOOLS_VERSION
ndkVersion rootProject.ext.android.NDK_VERSION
defaultConfig {
applicationId 'com.besmart.hello'
minSdkVersion rootProject.ext.android.MIN_SDK_VERSION
targetSdkVersion rootProject.ext.android.TARGET_SDK_VERSION
versionCode rootProject.ext.android.VERSION_CODE
versionName rootProject.ext.android.VERSION_NAME
testInstrumentationRunner rootProject.ext.testInstrumentationRunner
consumerProguardFiles rootProject.ext.consumerProguardFiles
rootProject.ext.android.ABI_FILTERS.each({
ndk.abiFilters(it) // 进行不同的系统架构适配
})
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
externalNativeBuild {
cmake {
version rootProject.ext.android.CMAKE_VERSION
path "src/main/cpp/CMakeLists.txt"
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation rootProject.ext.dependencies.uiImplementation
implementation rootProject.ext.dependencies.kotlinImplementation
implementation rootProject.ext.dependencies.commonImplementation
androidTestImplementation rootProject.ext.dependencies.androidTestImplementation
testImplementation rootProject.ext.dependencies.testImplementation
implementation project(path: ':components')
// implementation project(path: ':wave')
}
评论