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 "armeabi-v7a", "x86"//, "arm64-v8a", ,"arm64-v8a","x86_64"
//        }
    }

    viewBinding {
        enabled = true
    }
}


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(name: 'libuvccamera-release', ext: 'aar') {
        exclude module: 'support-v4'
        exclude module: 'appcompat-v7'
    }
    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')
    //添加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'

    implementation 'com.google.android.material:material:1.5.0'
    annotationProcessor 'androidx.lifecycle:lifecycle-compiler:2.0.0'
}