build.gradle 4.9 KB
plugins {
    id 'com.android.application'
    id 'kotlin-android'

}

android {
    compileSdkVersion 30
    buildToolsVersion "30.0.3"

    defaultConfig {
        applicationId "com.br_technology.securitytrain_master"
        minSdkVersion 21
        targetSdkVersion 30
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

        multiDexEnabled true

    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    kotlinOptions {
        jvmTarget = '1.8'
    }

    buildFeatures {
        viewBinding = true
    }

//    viewBinding {
//        enabled = true
//    }
}

//统一camera版本
configurations.all {
    resolutionStrategy.force 'androidx.camera:camera-core:1.0.1'
    resolutionStrategy.force 'androidx.camera:camera-camera2:1.0.1'
    resolutionStrategy.force 'androidx.camera:camera-lifecycle:1.0.1'
    resolutionStrategy.force 'androidx.camera:camera-view:1.0.0-alpha16'
}

dependencies {
    implementation 'androidx.viewpager2:viewpager2:1.0.0'
    implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
    implementation 'androidx.core:core-ktx:1.2.0'
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'com.google.android.material:material:1.1.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    testImplementation 'junit:junit:4.+'
    androidTestImplementation 'androidx.test.ext:junit:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
    implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
    //smartRefresh
    implementation 'com.scwang.smart:refresh-layout-kernel:2.0.1'
    implementation 'com.scwang.smart:refresh-header-classics:2.0.1'
    implementation 'com.scwang.smart:refresh-header-material:2.0.3'
    //经典刷新头
    implementation 'com.scwang.smart:refresh-footer-classics:2.0.1'
    implementation 'com.alibaba:fastjson:1.1.68.android'


    // liveData
    api "androidx.lifecycle:lifecycle-livedata-ktx:2.2.0"
    // viewModel
    api "androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0"
    api "androidx.lifecycle:lifecycle-extensions:2.2.0"
// App compat and UI things
    api 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1'
    //glide
    api 'com.github.bumptech.glide:glide:4.11.0'
    //retrofit
    api "com.squareup.retrofit2:retrofit:2.6.2"
    api "com.squareup.retrofit2:converter-gson:2.6.2"
    api "com.squareup.retrofit2:adapter-rxjava3:2.9.0"

    //rxjava rxandroid
    implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
    implementation "io.reactivex.rxjava3:rxjava:3.0.4"

    //recyclerview适配器
    implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4'

    //今日头条屏幕适配
    implementation 'me.jessyan:autosize:1.2.1'

    // 基础依赖包,必须要依赖
    implementation 'com.gyf.immersionbar:immersionbar:3.0.0'
    // fragment快速实现(可选)
    implementation 'com.gyf.immersionbar:immersionbar-components:3.0.0'
    // kotlin扩展(可选)
    implementation 'com.gyf.immersionbar:immersionbar-ktx:3.0.0'

    implementation 'com.kingja.loadsir:loadsir:1.3.8'

    implementation 'com.android.support:multidex:1.0.3'

    implementation 'io.github.youth5201314:banner:2.2.2'

    //完整版引入
    implementation 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer:v8.1.5-jitpack'
    //权限
    implementation 'com.github.tbruyelle:rxpermissions:0.12'

    // CameraX core library
    def camerax_version = '1.1.0-alpha07'
    implementation "androidx.camera:camera-core:$camerax_version"

    // CameraX Camera2 extensions
    implementation "androidx.camera:camera-camera2:$camerax_version"

    // CameraX Lifecycle library
    implementation "androidx.camera:camera-lifecycle:$camerax_version"

    // CameraX View class
    implementation 'androidx.camera:camera-view:1.0.0-alpha27'

    //拍照
    implementation 'io.github.lucksiege:pictureselector:v2.7.3-rc08'
    //条件选择器
    implementation 'com.contrarywind:Android-PickerView:4.1.9'

    implementation 'org.greenrobot:eventbus:3.2.0'
    api 'com.tencent.tbs:tbssdk:44136'
    // 地图库
    implementation 'com.tencent.map:tencent-map-vector-sdk:4.4.7'
    // 地图组件库,包括小车平移、点聚合等组件功能,详见开发指南。
    implementation 'com.tencent.map:sdk-utilities:1.0.6'
    implementation 'com.tencent.map.geolocation:TencentLocationSdk-openplatform:7.3.0'
    api 'org.jsoup:jsoup:1.11.3'

    //umeng 统计
    implementation 'com.umeng.umsdk:common:9.4.4'
    implementation 'com.umeng.umsdk:asms:1.4.1'
    implementation 'com.umeng.umsdk:apm:1.5.2'
}