build.gradle 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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 : "GKa6qa12heALjEXZlAn1U3",
  12. GETUI_APP_KEY : "89WV8dfjRg6RlxEchgmnS6",
  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. //黄油刀
  48. implementation 'com.android.support:appcompat-v7:28.0.0'
  49. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  50. annotationProcessor "com.jakewharton:butterknife-compiler:$butterknifeVersion"
  51. //retrofit2
  52. implementation "com.squareup.retrofit2:retrofit:$retrofitVersion"
  53. implementation "com.squareup.okhttp3:logging-interceptor:$logginginterceptor"
  54. implementation "com.squareup.retrofit2:converter-gson:$retrofitVersion"
  55. implementation "com.squareup.retrofit2:adapter-rxjava2:$retrofitVersion"
  56. //rxjava
  57. implementation "io.reactivex.rxjava2:rxandroid:$rxandroidVersion"
  58. implementation "io.reactivex.rxjava2:rxjava:$rxjavaVersion"
  59. //noinspection GradleCompatible
  60. implementation "com.android.support:design:$designversion"
  61. implementation "com.android.support.constraint:constraint-layout:$constraintlayoutversion"
  62. //请将此处的 ${version} 替换成您当前相应的 SDK 版本号,如 2.14.0.0
  63. implementation "com.getui:sdk:$getuiversion"
  64. implementation "org.greenrobot:eventbus:$eventbusversion"
  65. implementation project(':serialportlib')
  66. implementation project(path: ':serialport-api')
  67. implementation("com.github.bumptech.glide:glide:4.8.0") {
  68. exclude group: "com.android.support"
  69. }
  70. //noinspection GradleCompatible
  71. implementation "com.android.support:support-fragment:$appcompatVersion"
  72. implementation "com.orhanobut:hawk:$hawkVersion"
  73. implementation "com.liulishuo.filedownloader:library:$filedownloader"
  74. implementation "org.greenrobot:greendao:$greendaoVersion"
  75. }