build.gradle 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'com.jakewharton.butterknife'
  3. apply plugin: 'kotlin-android'
  4. apply plugin: 'kotlin-android-extensions'
  5. apply plugin: 'kotlin-kapt'
  6. android {
  7. compileSdkVersion build_versions.target_sdk
  8. defaultConfig {
  9. minSdkVersion build_versions.min_sdk
  10. targetSdkVersion build_versions.target_sdk
  11. versionCode 1
  12. versionName "1.0"
  13. javaCompileOptions {
  14. annotationProcessorOptions {
  15. arguments = [AROUTER_MODULE_NAME: project.getName()]
  16. }
  17. }
  18. }
  19. compileOptions {
  20. sourceCompatibility JavaVersion.VERSION_1_8
  21. targetCompatibility JavaVersion.VERSION_1_8
  22. }
  23. tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
  24. kotlinOptions {
  25. jvmTarget = '1.8'
  26. freeCompilerArgs = ['-XXLanguage:+InlineClasses']
  27. }
  28. }
  29. buildTypes {
  30. debug {
  31. debuggable true
  32. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  33. }
  34. release {
  35. debuggable false
  36. zipAlignEnabled true
  37. minifyEnabled true
  38. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  39. }
  40. }
  41. buildFeatures {
  42. dataBinding = true
  43. viewBinding = true
  44. }
  45. }
  46. dependencies {
  47. implementation fileTree(include: ['*.jar'], dir: 'libs')
  48. implementation project(':uchat_common')
  49. implementation project(':uchat_room')
  50. annotationProcessor deps.arouter_compiler
  51. kapt deps.arouter_compiler
  52. annotationProcessor deps.butterknife_annotationProcessor
  53. kapt deps.butterknife_annotationProcessor
  54. }