build.gradle 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'kotlin-android-extensions'
  3. apply plugin: 'kotlin-kapt'
  4. apply plugin: 'org.jetbrains.kotlin.android'
  5. kapt {
  6. arguments {
  7. arg("AROUTER_MODULE_NAME", project.getName())
  8. // 是否生成路由文档,"enable":生成文档,其他字符串不生成路由文档
  9. arg("AROUTER_GENERATE_DOC", "enable")
  10. }
  11. }
  12. android {
  13. compileSdkVersion 30
  14. defaultConfig {
  15. minSdkVersion 21
  16. targetSdkVersion 30
  17. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  18. consumerProguardFiles "consumer-rules.pro"
  19. }
  20. buildTypes {
  21. release {
  22. minifyEnabled false
  23. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  24. }
  25. preRelease{
  26. debuggable true
  27. minifyEnabled false
  28. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  29. }
  30. }
  31. compileOptions {
  32. sourceCompatibility JavaVersion.VERSION_1_8
  33. targetCompatibility JavaVersion.VERSION_1_8
  34. }
  35. kotlinOptions {
  36. jvmTarget = '1.8'
  37. }
  38. packagingOptions {
  39. resources.excludes.add("META-INF/*")
  40. }
  41. buildFeatures{
  42. viewBinding = true
  43. }
  44. sourceSets {
  45. main {
  46. jniLibs.srcDirs = ['libs']
  47. }
  48. }
  49. }
  50. dependencies {
  51. implementation 'androidx.appcompat:appcompat:1.3.0'
  52. implementation 'com.google.android.material:material:1.4.0'
  53. implementation project(path: ':usercenter')
  54. testImplementation 'junit:junit:4.13.2'
  55. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  56. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  57. implementation project(':BaseLibrary')
  58. api project(path: ':camerakit')
  59. // api project(path: ':ffmpegCmd')
  60. api project(path: ':midiplaylib')
  61. api project(path: ':musictuner')
  62. api project(path: ':metronome')
  63. implementation project(path: ':chatModule')
  64. // implementation project(path: ':rong_im:kit')
  65. //ARouter
  66. implementation "com.alibaba:arouter-api:$rootProject.ext.android.arouter_api_version"
  67. kapt "com.alibaba:arouter-compiler:$rootProject.ext.android.arouter_api_version"
  68. //ijkPlayer
  69. api 'tv.danmaku.ijk.media:ijkplayer-java:0.8.8'
  70. }