build.gradle 2.6 KB

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