build.gradle 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 cfgs.versionCode
  10. versionName cfgs.versionName
  11. javaCompileOptions {
  12. annotationProcessorOptions {
  13. arguments = [AROUTER_MODULE_NAME: project.getName()]
  14. }
  15. }
  16. ndk {
  17. // 设置支持的SO库架构
  18. abiFilters 'armeabi', 'x86', 'armeabi-v7a', 'x86_64', 'arm64-v8a'
  19. }
  20. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  21. multiDexEnabled true
  22. }
  23. buildTypes {
  24. release {
  25. minifyEnabled false
  26. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  27. }
  28. }
  29. kapt {
  30. arguments {
  31. arg("AROUTER_MODULE_NAME", project.getName())
  32. }
  33. }
  34. }
  35. dependencies {
  36. api fileTree(dir: 'libs', include: ['*.jar'])
  37. api "androidx.appcompat:appcompat:${cfgs.appcompat_version}"
  38. testImplementation 'junit:junit:4.12'
  39. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  40. androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.2', {
  41. exclude group: 'com.android.support', module: 'support-annotations'
  42. })
  43. //阿里路由
  44. api "com.alibaba:arouter-api:${cfgs.arouter_version}"
  45. kapt "com.alibaba:arouter-compiler:${cfgs.arouter_version}"
  46. api project(':BSBase')
  47. api project(':BSBaiduSpeak')
  48. }