build.gradle 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. implementation 'androidx.appcompat:appcompat:1.2.0'
  44. implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
  45. annotationProcessor deps.arouter_compiler
  46. kapt deps.arouter_compiler
  47. annotationProcessor deps.butterknife_annotationProcessor
  48. kapt deps.butterknife_annotationProcessor
  49. }