build.gradle 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. apply plugin: 'com.android.library'
  2. android {
  3. // namespace 'com.example.moduleGis'
  4. compileSdkVersion 28
  5. buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION
  6. defaultConfig {
  7. minSdkVersion 19
  8. targetSdkVersion 28
  9. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  10. consumerProguardFiles "consumer-rules.pro"
  11. }
  12. buildTypes {
  13. release {
  14. minifyEnabled false
  15. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  16. }
  17. }
  18. repositories {
  19. flatDir {
  20. dirs 'libs'
  21. }
  22. google()
  23. mavenCentral()
  24. }
  25. compileOptions {
  26. sourceCompatibility JavaVersion.VERSION_1_8
  27. targetCompatibility JavaVersion.VERSION_1_8
  28. }
  29. }
  30. dependencies {
  31. implementation 'com.android.support:appcompat-v7:28.0.0'
  32. // implementation files('libs\\gnsstoollib-1.1.20210826.jar')
  33. testImplementation 'junit:junit:4.13.2'
  34. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  35. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  36. compileOnly files('../app/libs/apiEngine v3.0.0.jar')
  37. implementation files('libs/eventbus-3.0.0.jar')
  38. compile(name:'gnssserver-1.1.20230214-053827-8.0.1',ext:'aar');
  39. compile(name:'gnsstoollib-1.1.20230214-054100-8.0.1',ext:'aar');
  40. compile(name:'sdk4a-v1.6.0.3958',ext:'aar');
  41. //高德定位sdk
  42. //定位功能
  43. // 高德定位 SDK(检查版本号,确保为最新)
  44. // implementation files('../app/libs/AMap_Location_V6.4.8_20241029.jar')
  45. // implementation files('../app/libs/commons-collections4-4.4.jar')
  46. // compileOnly files('../app/libs/AMap_Location_V6.4.8_20241029.jar')
  47. // compileOnly files('../app/libs/commons-collections4-4.4.jar')
  48. implementation 'com.amap.api:location:latest.integration'
  49. implementation 'org.apache.commons:commons-collections4:4.4'
  50. }