build.gradle 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 28
  4. defaultConfig {
  5. applicationId "com.sunzee.cleanMachine"
  6. minSdkVersion 14
  7. targetSdkVersion 28
  8. versionCode 1
  9. manifestPlaceholders = [
  10. //个推应用参数,请填写您申请的 GETUI_APP_ID,GETUI_APP_KEY,GETUI_APP_SECRET 值
  11. GETUI_APP_ID : "n4vsaIAi0eAbAkfBfqsUL7",
  12. GETUI_APP_KEY : "iUQlj7YC4c5Zb7CSuwQTP4",
  13. GETUI_APP_SECRET: "fLvPjR8hni7VFMkgjh8lx2"
  14. ]
  15. ndk {
  16. // 注意:这里需要添加项目所需 CPU 类型的最小集
  17. abiFilters "armeabi", "armeabi-v7a", "x86"
  18. }
  19. }
  20. sourceSets {
  21. main {
  22. jniLibs.srcDirs = ['libs']
  23. }
  24. }
  25. }
  26. ext {
  27. androidutilsVersion = '1.0.6'
  28. appcompatVersion = '27.1.1'
  29. butterknifeVersion = '8.4.0'
  30. retrofitVersion = '2.3.0'
  31. logginginterceptor = '3.9.1'
  32. rxjavaVersion = '2.1.11'
  33. rxandroidVersion = "2.0.2"
  34. getuiversion = "2.13.1.0"
  35. designversion = "27.1.1"
  36. constraintlayoutversion = "1.1.3"
  37. eventbusversion = "3.2.0"
  38. filedownloader = '1.7.6'
  39. hawkVersion = '2.0.1'
  40. greendaoVersion = '3.2.2'
  41. }
  42. dependencies {
  43. implementation fileTree(include: ['*.jar'], dir: 'libs')
  44. implementation "com.wuxiaolong.androidutils:androidutils:$androidutilsVersion"
  45. //noinspection GradleCompatible,GradleDependency
  46. implementation "com.android.support:appcompat-v7:$appcompatVersion"
  47. implementation 'com.tencent.bugly:crashreport:latest.release'
  48. //其中latest.release指代最新Bugly SDK版本号,也可以指定明确的版本号,例如2.1.9
  49. implementation 'com.tencent.bugly:nativecrashreport:latest.release'
  50. //其中latest.release指代最新Bugly NDK版本号,也可以指定明确的版本号,例如3.0
  51. //黄油刀
  52. implementation 'com.android.support:appcompat-v7:28.0.0'
  53. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  54. annotationProcessor "com.jakewharton:butterknife-compiler:$butterknifeVersion"
  55. //retrofit2
  56. implementation "com.squareup.retrofit2:retrofit:$retrofitVersion"
  57. implementation "com.squareup.okhttp3:logging-interceptor:$logginginterceptor"
  58. implementation "com.squareup.retrofit2:converter-gson:$retrofitVersion"
  59. implementation "com.squareup.retrofit2:adapter-rxjava2:$retrofitVersion"
  60. //rxjava
  61. implementation "io.reactivex.rxjava2:rxandroid:$rxandroidVersion"
  62. implementation "io.reactivex.rxjava2:rxjava:$rxjavaVersion"
  63. //noinspection GradleCompatible
  64. implementation "com.android.support:design:$designversion"
  65. implementation "com.android.support.constraint:constraint-layout:$constraintlayoutversion"
  66. //请将此处的 ${version} 替换成您当前相应的 SDK 版本号,如 2.14.0.0
  67. implementation "com.getui:sdk:$getuiversion"
  68. implementation "org.greenrobot:eventbus:$eventbusversion"
  69. implementation project(':serialportlib')
  70. implementation project(path: ':serialport-api')
  71. implementation("com.github.bumptech.glide:glide:4.8.0") {
  72. exclude group: "com.android.support"
  73. }
  74. //noinspection GradleCompatible
  75. implementation "com.android.support:support-fragment:$appcompatVersion"
  76. implementation "com.orhanobut:hawk:$hawkVersion"
  77. implementation "com.liulishuo.filedownloader:library:$filedownloader"
  78. implementation "org.greenrobot:greendao:$greendaoVersion"
  79. }