build.gradle 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. buildConfigField("String", "versionName", "\"${versionName}\"")
  16. }
  17. buildTypes {
  18. release {
  19. minifyEnabled false
  20. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  21. }
  22. }
  23. compileOptions {
  24. sourceCompatibility JavaVersion.VERSION_1_8
  25. targetCompatibility JavaVersion.VERSION_1_8
  26. }
  27. }
  28. dependencies {
  29. api project(path: ':SzyxBaseSdk')
  30. implementation 'androidx.appcompat:appcompat:1.4.1'
  31. implementation 'com.google.android.material:material:1.5.0'
  32. testImplementation 'junit:junit:4.13.2'
  33. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  34. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  35. //数据库相关
  36. implementation("androidx.room:room-runtime:2.5.0")
  37. annotationProcessor ("androidx.room:room-compiler:2.5.0")
  38. // 网络相关
  39. //Rxjava
  40. implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
  41. //Retrofit
  42. implementation 'com.squareup.retrofit2:retrofit:2.9.0'
  43. implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
  44. implementation 'com.squareup.retrofit2:adapter-rxjava2:2.4.0'
  45. implementation 'com.squareup.okhttp3:logging-interceptor:4.9.1'
  46. }