android小炒设备
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

141 lines
4.7 KiB

  1. apply plugin: 'com.android.application'
  2. //apply plugin: 'com.jakewharton.butterknife'
  3. android {
  4. compileSdk rootProject.ext.compileSdkVersion
  5. defaultConfig {
  6. applicationId "com.bonait.bnframework"
  7. minSdk rootProject.ext.minSdkVersion
  8. targetSdk rootProject.ext.targetSdkVersion
  9. versionCode rootProject.ext.versionCode
  10. versionName rootProject.ext.versionName
  11. testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
  12. }
  13. buildTypes {
  14. release {
  15. minifyEnabled false
  16. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  17. resValue("bool","superAdminTest","false")
  18. }
  19. debug {
  20. resValue("string", "PORT_NUMBER", "8081")
  21. resValue("bool","superAdminTest","true")
  22. }
  23. }
  24. lintOptions {
  25. abortOnError false
  26. checkReleaseBuilds false
  27. }
  28. compileOptions {
  29. sourceCompatibility JavaVersion.VERSION_1_8
  30. targetCompatibility JavaVersion.VERSION_1_8
  31. }
  32. buildToolsVersion rootProject.ext.buildToolsVersion
  33. sourceSets {
  34. main {
  35. res.srcDirs = [
  36. 'src/main/res/layout/datatab',
  37. 'src/main/res/layout/item',
  38. 'src/main/res/layout',
  39. 'src/main/res'
  40. ]
  41. }
  42. }
  43. }
  44. dependencies {
  45. implementation fileTree(include: ['*.jar'], dir: 'libs')
  46. //测试相关
  47. testImplementation 'junit:junit:4.13-beta-2'
  48. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  49. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  50. implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
  51. //支持包
  52. implementation 'androidx.appcompat:appcompat:1.6.0-alpha01'
  53. implementation 'com.google.android.material:material:1.6.0-beta01'
  54. // implementation 'com.google.android.material:material:1.0.0'
  55. // implementation 'androidx.appcompat:appcompat:1.0.0'
  56. implementation 'androidx.recyclerview:recyclerview:1.2.1'
  57. //implementation 'com.google.android.material:material:1.0.0'
  58. implementation 'androidx.cardview:cardview:1.0.0'
  59. implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
  60. // QMUI框架 link: http://qmuiteam.com/android
  61. // 本App 搭建的基础框架,基本使用控件功能请看官网的功能列表
  62. implementation 'com.qmuiteam:qmui:1.2.0'
  63. implementation 'com.qmuiteam:arch:0.3.1'
  64. // RecyclerAdapter框架
  65. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.46'
  66. // OKGO网络协议封装框架
  67. implementation 'com.lzy.net:okgo:3.0.4'
  68. implementation 'com.google.code.gson:gson:2.8.0'
  69. // easyPermissions权限管理
  70. implementation 'pub.devrel:easypermissions:2.0.1'
  71. // butterKnife黄油刀
  72. implementation "com.jakewharton:butterknife:$rootProject.butterknife"
  73. annotationProcessor "com.jakewharton:butterknife-compiler:$rootProject.butterknife"
  74. // SuperTextView 属性控件
  75. implementation 'com.github.lygttpod:SuperTextView:2.1.8'
  76. // android-saripaar 基于规则的Android表单验证库
  77. implementation 'com.mobsandgeeks:android-saripaar:2.0.3'
  78. // litePal 数据库操作框架
  79. implementation 'org.litepal.android:java:3.0.0'
  80. // SmartShow Toast框架,解决不同机型弹出方式缺陷问题
  81. implementation 'com.github.the-pig-of-jungle.smart-show:toast:2.6.7'
  82. // debug调试app本地数据库
  83. debugImplementation 'com.amitshekhar.android:debug-db:1.0.6'
  84. // log日志框架
  85. implementation 'com.orhanobut:logger:2.2.0'
  86. // leak 内存泄漏检测
  87. // debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.3'
  88. // releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.3'
  89. // // Optional, if you use support library fragments:
  90. // debugImplementation 'com.squareup.leakcanary:leakcanary-support-fragment:1.6.3'
  91. // implementation files('libs/commons-codec-1.6.jar')
  92. //MQTT
  93. implementation files('libs\\org.eclipse.paho.android.service-1.1.1.jar')
  94. implementation files('libs\\org.eclipse.paho.client.mqttv3-1.2.5.jar')
  95. //Modbus
  96. implementation 'com.github.licheedev:Modbus4Android:2.0.2'
  97. //下载进度条
  98. implementation 'com.github.Ccapton:Android-ColorfulProgressBar:1.0.5'
  99. //表格控件
  100. implementation 'com.github.huangyanbin:SmartTable:2.2.0'
  101. //轮播图
  102. implementation 'com.youth.banner:banner:1.4.10'
  103. //图片加载
  104. implementation 'com.github.bumptech.glide:glide:4.11.0'
  105. annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
  106. implementation 'com.yanzhenjie:permission:2.0.0-rc12'
  107. //滑动快
  108. implementation 'io.github.litao0621:nifty-slider:1.4.0'
  109. }