build.gradle 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. testImplementation 'junit:junit:4.12'
  52. annotationProcessor "com.jakewharton:butterknife-compiler:$butterknifeVersion"
  53. //retrofit2
  54. implementation "com.squareup.retrofit2:retrofit:$retrofitVersion"
  55. implementation "com.squareup.okhttp3:logging-interceptor:$logginginterceptor"
  56. implementation "com.squareup.retrofit2:converter-gson:$retrofitVersion"
  57. implementation "com.squareup.retrofit2:adapter-rxjava2:$retrofitVersion"
  58. //rxjava
  59. implementation "io.reactivex.rxjava2:rxandroid:$rxandroidVersion"
  60. implementation "io.reactivex.rxjava2:rxjava:$rxjavaVersion"
  61. //noinspection GradleCompatible
  62. implementation "com.android.support:design:$designversion"
  63. implementation "com.android.support.constraint:constraint-layout:$constraintlayoutversion"
  64. //请将此处的 ${version} 替换成您当前相应的 SDK 版本号,如 2.14.0.0
  65. implementation "com.getui:sdk:$getuiversion"
  66. implementation "org.greenrobot:eventbus:$eventbusversion"
  67. implementation project(':serialportlib')
  68. implementation project(path: ':serialport-api')
  69. implementation("com.github.bumptech.glide:glide:4.8.0") {
  70. exclude group: "com.android.support"
  71. }
  72. //noinspection GradleCompatible
  73. implementation "com.android.support:support-fragment:$appcompatVersion"
  74. implementation "com.orhanobut:hawk:$hawkVersion"
  75. implementation "com.liulishuo.filedownloader:library:$filedownloader"
  76. implementation "org.greenrobot:greendao:$greendaoVersion"
  77. // 下面各SDK根据宿主App是否使用相关业务按需引入。
  78. // OAID目前为目前国内市场主流的Android Q设备标识,可根据需要选择。
  79. // 友盟统计SDK
  80. implementation 'com.umeng.umsdk:common:9.1.0' // (必选)
  81. implementation 'com.umeng.umsdk:asms:1.1.3' // asms包依赖(必选)
  82. implementation 'com.umeng.umsdk:crash:0.0.4' // native crash包依赖(必选)
  83. }