apply plugin: 'com.android.application'
|
apply plugin: 'dagger.hilt.android.plugin'
|
apply plugin: "androidx.navigation.safeargs"
|
|
android {
|
compileSdkVersion build_versions.compile_sdk
|
buildToolsVersion build_versions.build_tools
|
|
defaultConfig {
|
applicationId "com.doumee.keyCabinet"
|
minSdkVersion build_versions.min_sdk
|
targetSdkVersion build_versions.target_sdk
|
versionCode 1
|
versionName "1.0.0"
|
|
//支持vectorDrawables矢量图
|
vectorDrawables.useSupportLibrary = true
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
/*javaCompileOptions {
|
annotationProcessorOptions {
|
arguments = [ AROUTER_MODULE_NAME : project.getName() ]
|
includeCompileClasspath = true
|
}
|
}*/
|
ndk {
|
moduleName "facesdk"
|
ldLibs "log"
|
abiFilters "armeabi-v7a","x86" // "armeabi", "x86", "arm64-v8a"
|
}
|
multiDexEnabled true
|
}
|
|
signingConfigs {
|
debug {
|
keyAlias 'android'
|
keyPassword 'android'
|
storeFile file('E:\\Android\\workspace\\CourseMachine\\app\\doumee.keystore')
|
storePassword 'android'
|
}
|
}
|
|
buildTypes {
|
release {
|
minifyEnabled false
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
manifestPlaceholders = [
|
network_security_config: "@xml/network_config"
|
]
|
}
|
debug {
|
minifyEnabled false
|
signingConfig signingConfigs.debug
|
manifestPlaceholders = [
|
network_security_config: "@xml/network_config_debug"
|
]
|
}
|
}
|
|
dataBinding {
|
enabled = true
|
}
|
|
compileOptions {
|
sourceCompatibility JavaVersion.VERSION_1_8
|
targetCompatibility JavaVersion.VERSION_1_8
|
}
|
|
packagingOptions {
|
exclude 'META-INF/DEPENDENCIES'
|
exclude 'META-INF/NOTICE'
|
exclude 'META-INF/LICENSE'
|
exclude 'META-INF/LICENSE.txt'
|
exclude 'META-INF/NOTICE.txt'
|
exclude 'META-INF/gradle/incremental.annotation.processors'
|
pickFirst 'lib/arm64-v8a/libserial_port.so'
|
pickFirst 'lib/armeabi-v7a/libserial_port.so'
|
pickFirst 'lib/x86_64/libserial_port.so'
|
pickFirst 'lib/x86/libserial_port.so'
|
}
|
|
//以下是为了找到android.os.SystemProperties这个隐藏的类
|
String SDK_DIR = System.getenv("ANDROID_SDK_HOME")
|
//("TAG", "SDK_DIR = " + SDK_DIR );
|
if(SDK_DIR == null) {
|
Properties props = new Properties()
|
props.load(new FileInputStream(project.rootProject.file("local.properties")))
|
SDK_DIR = props.get('sdk.dir');
|
}
|
dependencies {
|
compileOnly files("${SDK_DIR}/platforms/android-23/data/layoutlib.jar")
|
}
|
}
|
|
dependencies {
|
api fileTree(include: ['*.jar',"*.aar"], dir: 'libs')
|
implementation deps.support.appcompat
|
implementation deps.support.constraintlayout
|
implementation "com.google.android.material:material:1.3.0-alpha03"
|
implementation 'androidx.annotation:annotation:1.1.0'
|
//debugImplementation ("com.squareup.leakcanary:leakcanary-android:2.5")
|
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.2.0'
|
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'
|
|
implementation project(path: ':lib_coremodel')
|
implementation project(':facelibrary')
|
implementation project(path: ':datalibrary')
|
implementation project(path: ':settinglibrary')
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
implementation files('libs\\simple-xml-2.7.1.jar')
|
implementation files('libs\\API-20250310.jar')
|
testImplementation deps.test.junit
|
androidTestImplementation deps.test.ext_junit
|
androidTestImplementation deps.test.test_espresso
|
|
implementation deps.hilt.hilt_android
|
annotationProcessor deps.hilt.hilt_android_compiler
|
|
implementation deps.hilt.hilt_viewmodel
|
annotationProcessor deps.hilt.hilt_compiler
|
|
implementation deps.room.runtime
|
annotationProcessor deps.room.compiler
|
implementation deps.room.rxjava2
|
|
//implementation 'com.github.Shouheng88:compressor:latest-version'
|
//压缩图片
|
implementation "id.zelory:compressor:1.0.3"
|
//串口
|
implementation 'com.licheedev:android-serialport:2.1.3'
|
|
//二维码生成
|
implementation 'com.journeyapps:zxing-android-embedded:3.4.0'
|
api deps.other.dialog
|
//gif
|
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.19'
|
//轮播图
|
implementation 'com.bigkoo:convenientbanner:2.0.5'
|
}
|