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.
 
 
 

108 lines
4.0 KiB

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