build.gradle 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 29
  4. buildToolsVersion "29.0.3"
  5. defaultConfig {
  6. minSdkVersion 19
  7. targetSdkVersion 29
  8. versionCode 1
  9. versionName "1.0"
  10. multiDexEnabled true
  11. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  12. javaCompileOptions {
  13. annotationProcessorOptions {
  14. arguments = [AROUTER_MODULE_NAME: project.getName()]
  15. }
  16. }
  17. }
  18. buildTypes {
  19. release {
  20. minifyEnabled false
  21. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  22. }
  23. debug {
  24. minifyEnabled false
  25. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  26. }
  27. }
  28. buildFeatures {
  29. dataBinding = true
  30. }
  31. }
  32. repositories {
  33. flatDir {
  34. dirs 'libs', '../libs'
  35. }
  36. }
  37. allprojects {
  38. repositories {
  39. maven { url uri('../../repo') }
  40. }
  41. }
  42. dependencies {
  43. api fileTree(include: ['*.jar'], dir: 'libs')
  44. implementation 'androidx.appcompat:appcompat:1.3.1'
  45. testImplementation 'junit:junit:4.12'
  46. androidTestImplementation 'androidx.test:runner:1.2.0'
  47. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  48. annotationProcessor 'com.alibaba:arouter-compiler:1.5.2'
  49. api 'com.alibaba:arouter-api:1.5.2'
  50. api 'com.tencent.map.geolocation:TencentLocationSdk-openplatform:7.2.6'
  51. api 'com.tencent.map:tencent-map-vector-sdk:4.3.4'
  52. api project(':KlcBeans')
  53. }