build.gradle 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 30
  4. defaultConfig {
  5. minSdkVersion 21
  6. targetSdkVersion 30
  7. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  8. consumerProguardFiles "consumer-rules.pro"
  9. }
  10. buildTypes {
  11. release {
  12. minifyEnabled false
  13. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  14. }
  15. debug{
  16. minifyEnabled false
  17. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  18. }
  19. preRelease{
  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. sourceSets {
  29. main {
  30. jniLibs.srcDirs = ['libs']
  31. }
  32. }
  33. }
  34. dependencies {
  35. api fileTree(dir: 'libs', include: ['*.jar'])
  36. implementation 'androidx.appcompat:appcompat:1.3.0'
  37. implementation 'com.google.android.material:material:1.4.0'
  38. testImplementation 'junit:junit:4.13.2'
  39. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  40. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  41. implementation project(':rong_im:im_lib')
  42. implementation project(':rong_im:kit')
  43. implementation project(':BaseLibrary')
  44. implementation project(':usercenter')
  45. compileOnly files('libs/rong_player_5.2.4.aar')
  46. }