apply plugin: 'com.android.application' //apply plugin: 'com.jakewharton.butterknife' android { compileSdk rootProject.ext.compileSdkVersion defaultConfig { applicationId "com.bonait.bnframework" minSdk rootProject.ext.minSdkVersion targetSdk rootProject.ext.targetSdkVersion versionCode rootProject.ext.versionCode versionName rootProject.ext.versionName testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner' } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' resValue("bool","superAdminTest","false") } debug { resValue("string", "PORT_NUMBER", "8081") resValue("bool","superAdminTest","true") } } lintOptions { abortOnError false checkReleaseBuilds false } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } buildToolsVersion rootProject.ext.buildToolsVersion sourceSets { main { res.srcDirs = [ 'src/main/res/layout/datatab', 'src/main/res/layout/item', 'src/main/res/layout', 'src/main/res' ] } } } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') //测试相关 testImplementation 'junit:junit:4.13-beta-2' androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' //支持包 implementation 'com.google.android.material:material:1.0.0' implementation 'androidx.appcompat:appcompat:1.0.0' implementation 'androidx.recyclerview:recyclerview:1.0.0' implementation 'com.google.android.material:material:1.0.0' implementation 'androidx.cardview:cardview:1.0.0' implementation 'androidx.vectordrawable:vectordrawable:1.0.0' // QMUI框架 link: http://qmuiteam.com/android // 本App 搭建的基础框架,基本使用控件功能请看官网的功能列表 implementation 'com.qmuiteam:qmui:1.2.0' implementation 'com.qmuiteam:arch:0.3.1' // RecyclerAdapter框架 implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.46' // OKGO网络协议封装框架 implementation 'com.lzy.net:okgo:3.0.4' implementation 'com.google.code.gson:gson:2.8.0' // easyPermissions权限管理 implementation 'pub.devrel:easypermissions:2.0.1' // butterKnife黄油刀 implementation "com.jakewharton:butterknife:$rootProject.butterknife" annotationProcessor "com.jakewharton:butterknife-compiler:$rootProject.butterknife" // SuperTextView 属性控件 implementation 'com.github.lygttpod:SuperTextView:2.1.8' // android-saripaar 基于规则的Android表单验证库 implementation 'com.mobsandgeeks:android-saripaar:2.0.3' // litePal 数据库操作框架 implementation 'org.litepal.android:java:3.0.0' // SmartShow Toast框架,解决不同机型弹出方式缺陷问题 implementation 'com.github.the-pig-of-jungle.smart-show:toast:2.6.7' // debug调试app本地数据库 debugImplementation 'com.amitshekhar.android:debug-db:1.0.6' // log日志框架 implementation 'com.orhanobut:logger:2.2.0' // leak 内存泄漏检测 debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.3' releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.3' // Optional, if you use support library fragments: debugImplementation 'com.squareup.leakcanary:leakcanary-support-fragment:1.6.3' implementation files('libs/commons-codec-1.6.jar') //MQTT implementation files('libs\\org.eclipse.paho.android.service-1.1.1.jar') implementation files('libs\\org.eclipse.paho.client.mqttv3-1.2.5.jar') //Modbus implementation 'com.github.licheedev:Modbus4Android:2.0.2' //下载进度条 implementation 'com.github.Ccapton:Android-ColorfulProgressBar:1.0.5' //表格控件 implementation 'com.github.huangyanbin:SmartTable:2.2.0' //轮播图 implementation 'com.youth.banner:banner:1.4.10' //图片加载 implementation 'com.github.bumptech.glide:glide:4.11.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0' implementation 'com.yanzhenjie:permission:2.0.0-rc12' }