build.gradle 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. buildTypes {
  24. debug {
  25. debuggable true
  26. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  27. }
  28. release {
  29. debuggable false
  30. zipAlignEnabled true
  31. minifyEnabled true
  32. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  33. }
  34. }
  35. buildFeatures {
  36. viewBinding = true
  37. }
  38. }
  39. dependencies {
  40. implementation fileTree(include: ['*.jar'], dir: 'libs')
  41. implementation deps.constraint_layout
  42. implementation project(':uchat_common')
  43. annotationProcessor deps.arouter_compiler
  44. kapt deps.arouter_compiler
  45. annotationProcessor deps.butterknife_annotationProcessor
  46. kapt deps.butterknife_annotationProcessor
  47. }