//
android {
//
compileSdkVersion 30
defaultConfig {
//
minSdkVersion 21
//
targetSdkVersion 30
versionName '1.0'
versionCode 10
}
// Java JDK 8
compileOptions {
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_1_8
}
// so
sourceSets {
main {
jniLibs.srcDirs = ['libs']
}
}
// Studio Build Variants
buildTypes {
//
debug {}
//
preview {}
//
release {}
}
//
lintOptions {
//
disable 'HardcodedText'
//
disable 'ContentDescription'
}
}
afterEvaluate {
// Module Library umeng Module
if (android.defaultConfig.applicationId == null && "umeng" != getName()) {
// BuildConfig.class
generateReleaseBuildConfig.enabled = false
generatePreviewBuildConfig.enabled = false
generateDebugBuildConfig.enabled = false
}
}
dependencies {
// libs jar aar
implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
// AndroidX https://github.com/androidx/androidx
implementation 'androidx.appcompat:appcompat:1.3.1'
// Material https://github.com/material-components/material-components-android
implementation 'com.google.android.material:material:1.4.0'
}