|
|
apply from: "${rootProject.rootDir}/buildCommon/commonLibConfig.gradle"
|
|
|
apply plugin: 'org.jetbrains.kotlin.android'
|
|
|
project.ext.setAppDefaultConfig project
|
|
|
|
|
|
android {
|
|
|
|
|
|
lintOptions {
|
|
|
checkReleaseBuilds false
|
|
|
// Or, if you prefer, you can continue to check for errors in release builds,
|
|
|
// but continue the build even when errors are found:
|
|
|
abortOnError false
|
|
|
}
|
|
|
defaultConfig {
|
|
|
applicationId "com.yinuo.safetywatcher"
|
|
|
|
|
|
ndk {
|
|
|
//设置支持的SO库架构(开发者可以根据需要,选择一个或多个平台的so)
|
|
|
abiFilters "arm64-v8a",'x86_64'
|
|
|
}
|
|
|
}
|
|
|
|
|
|
signingConfigs {
|
|
|
debug {
|
|
|
storeFile file(rootProject.ext.sign.keystore_path)
|
|
|
storePassword rootProject.ext.sign.keystore_pwd
|
|
|
keyAlias rootProject.ext.sign.keystore_alias
|
|
|
keyPassword rootProject.ext.sign.keystore_pwd
|
|
|
}
|
|
|
release {
|
|
|
storeFile file(rootProject.ext.sign.keystore_path)
|
|
|
storePassword rootProject.ext.sign.keystore_pwd
|
|
|
keyAlias rootProject.ext.sign.keystore_alias
|
|
|
keyPassword rootProject.ext.sign.keystore_pwd
|
|
|
}
|
|
|
}
|
|
|
|
|
|
viewBinding {
|
|
|
enabled = true
|
|
|
}
|
|
|
buildTypes {
|
|
|
debug {
|
|
|
signingConfig signingConfigs.debug
|
|
|
}
|
|
|
release {
|
|
|
signingConfig signingConfigs.release
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
repositories {
|
|
|
flatDir {
|
|
|
dirs 'libs'
|
|
|
}
|
|
|
mavenCentral()
|
|
|
}
|
|
|
|
|
|
dependencies {
|
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
|
|
implementation 'androidx.appcompat:appcompat:1.4.1'
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
|
|
|
implementation 'io.reactivex.rxjava2:rxjava:2.1.6'
|
|
|
implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
|
|
|
implementation 'com.github.bumptech.glide:glide:4.12.0'
|
|
|
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
|
|
|
implementation 'androidx.lifecycle:lifecycle-reactivestreams:2.4.1'
|
|
|
//libs
|
|
|
implementation project(':library-push')
|
|
|
implementation project(path: ':library-ijkplayer')
|
|
|
implementation project(path: ':library-serialPort')
|
|
|
implementation project(path: ':library-common')
|
|
|
implementation project(path: ':library-rtsp')
|
|
|
// implementation project(path: ':library-vlc')
|
|
|
// implementation(name: 'libvlc-3.0.0', ext: 'aar')
|
|
|
//添加excel
|
|
|
implementation rootProject.ext.dependencies.jxl
|
|
|
// 时间日期选择控件
|
|
|
implementation 'com.github.loper7:DateTimePicker:0.6.3'
|
|
|
//ijk
|
|
|
implementation 'tv.danmaku.ijk.media:ijkplayer-java:0.8.8'
|
|
|
// 添加retrofit依赖
|
|
|
implementation rootProject.ext.dependencies.retrofit
|
|
|
// 添加rxjava依赖
|
|
|
implementation rootProject.ext.dependencies.rxjava
|
|
|
// room
|
|
|
var room_version = "2.5.0"
|
|
|
implementation("androidx.room:room-runtime:$room_version")
|
|
|
annotationProcessor("androidx.room:room-compiler:$room_version")
|
|
|
kapt("androidx.room:room-compiler:$room_version")
|
|
|
implementation("androidx.room:room-ktx:$room_version")
|
|
|
|
|
|
implementation 'com.google.android.material:material:1.5.0'
|
|
|
annotationProcessor 'androidx.lifecycle:lifecycle-compiler:2.0.0'
|
|
|
|
|
|
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
|
|
|
|
|
|
implementation 'com.aill:AndroidSerialPort:1.0.8'
|
|
|
}
|