build.gradle 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. plugins {
  2. id 'com.android.application'
  3. id 'org.jetbrains.kotlin.android'
  4. }
  5. android {
  6. compileSdk rootProject.ext.androidConfig.compileSdk
  7. viewBinding {
  8. enabled = true
  9. }
  10. dataBinding {
  11. enabled = true
  12. }
  13. defaultConfig {
  14. applicationId rootProject.ext.applicationId.app
  15. minSdk rootProject.ext.androidConfig.minSdk
  16. targetSdk rootProject.ext.androidConfig.targetSdk
  17. versionCode rootProject.ext.androidConfig.versionCode
  18. versionName rootProject.ext.androidConfig.versionName
  19. multiDexEnabled = true
  20. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  21. javaCompileOptions {
  22. annotationProcessorOptions {
  23. arguments = [AROUTER_MODULE_NAME: project.getName()]
  24. }
  25. }
  26. ndk {
  27. rootProject.ext.androidConfig.abiFilters
  28. }
  29. //getui
  30. manifestPlaceholders = [GETUI_APPID : "",
  31. XIAOMI_APP_ID : "",
  32. XIAOMI_APP_KEY : "",
  33. MEIZU_APP_ID : "",
  34. MEIZU_APP_KEY : "",
  35. HUAWEI_APP_ID : "",
  36. OPPO_APP_KEY : "",
  37. OPPO_APP_SECRET: "",
  38. VIVO_APP_ID : "",
  39. VIVO_APP_KEY : "",
  40. // 荣耀相关应用参数
  41. HONOR_APP_ID : "",]
  42. }
  43. signingConfigs {
  44. release {
  45. keyAlias 'openim'
  46. keyPassword 'openim'
  47. storeFile file('./openim')
  48. storePassword 'openim'
  49. }
  50. }
  51. buildTypes {
  52. debug {
  53. signingConfig signingConfigs.release
  54. }
  55. release {
  56. signingConfig signingConfigs.release
  57. minifyEnabled false
  58. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  59. }
  60. }
  61. compileOptions {
  62. sourceCompatibility JavaVersion.VERSION_1_8
  63. targetCompatibility JavaVersion.VERSION_1_8
  64. }
  65. buildFeatures {
  66. viewBinding true
  67. }
  68. lintOptions {
  69. checkReleaseBuilds false
  70. abortOnError false
  71. }
  72. }
  73. task prepareKotlinBuildScriptModel {
  74. }
  75. dependencies {
  76. implementation 'androidx.appcompat:appcompat:1.3.0'
  77. implementation 'com.google.android.material:material:1.4.0'
  78. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  79. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  80. implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.3.1'
  81. implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1'
  82. testImplementation 'junit:junit:4.13.2'
  83. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  84. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  85. implementation 'androidx.multidex:multidex:2.0.1'
  86. implementation 'com.alibaba:arouter-api:1.5.2'
  87. annotationProcessor 'com.alibaba:arouter-compiler:1.5.2'
  88. implementation 'com.github.Wynsbin:VerificationCodeInputView:1.0.2'
  89. implementation 'com.github.czy1121:badgebutton:1.1.0'
  90. //https://github.com/hbb20/CountryCodePickerProject/tree/master
  91. // implementation 'com.hbb20:ccp:2.6.1'
  92. implementation project(':ccp')
  93. // getui
  94. implementation 'com.getui:gtsdk:3.2.13.0' //个推SDK
  95. implementation 'com.getui:gtc:3.1.12.0' //个推核心组件
  96. implementation 'com.getui.opt:hwp:3.1.1' // 华为
  97. implementation 'com.getui.opt:xmp:3.3.0' // 小米
  98. implementation 'com.assist-v3:oppo:3.2.0' // oppo
  99. implementation 'com.assist-v3:vivo:3.1.0' // vivo
  100. implementation 'com.getui.opt:mzp:3.2.2' // 魅族
  101. implementation 'com.getui.opt:ups:3.0.3' // ups,ups目前支持坚果,索尼,海信手机
  102. implementation 'com.getui.opt:honor:3.2.0' // 荣耀
  103. implementation 'com.huawei.hms:push:6.7.0.300'
  104. //--------
  105. api project(':OUICore')
  106. if (!isModule) {
  107. implementation project(':OUIConversation')
  108. implementation project(':OUIGroup')
  109. implementation project(':OUIContact')
  110. implementation project(':OUICalling')
  111. implementation project(':OUIMoments')
  112. implementation project(':OUIMeeting')
  113. implementation project(':OUIApplet')
  114. }
  115. }