build.gradle 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. apply plugin: 'com.android.application'
  2. android {
  3. splits {
  4. abi {
  5. enable true
  6. reset()
  7. include 'armeabi-v7a'
  8. universalApk true
  9. }
  10. }
  11. signingConfigs {
  12. }
  13. compileSdkVersion 26
  14. defaultConfig {
  15. applicationId "com.usai.apex"
  16. minSdkVersion 23
  17. targetSdkVersion 26
  18. versionCode 18
  19. versionName "A190316"
  20. // multiDexEnabled true
  21. // ndk {
  22. // abiFilters "armeabi-v7a" // 指定要ndk需要兼容的架构(这样其他依赖包里mips,x86,armeabi,arm-v8之类的so会被过滤掉)
  23. // }
  24. }
  25. buildTypes {
  26. release {
  27. minifyEnabled true
  28. zipAlignEnabled true
  29. shrinkResources true
  30. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-project.txt'
  31. }
  32. debug {
  33. // minifyEnabled true
  34. // proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
  35. }
  36. }
  37. sourceSets {
  38. main {
  39. jniLibs.srcDir 'libs'
  40. //说明so的路径为该libs路径,关联所有地图SDK的so文件
  41. }
  42. }
  43. }
  44. dependencies {
  45. // compile 'com.android.support:support-v4:19.1.0'
  46. api 'com.android.support:appcompat-v7:26.1.0'
  47. api 'com.android.support:support-v4:26.1.0'
  48. api 'com.android.support.constraint:constraint-layout:1.1.3'
  49. api 'com.android.support:design:26.1.0'
  50. // compile 'com.android.support:recyclerview-v7:26.1.0'
  51. // compile 'com.google.android.gms:play-services:11.0.4'
  52. api 'com.google.android.gms:play-services-maps:16.0.0'
  53. // api 'com.google.android.gms:play-services-location:11.4.2'
  54. // compile files('libs/baidumapapi_base_v3_7_1.jar')
  55. // compile files('libs/baidumapapi_map_v3_7_1.jar')
  56. // api 'com.github.barteksc:android-pdf-viewer:3.0.0-beta.5'
  57. implementation files('libs/BaiduLBS_Android.jar')
  58. implementation project(path: ':RAUtilsLibrary')
  59. implementation project(':apexmap')
  60. }
  61. android {
  62. useLibrary 'org.apache.http.legacy'
  63. }