build.gradle 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. plugins {
  2. id 'com.android.library'
  3. id 'org.jetbrains.kotlin.android'
  4. // id 'kotlin-parcelize'
  5. id 'kotlin-android'
  6. // id 'kotlin-android-extensions'
  7. }
  8. apply plugin: 'kotlin-kapt'
  9. apply plugin: 'kotlin-android-extensions'
  10. kapt {
  11. arguments {
  12. arg("AROUTER_MODULE_NAME", project.getName())
  13. }
  14. }
  15. android {
  16. namespace 'com.cooleshow.musicmerge'
  17. compileSdkVersion rootProject.ext.android.compileSdkVersion
  18. defaultConfig {
  19. minSdkVersion rootProject.ext.android.minSdkVersion
  20. targetSdkVersion rootProject.ext.android.targetSdkVersion
  21. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  22. consumerProguardFiles "consumer-rules.pro"
  23. }
  24. buildTypes {
  25. release {
  26. minifyEnabled false
  27. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  28. }
  29. preRelease{
  30. debuggable true
  31. minifyEnabled false
  32. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  33. }
  34. }
  35. compileOptions {
  36. sourceCompatibility JavaVersion.VERSION_1_8
  37. targetCompatibility JavaVersion.VERSION_1_8
  38. }
  39. sourceSets {
  40. main {
  41. jniLibs.srcDirs = ['libs']
  42. }
  43. }
  44. buildFeatures {
  45. viewBinding = true
  46. }
  47. }
  48. dependencies {
  49. implementation fileTree(dir: 'libs', include: ['*.jar'])
  50. implementation project(':BaseLibrary')
  51. implementation project(':usercenter')
  52. implementation 'androidx.appcompat:appcompat:1.3.0'
  53. implementation 'com.google.android.material:material:1.4.0'
  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. //ARouter
  58. annotationProcessor("com.alibaba:arouter-compiler:$rootProject.ext.android.arouter_api_version")
  59. implementation 'com.alibaba:arouter-api:1.5.2'
  60. kapt 'com.alibaba:arouter-compiler:1.5.2'
  61. implementation 'com.google.android.exoplayer:exoplayer:2.15.0'
  62. compileOnly files('libs/ffmpegCmd-release_1.0.2_2410081548.aar')
  63. }