build.gradle 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. sourceSets {
  24. main {
  25. if (isModule.toBoolean()) {
  26. manifest.srcFile 'src/main/module/AndroidManifest.xml'
  27. } else {
  28. manifest.srcFile 'src/main/AndroidManifest.xml'
  29. //集成开发模式下排除debug文件夹中的所有Java文件
  30. java {
  31. exclude 'debug/**'
  32. }
  33. }
  34. }
  35. }
  36. buildTypes {
  37. release {
  38. minifyEnabled false
  39. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  40. }
  41. }
  42. sourceSets {
  43. main {
  44. jniLibs.srcDirs = ['jniLibs']
  45. }
  46. }
  47. buildFeatures {
  48. viewBinding = true
  49. }
  50. }
  51. dependencies {
  52. implementation fileTree(dir: 'libs', include: ['*.jar'])
  53. implementation deps.constraint_layout
  54. api deps.wechat_sdk
  55. implementation project(':uchat_common')
  56. annotationProcessor deps.arouter_compiler
  57. kapt deps.arouter_compiler
  58. annotationProcessor deps.butterknife_annotationProcessor
  59. kapt deps.butterknife_annotationProcessor
  60. // 创蓝一键登陆
  61. //shanyan_sdk_v2.2.1.1.aar
  62. implementation(name: 'shanyan_sdk_v2.3.1.4', ext: 'aar')
  63. }