Im即时通讯,移动端示例项目
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

65 wiersze
1.9KB

  1. plugins {
  2. id 'com.android.library'
  3. id "io.sentry.android.gradle" version "3.4.2"
  4. }
  5. def versionCode = 1
  6. def versionName = "0.0.1.011"
  7. android {
  8. namespace 'cn.org.bjca.trust.android.lib.im'
  9. compileSdk 33
  10. defaultConfig {
  11. minSdk 26
  12. targetSdk 33
  13. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  14. consumerProguardFiles "consumer-rules.pro"
  15. multiDexEnabled true
  16. buildConfigField("String", "versionName", "\"${versionName}\"")
  17. }
  18. buildTypes {
  19. release {
  20. minifyEnabled false
  21. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  22. }
  23. }
  24. compileOptions {
  25. sourceCompatibility JavaVersion.VERSION_1_8
  26. targetCompatibility JavaVersion.VERSION_1_8
  27. }
  28. }
  29. dependencies {
  30. api project(path: ':SzyxBaseSdk')
  31. implementation 'androidx.appcompat:appcompat:1.4.1'
  32. implementation 'com.google.android.material:material:1.5.0'
  33. testImplementation 'junit:junit:4.13.2'
  34. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  35. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  36. //数据库相关
  37. implementation("androidx.room:room-runtime:2.5.0")
  38. annotationProcessor ("androidx.room:room-compiler:2.5.0")
  39. // 网络相关
  40. //Rxjava
  41. implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
  42. //Retrofit
  43. implementation 'com.squareup.retrofit2:retrofit:2.9.0'
  44. implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
  45. implementation 'com.squareup.retrofit2:adapter-rxjava2:2.4.0'
  46. implementation 'com.squareup.okhttp3:logging-interceptor:4.9.1'
  47. //添加mqtt 2个包
  48. implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5'
  49. implementation 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.1'
  50. //gson
  51. implementation 'com.google.code.gson:gson:2.9.0'
  52. }