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.
 
 
 

195 lines
6.6 KiB

  1. import java.text.DateFormat
  2. import java.text.SimpleDateFormat
  3. apply plugin: 'com.android.application'
  4. //apply plugin: 'com.jakewharton.butterknife'
  5. def releaseTime() {
  6. DateFormat df = new SimpleDateFormat("yyyyMMddHHmm")
  7. return df.format(Calendar.getInstance(Locale.CHINA).getTime())
  8. }
  9. android {
  10. compileSdk rootProject.ext.compileSdkVersion
  11. defaultConfig {
  12. applicationId rootProject.ext.applicationId
  13. minSdk rootProject.ext.minSdkVersion
  14. targetSdk rootProject.ext.targetSdkVersion
  15. versionCode rootProject.ext.versionCode
  16. versionName rootProject.ext.versionName
  17. testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
  18. multiDexEnabled true
  19. ndk {
  20. // 设置支持的SO库架构
  21. abiFilters 'armeabi' //, 'x86', 'armeabi-v7a', 'x86_64', 'arm64-v8a'
  22. }
  23. }
  24. buildTypes {
  25. release {
  26. minifyEnabled false
  27. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  28. resValue("bool","superAdminTest","false")
  29. }
  30. debug {
  31. resValue("string", "PORT_NUMBER", "8081")
  32. resValue("bool","superAdminTest","true")
  33. }
  34. }
  35. lintOptions {
  36. abortOnError false
  37. checkReleaseBuilds false
  38. }
  39. compileOptions {
  40. coreLibraryDesugaringEnabled true
  41. sourceCompatibility JavaVersion.VERSION_1_8
  42. targetCompatibility JavaVersion.VERSION_1_8
  43. }
  44. buildToolsVersion rootProject.ext.buildToolsVersion
  45. sourceSets {
  46. main {
  47. res.srcDirs = [
  48. 'src/main/res/layout/datatab',
  49. 'src/main/res/layout/item',
  50. 'src/main/res/layout',
  51. 'src/main/res'
  52. ]
  53. }
  54. }
  55. applicationVariants.all { variant ->
  56. variant.outputs.all {
  57. outputFileName = "boluo-peiliaobatai-v${defaultConfig.versionCode}-${releaseTime()}"+"-unsigned-${variant.name}.apk"
  58. }
  59. }
  60. buildFeatures {
  61. viewBinding = true
  62. }
  63. }
  64. dependencies {
  65. implementation fileTree(include: ['*.jar'], dir: 'libs')
  66. implementation files('libs\\PC_RFID.jar')
  67. implementation files('libs\\sdkapi.jar')
  68. compileOnly files('libs/sdkapi.jar')
  69. //测试相关
  70. testImplementation 'junit:junit:4.13-beta-2'
  71. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  72. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  73. implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
  74. //支持包
  75. implementation 'androidx.appcompat:appcompat:1.6.0-alpha01'
  76. implementation 'com.google.android.material:material:1.6.0-beta01'
  77. // implementation 'com.google.android.material:material:1.0.0'
  78. // implementation 'androidx.appcompat:appcompat:1.0.0'
  79. implementation 'androidx.recyclerview:recyclerview:1.2.1'
  80. //implementation 'com.google.android.material:material:1.0.0'
  81. implementation 'androidx.cardview:cardview:1.0.0'
  82. implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
  83. // QMUI框架 link: http://qmuiteam.com/android
  84. // 本App 搭建的基础框架,基本使用控件功能请看官网的功能列表
  85. // implementation 'com.qmuiteam:qmui:1.2.0'
  86. // implementation 'com.qmuiteam:arch:0.3.1'
  87. // implementation 'com.qmuiteam:qmui:1.2.0'
  88. implementation 'com.qmuiteam:arch:2.0.0-alpha10'
  89. implementation 'com.qmuiteam:qmui:2.0.0-alpha10'
  90. // RecyclerAdapter框架
  91. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.46'
  92. // OKGO网络协议封装框架
  93. implementation 'com.lzy.net:okgo:3.0.4'
  94. implementation 'com.google.code.gson:gson:2.8.0'
  95. // easyPermissions权限管理
  96. implementation 'pub.devrel:easypermissions:2.0.1'
  97. // butterKnife黄油刀
  98. implementation "com.jakewharton:butterknife:$rootProject.butterknife"
  99. annotationProcessor "com.jakewharton:butterknife-compiler:$rootProject.butterknife"
  100. // SuperTextView 属性控件
  101. implementation 'com.github.lygttpod:SuperTextView:2.1.8'
  102. // android-saripaar 基于规则的Android表单验证库
  103. implementation 'com.mobsandgeeks:android-saripaar:2.0.3'
  104. // litePal 数据库操作框架
  105. implementation 'org.litepal.android:java:3.0.0'
  106. // SmartShow Toast框架,解决不同机型弹出方式缺陷问题
  107. implementation 'com.github.the-pig-of-jungle.smart-show:toast:2.6.7'
  108. // debug调试app本地数据库
  109. debugImplementation 'com.amitshekhar.android:debug-db:1.0.6'
  110. // log日志框架
  111. implementation 'com.orhanobut:logger:2.2.0'
  112. //leak 内存泄漏检测
  113. // debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.0-alpha-3'
  114. //Modbus
  115. implementation 'com.github.licheedev:Modbus4Android:2.0.2'
  116. //下载进度条
  117. implementation 'com.github.Ccapton:Android-ColorfulProgressBar:1.0.5'
  118. //表格控件
  119. implementation 'com.github.huangyanbin:SmartTable:2.2.0'
  120. //轮播图
  121. implementation 'com.youth.banner:banner:1.4.10'
  122. //图片加载
  123. implementation 'com.github.bumptech.glide:glide:4.11.0'
  124. annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
  125. implementation 'com.yanzhenjie:permission:2.0.0-rc12'
  126. //滑动快
  127. implementation 'io.github.litao0621:nifty-slider:1.4.0'
  128. //阿里云文件上传
  129. implementation 'com.aliyun.dpa:oss-android-sdk:2.5.0'
  130. //轻量级sw
  131. implementation 'com.github.zcweng:switch-button:0.0.3@aar'
  132. //阿里云IOT
  133. implementation ('com.aliyun.alink.linksdk:lp-iot-linkkit:1.7.3.2')
  134. //MQTT
  135. // implementation files('libs\\org.eclipse.paho.android.service-1.1.1.jar')
  136. // implementation files('libs\\org.eclipse.paho.client.mqttv3-1.2.5.jar')
  137. //基类
  138. // implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4'
  139. coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.6'
  140. implementation 'com.contrarywind:Android-PickerView:3.2.6'
  141. implementation 'com.github.xingshuangs:iot-communication:1.5.0'
  142. //日志工具 可定位代码行数
  143. api 'com.apkfuns.logutils:library:1.7.5'
  144. //腾讯bugly
  145. //sdk地址 https://bugly.qq.com/docs/user-guide/instruction-manual-android/?v=1.0.0
  146. implementation 'com.tencent.bugly:crashreport:latest.release' //其中latest.release指代最新Bugly SDK版本号,也可以指定明确的版本号,例如4.0.3
  147. api 'org.greenrobot:eventbus:3.1.1'
  148. api 'com.github.bumptech.glide:glide:4.16.0'
  149. annotationProcessor 'com.github.bumptech.glide:compiler:4.16.0'
  150. api "com.github.bumptech.glide:okhttp3-integration:4.16.0"
  151. api 'pl.droidsonroids.gif:android-gif-drawable:1.2.19'
  152. }