build.gradle 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. apply from: rootProject.file('cc-settings.gradle')
  2. apply from: rootProject.file('common-build.gradle')
  3. android {
  4. compileSdkVersion rootProject.target_sdk_version
  5. defaultConfig {
  6. minSdkVersion rootProject.min_sdk_version
  7. targetSdkVersion rootProject.target_sdk_version
  8. versionCode rootProject.application_version_code
  9. versionName rootProject.application_version_name
  10. }
  11. buildTypes {
  12. release {
  13. minifyEnabled false
  14. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  15. }
  16. }
  17. kotlinOptions {
  18. jvmTarget = '1.8'
  19. }
  20. android.buildFeatures {
  21. dataBinding = true
  22. viewBinding = false
  23. }
  24. compileOptions {
  25. sourceCompatibility JavaVersion.VERSION_1_8
  26. targetCompatibility JavaVersion.VERSION_1_8
  27. }
  28. }
  29. dependencies {
  30. implementation fileTree(dir: 'libs', include: ['*.jar'])
  31. implementation project(':base')
  32. implementation 'com.github.chrisbanes:PhotoView:2.0.0'
  33. //图片/视频选择、预览、编辑与拍照
  34. implementation 'com.github.guoxiaoxing:phoenix:1.0.15'
  35. //选填 - 图片压缩,开启功能:Phoenix.with().enableCompress(true),获取结果:MediaEntity.getCompressPath()
  36. implementation 'com.github.guoxiaoxing:phoenix-compress-picture:1.0.15'
  37. //选填 - 视频压缩,开启功能:Phoenix.with().enableCompress(true),获取结果:MediaEntity.getCompressPath()
  38. implementation 'com.github.guoxiaoxing:phoenix-compress-video:1.0.15'
  39. }