build.gradle 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'com.huawei.agconnect'
  3. android {
  4. signingConfigs {
  5. release {
  6. storeFile file('../android.keystore')
  7. keyAlias 'android.keystore'
  8. keyPassword 'android'
  9. storePassword 'android'
  10. v2SigningEnabled true
  11. }
  12. }
  13. lintOptions {
  14. abortOnError false
  15. }
  16. //noinspection GradleCompatible
  17. compileSdkVersion 30
  18. buildToolsVersion "30.0.3"
  19. defaultConfig {
  20. applicationId "com.huawei.Locationsample6"
  21. minSdkVersion 22
  22. targetSdkVersion 31
  23. versionCode 1
  24. versionName "1.0"
  25. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  26. }
  27. compileOptions {
  28. sourceCompatibility 1.8
  29. targetCompatibility 1.8
  30. }
  31. buildTypes {
  32. release {
  33. // Enable obfuscation
  34. minifyEnabled true
  35. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  36. signingConfig signingConfigs.release
  37. debuggable true
  38. packagingOptions {
  39. // CPU architecture: ARMv7 ARMv8.
  40. doNotStrip "*/arm64-v8a/libucs-credential.so"
  41. doNotStrip "*/armeabi-v7a/libucs-credential.so"
  42. // CPU architecture: x86 x86_64.
  43. doNotStrip "*/x86/libucs-credential.so"
  44. doNotStrip "*/x86_64/libucs-credential.so"
  45. }
  46. }
  47. debug {
  48. debuggable true
  49. signingConfig signingConfigs.release
  50. packagingOptions {
  51. // CPU architecture: ARMv7 ARMv8.
  52. doNotStrip "*/arm64-v8a/libucs-credential.so"
  53. doNotStrip "*/armeabi-v7a/libucs-credential.so"
  54. //CPU architecture: x86 x86_64.
  55. doNotStrip "*/x86/libucs-credential.so"
  56. doNotStrip "*/x86_64/libucs-credential.so"
  57. }
  58. }
  59. }
  60. sourceSets { main { assets.srcDirs = ['src/main/assets', 'src/main/assets/'] } }
  61. }
  62. dependencies {
  63. implementation 'androidx.appcompat:appcompat:1.1.0'
  64. implementation 'com.huawei.hms:location:6.12.0.300'
  65. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  66. }