build.gradle 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-kapt'
  4. android {
  5. compileSdkVersion cfgs.compileSdkVersion
  6. defaultConfig {
  7. minSdkVersion cfgs.minSdkVersion
  8. targetSdkVersion cfgs.targetSdkVersion
  9. versionCode 1
  10. versionName "1.0"
  11. javaCompileOptions {
  12. annotationProcessorOptions {
  13. arguments = [AROUTER_MODULE_NAME: project.getName()]
  14. }
  15. }
  16. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  17. }
  18. lintOptions {
  19. abortOnError false
  20. }
  21. buildTypes {
  22. release {
  23. minifyEnabled false
  24. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  25. }
  26. }
  27. kapt {
  28. arguments {
  29. arg("AROUTER_MODULE_NAME", project.getName())
  30. }
  31. }
  32. }
  33. dependencies {
  34. implementation fileTree(include: ['*.jar'], dir: 'libs')
  35. api "androidx.appcompat:appcompat:${cfgs.appcompat_version}"
  36. testImplementation 'junit:junit:4.12'
  37. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  38. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  39. implementation files('libs/bdasr_V3_20180801_d6f298a.jar')
  40. api project(':BSBase')
  41. }