Newer
Older
smartwellapp / app / build.gradle
apply plugin: 'com.android.application'

android {
    compileSdkVersion 30
    buildToolsVersion "30.0.3"
    defaultConfig {
        applicationId "com.casic.smartwellapp"
        //备案号sdk版本要求最低24
        minSdkVersion 24
        targetSdkVersion 30
        /**
         * 使用中版本如下:
         * versionCode 9
         * versionName "v1.1.3"
         *
         * 待测试上架版本:
         * versionCode 10
         * versionName "v1.1.5"
         * */
        versionCode 10
        versionName "v1.1.5"
        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
    }

    packagingOptions {
        exclude 'META-INF/ASL2.0'
        exclude 'META-INF/DEPENDENCIES.txt'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/notice.txt'
        exclude 'META-INF/license.txt'
        exclude 'META-INF/dependencies.txt'
        exclude 'META-INF/LGPL2.1'
        exclude 'META-INF/services/javax.annotation.processing.Processor'
        exclude 'META-INF/rxjava.properties'
//        exclude 'org/codehaus/jackson/impl/VERSION.txt'
//        exclude 'org/codehaus/jackson/map/VERSION.txt'
    }

    //导入aar包
    repositories {
        flatDir {
            dirs 'libs'
        }
    }
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    //移动警务授权sdk
    implementation files('libs/OauthLoginJar_V1.0.jar')
    //山海易绘离线地图
    implementation files('libs/EzMapServiceApiForAndroid-1.0.3.0.jar')
    implementation files('libs/EzRouterAPIForAndroid.v1.0.1.201206151022.jar')
    implementation files('libs/EzLicenseAPI4Android.jar')
    implementation files('libs/EzMapApiForAndnroid.3.1.0.2.jar')
    //移动警务备案号sdk
    implementation(name: 'libfriapkrecord-r1.0.1', ext: 'aar')
    implementation 'androidx.appcompat:appcompat:1.3.1'
    //Google申请手机相关权限官方库
    implementation group: 'pub.devrel', name: 'easypermissions', version: '3.0.0'
    //Google官方Json解析
    implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.6'
    //公共帮助类
    implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.1'
    //JTS拓扑套件是用于建模和操纵二维线性几何形状的API(地图导航需要)
    implementation group: 'com.vividsolutions', name: 'jts', version: '1.13'
    //Http工具类
    implementation 'com.lbx:xTools:2.1.2'
//    implementation group: 'org.bouncycastle', name: 'bcmail-jdk15on', version: '1.68'
    //阿里巴巴Json解析库
//    implementation group: 'com.alibaba', name: 'fastjson', version: '1.2.76'
    //Google提供的一套工具类
//    implementation group: 'com.google.guava', name: 'guava', version: '30.1.1-jre'
    //‎安卓SVG渲染库
//    implementation group: 'com.caverock', name: 'androidsvg', version: '1.4'
    //Json解析
//    implementation group: 'org.codehaus.jackson', name: 'jackson-core-lgpl', version: '1.9.13'
    //Jackson数据映射
//    implementation group: 'org.codehaus.jackson', name: 'jackson-mapper-lgpl', version: '1.9.13'
    //xml解析
//    implementation group: 'net.sf.kxml', name: 'kxml2', version: '2.3.0'
}