build.gradle 2.1 KB

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