build.gradle 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions'
  4. apply plugin: 'kotlin-kapt'
  5. kapt {
  6. arguments {
  7. arg("moduleName", project.getName())
  8. }
  9. }
  10. android {
  11. compileSdkVersion target_sdk_version
  12. buildToolsVersion build_tools_version
  13. defaultConfig {
  14. minSdkVersion min_sdk_version
  15. targetSdkVersion target_sdk_version
  16. versionCode app_version_code
  17. versionName app_version
  18. dataBinding {
  19. enabled = true
  20. }
  21. }
  22. lintOptions {
  23. abortOnError false
  24. }
  25. buildTypes {
  26. release {
  27. minifyEnabled false
  28. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  29. }
  30. }
  31. sourceSets {
  32. main.java.srcDirs += 'src/main/code'
  33. }
  34. kapt {
  35. generateStubs = true
  36. }
  37. compileOptions {
  38. sourceCompatibility JavaVersion.VERSION_1_8
  39. targetCompatibility JavaVersion.VERSION_1_8
  40. }
  41. }
  42. dependencies {
  43. compile fileTree(include: ['*.jar'], dir: 'libs')
  44. testCompile 'junit:junit:4.12'
  45. //androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
  46. // exclude group: 'com.android.support', module: 'support-annotations'
  47. //})
  48. compile project(':common')
  49. compile project(':resource')
  50. /**
  51. * Dagger编译依赖
  52. */
  53. kapt 'com.google.dagger:dagger-compiler:2.7'
  54. /**
  55. * 路由注解处理器
  56. */
  57. kapt "com.enation.geamtear:jrouter-compiler:$router_version"
  58. /**
  59. * constraint-layout布局依赖
  60. */
  61. //implementation 'com.android.support.constraint:constraint-layout:2.0.1'
  62. implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.5'
  63. implementation 'io.swagger:swagger-annotations:1.5.14'
  64. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  65. implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
  66. }