build.gradle 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. versionName "1.0.2"
  10. manifestPlaceholders = [
  11. //个推应用参数,请填写您申请的 GETUI_APP_ID,GETUI_APP_KEY,GETUI_APP_SECRET 值
  12. GETUI_APP_ID : "n4vsaIAi0eAbAkfBfqsUL7",
  13. GETUI_APP_KEY : "iUQlj7YC4c5Zb7CSuwQTP4",
  14. GETUI_APP_SECRET: "fLvPjR8hni7VFMkgjh8lx2"
  15. ]
  16. ndk {
  17. // 注意:这里需要添加项目所需 CPU 类型的最小集
  18. abiFilters "armeabi", "armeabi-v7a", "x86"
  19. }
  20. }
  21. sourceSets {
  22. main {
  23. jniLibs.srcDirs = ['libs']
  24. }
  25. }
  26. }
  27. ext {
  28. androidutilsVersion = '1.0.6'
  29. appcompatVersion = '27.1.1'
  30. butterknifeVersion = '8.4.0'
  31. retrofitVersion = '2.3.0'
  32. logginginterceptor = '3.9.1'
  33. rxjavaVersion = '2.1.11'
  34. rxandroidVersion = "2.0.2"
  35. getuiversion = "2.13.1.0"
  36. designversion = "27.1.1"
  37. constraintlayoutversion = "1.1.3"
  38. eventbusversion = "3.2.0"
  39. filedownloader = '1.7.6'
  40. hawkVersion = '2.0.1'
  41. greendaoVersion = '3.2.2'
  42. }
  43. dependencies {
  44. implementation fileTree(include: ['*.jar'], dir: 'libs')
  45. implementation "com.wuxiaolong.androidutils:androidutils:$androidutilsVersion"
  46. //noinspection GradleCompatible,GradleDependency
  47. implementation "com.android.support:appcompat-v7:$appcompatVersion"
  48. //黄油刀
  49. implementation 'com.android.support:appcompat-v7:28.0.0'
  50. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  51. annotationProcessor "com.jakewharton:butterknife-compiler:$butterknifeVersion"
  52. //retrofit2
  53. implementation "com.squareup.retrofit2:retrofit:$retrofitVersion"
  54. implementation "com.squareup.okhttp3:logging-interceptor:$logginginterceptor"
  55. implementation "com.squareup.retrofit2:converter-gson:$retrofitVersion"
  56. implementation "com.squareup.retrofit2:adapter-rxjava2:$retrofitVersion"
  57. //rxjava
  58. implementation "io.reactivex.rxjava2:rxandroid:$rxandroidVersion"
  59. implementation "io.reactivex.rxjava2:rxjava:$rxjavaVersion"
  60. //noinspection GradleCompatible
  61. implementation "com.android.support:design:$designversion"
  62. implementation "com.android.support.constraint:constraint-layout:$constraintlayoutversion"
  63. //请将此处的 ${version} 替换成您当前相应的 SDK 版本号,如 2.14.0.0
  64. implementation "com.getui:sdk:$getuiversion"
  65. implementation "org.greenrobot:eventbus:$eventbusversion"
  66. implementation project(':serialportlib')
  67. implementation project(path: ':serialport-api')
  68. implementation("com.github.bumptech.glide:glide:4.8.0") {
  69. exclude group: "com.android.support"
  70. }
  71. //noinspection GradleCompatible
  72. implementation "com.android.support:support-fragment:$appcompatVersion"
  73. implementation "com.orhanobut:hawk:$hawkVersion"
  74. implementation "com.liulishuo.filedownloader:library:$filedownloader"
  75. implementation "org.greenrobot:greendao:$greendaoVersion"
  76. // 下面各SDK根据宿主App是否使用相关业务按需引入。
  77. // OAID目前为目前国内市场主流的Android Q设备标识,可根据需要选择。
  78. // 友盟统计SDK
  79. implementation 'com.umeng.umsdk:common:9.1.0' // (必选)
  80. implementation 'com.umeng.umsdk:asms:1.1.3' // asms包依赖(必选)
  81. implementation 'com.umeng.umsdk:crash:0.0.4' // native crash包依赖(必选)
  82. }