build.gradle 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'com.jakewharton.butterknife'
  3. android {
  4. compileSdkVersion rootProject.ext.compileSdkVersion
  5. defaultConfig {
  6. minSdkVersion rootProject.ext.minSdkVersion
  7. targetSdkVersion rootProject.ext.targetSdkVersion
  8. versionCode 1
  9. versionName "1.0"
  10. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  11. consumerProguardFiles 'consumer-rules.pro'
  12. }
  13. buildTypes {
  14. release {
  15. minifyEnabled false
  16. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  17. }
  18. }
  19. }
  20. repositories {
  21. flatDir {
  22. dirs '../base/libs', 'libs'
  23. }
  24. }
  25. dependencies {
  26. annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.1'
  27. //视频录制
  28. implementation 'cjt.library.wheel:camera:1.1.9'
  29. //必选,视频播放库https://github.com/dueeeke/DKVideoPlayer
  30. implementation 'com.github.dueeeke.dkplayer:dkplayer-java:3.2.6'
  31. //可选,包含StandardVideoController的实现
  32. implementation 'com.github.dueeeke.dkplayer:dkplayer-ui:3.2.6'
  33. // //可选,使用exoplayer进行解码
  34. // implementation 'com.github.dueeeke.dkplayer:player-exo:3.2.6'
  35. // //可选,使用ijkplayer进行解码
  36. // implementation 'com.github.dueeeke.dkplayer:player-ijk:3.2.6'
  37. // //可选,如需要缓存或者抖音预加载功能请引入此库
  38. implementation 'com.github.dueeeke.dkplayer:videocache:3.2.6'
  39. implementation project(':base')
  40. }