build.gradle 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'com.huawei.agconnect' // HMS SDK gradle 插件
  3. android {
  4. compileSdkVersion 29
  5. buildToolsVersion "29.0.3"
  6. defaultConfig {
  7. minSdkVersion 19
  8. targetSdkVersion 29
  9. versionCode 1
  10. versionName "1.0"
  11. multiDexEnabled true
  12. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  13. javaCompileOptions {
  14. annotationProcessorOptions {
  15. arguments = [AROUTER_MODULE_NAME: project.getName()]
  16. }
  17. }
  18. }
  19. buildTypes {
  20. release {
  21. minifyEnabled false
  22. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  23. }
  24. debug {
  25. minifyEnabled false
  26. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  27. }
  28. }
  29. }
  30. repositories {
  31. flatDir {
  32. dirs 'libs', '../libs'
  33. }
  34. }
  35. dependencies {
  36. implementation fileTree(include: ['*.jar'], dir: 'libs')
  37. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  38. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  39. annotationProcessor 'com.alibaba:arouter-compiler:1.5.2'
  40. api 'com.alibaba:arouter-api:1.5.2'
  41. implementation project(':KlcCommonView')
  42. // 金刚扫描库
  43. api 'com.tencent.jg:jg:1.1'
  44. api 'com.tencent.tpns:tpns:1.2.3.0'
  45. api 'com.tencent.tpns:huawei:1.2.2.0-release'
  46. // 华为推送 [VERSION] 为当前最新 SDK 版本号,版本号可在 Android SDK 发布动态 查看
  47. api 'com.huawei.hms:push:5.1.1.300' // HMS Core Push 模块依赖包
  48. api 'com.tencent.tpns:xiaomi:1.2.2.0-release'//小米推送
  49. api 'com.tencent.tpns:meizu:1.2.2.0-release'//meizu 推送
  50. api 'com.tencent.tpns:vivo:1.2.2.0-release' // vivo 推送
  51. api 'com.tencent.tpns:oppo:1.2.2.0-release'//OPPO 推送
  52. api 'com.android.support:multidex:1.0.3'
  53. }