build.gradle 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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 project(':BaseLibrary')
  50. implementation project(':usercenter')
  51. api project(path: ':ffmpegCmd')
  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. }