build.gradle 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. if (!isNeedAccoutModule.toBoolean()) {
  2. apply plugin: 'com.android.application'
  3. } else {
  4. apply plugin: 'com.android.library'
  5. }
  6. apply plugin: 'kotlin-android'
  7. apply plugin: 'kotlin-android-extensions'
  8. apply plugin: 'kotlin-kapt'
  9. apply from: "../gradle_component/baseconfig.gradle"
  10. android {
  11. defaultConfig {
  12. if (!isNeedAccoutModule.toBoolean()) {
  13. applicationId "com.bc_chat.account"
  14. }
  15. // javaCompileOptions {
  16. // annotationProcessorOptions {
  17. // arguments = [moduleName: project.getName()]
  18. // }
  19. // }
  20. kapt {
  21. arguments {
  22. arg("AROUTER_MODULE_NAME", project.getName())
  23. }
  24. }
  25. }
  26. }
  27. dependencies {
  28. implementation fileTree(dir: 'libs', include: ['*.jar'])
  29. testImplementation 'junit:junit:4.12'
  30. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  31. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  32. api project(':bc_base')
  33. kapt "com.alibaba:arouter-compiler:1.2.2"
  34. }