build.gradle 2.1 KB

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