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.
 
 
 

172 lines
5.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 rootProject.ext.applicationId
  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. multiDexEnabled true
  13. }
  14. buildTypes {
  15. release {
  16. minifyEnabled false
  17. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  18. resValue("bool","superAdminTest","false")
  19. }
  20. debug {
  21. resValue("string", "PORT_NUMBER", "8081")
  22. resValue("bool","superAdminTest","true")
  23. }
  24. }
  25. lintOptions {
  26. abortOnError false
  27. checkReleaseBuilds false
  28. }
  29. compileOptions {
  30. sourceCompatibility JavaVersion.VERSION_1_8
  31. targetCompatibility JavaVersion.VERSION_1_8
  32. }
  33. buildToolsVersion rootProject.ext.buildToolsVersion
  34. packagingOptions{
  35. exclude("META-INF/LICENSE.md")
  36. exclude("META-INF/LICENSE-notice.md")
  37. }
  38. sourceSets {
  39. main {
  40. res.srcDirs = [
  41. 'src/main/res/layout/datatab',
  42. 'src/main/res/layout/item',
  43. 'src/main/res/layout',
  44. 'src/main/res'
  45. ]
  46. }
  47. }
  48. }
  49. dependencies {
  50. implementation fileTree(include: ['*.jar'], dir: 'libs')
  51. implementation 'org.junit.jupiter:junit-jupiter:5.8.1'
  52. //测试相关
  53. testImplementation 'junit:junit:4.13-beta-2'
  54. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  55. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  56. implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
  57. //支持包
  58. implementation 'androidx.appcompat:appcompat:1.6.0-alpha01'
  59. implementation 'com.google.android.material:material:1.6.0-beta01'
  60. // implementation 'com.google.android.material:material:1.0.0'
  61. // implementation 'androidx.appcompat:appcompat:1.0.0'
  62. implementation 'androidx.recyclerview:recyclerview:1.2.1'
  63. //implementation 'com.google.android.material:material:1.0.0'
  64. implementation 'androidx.cardview:cardview:1.0.0'
  65. implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
  66. // QMUI框架 link: http://qmuiteam.com/android
  67. // 本App 搭建的基础框架,基本使用控件功能请看官网的功能列表
  68. // implementation 'com.qmuiteam:qmui:1.2.0'
  69. // implementation 'com.qmuiteam:arch:0.3.1'
  70. // implementation 'com.qmuiteam:qmui:1.2.0'
  71. implementation 'com.qmuiteam:arch:2.0.0-alpha10'
  72. implementation 'com.qmuiteam:qmui:2.0.0-alpha10'
  73. // RecyclerAdapter框架
  74. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.46'
  75. // OKGO网络协议封装框架
  76. implementation 'com.lzy.net:okgo:3.0.4'
  77. implementation 'com.google.code.gson:gson:2.8.0'
  78. // easyPermissions权限管理
  79. implementation 'pub.devrel:easypermissions:2.0.1'
  80. // butterKnife黄油刀
  81. implementation "com.jakewharton:butterknife:$rootProject.butterknife"
  82. annotationProcessor "com.jakewharton:butterknife-compiler:$rootProject.butterknife"
  83. // SuperTextView 属性控件
  84. implementation 'com.github.lygttpod:SuperTextView:2.1.8'
  85. // android-saripaar 基于规则的Android表单验证库
  86. implementation 'com.mobsandgeeks:android-saripaar:2.0.3'
  87. // litePal 数据库操作框架
  88. implementation 'org.litepal.android:java:3.0.0'
  89. // SmartShow Toast框架,解决不同机型弹出方式缺陷问题
  90. implementation 'com.github.the-pig-of-jungle.smart-show:toast:2.6.7'
  91. // debug调试app本地数据库
  92. debugImplementation 'com.amitshekhar.android:debug-db:1.0.6'
  93. // log日志框架
  94. implementation 'com.orhanobut:logger:2.2.0'
  95. // leak 内存泄漏检测
  96. // debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.3'
  97. // releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.3'
  98. // // Optional, if you use support library fragments:
  99. // debugImplementation 'com.squareup.leakcanary:leakcanary-support-fragment:1.6.3'
  100. // implementation files('libs/commons-codec-1.6.jar')
  101. //USB串口
  102. implementation 'com.github.cl-6666:serialPort:V3.1.3'
  103. //Modbus
  104. implementation 'com.github.licheedev:Modbus4Android:2.0.2'
  105. //下载进度条
  106. implementation 'com.github.Ccapton:Android-ColorfulProgressBar:1.0.5'
  107. //表格控件
  108. implementation 'com.github.huangyanbin:SmartTable:2.2.0'
  109. //轮播图
  110. implementation 'com.youth.banner:banner:1.4.10'
  111. //图片加载
  112. implementation 'com.github.bumptech.glide:glide:4.11.0'
  113. annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
  114. implementation 'com.yanzhenjie:permission:2.0.0-rc12'
  115. //滑动快
  116. implementation 'io.github.litao0621:nifty-slider:1.4.0'
  117. //阿里云文件上传
  118. implementation 'com.aliyun.dpa:oss-android-sdk:2.5.0'
  119. //轻量级sw
  120. implementation 'com.github.zcweng:switch-button:0.0.3@aar'
  121. //阿里云IOT
  122. implementation ('com.aliyun.alink.linksdk:lp-iot-linkkit:1.7.3.2')
  123. //MQTT
  124. // implementation files('libs\\org.eclipse.paho.android.service-1.1.1.jar')
  125. // implementation files('libs\\org.eclipse.paho.client.mqttv3-1.2.5.jar')
  126. //基类
  127. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4'
  128. implementation 'com.contrarywind:Android-PickerView:3.2.6'
  129. //曲线拟合方程式。
  130. implementation 'org.apache.commons:commons-math3:3.6.1'
  131. }