build.gradle 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. apply plugin: 'com.huawei.ohos.hap'
  2. apply plugin: 'com.huawei.ohos.decctest'
  3. //For instructions on signature configuration, see https://developer.harmonyos.com/cn/docs/documentation/doc-guides-V3/ide_debug_device-0000001053822404-V3#section1112183053510
  4. ohos {
  5. signingConfigs {
  6. debug {
  7. storeFile file('C:\\Users\\PC-ZH\\.ohos\\config\\auto_debug_fshwcar_com.fujica.abk_2850086000523307485.p12')
  8. storePassword '0000001B0F03428055BB9C18944B18A4411F9CA525E39C37AC552959797457213E23D65A3C840C5B27AC9D'
  9. keyAlias = 'debugKey'
  10. keyPassword '0000001BE861C837E8575F16DFDFDC1A9DF87DA297E31AD085280889BA1405C4427529138496CCF7452060'
  11. signAlg = 'SHA256withECDSA'
  12. profile file('C:\\Users\\PC-ZH\\.ohos\\config\\auto_debug_fshwcar_com.fujica.abk_2850086000523307485.p7b')
  13. certpath file('C:\\Users\\PC-ZH\\.ohos\\config\\auto_debug_fshwcar_com.fujica.abk_2850086000523307485.cer')
  14. }
  15. }
  16. compileSdkVersion 7
  17. defaultConfig {
  18. compatibleSdkVersion 7
  19. }
  20. showInServiceCenter true
  21. buildTypes {
  22. release {
  23. proguardOpt {
  24. proguardEnabled false
  25. rulesFiles 'proguard-rules.pro'
  26. }
  27. }
  28. }
  29. }
  30. dependencies {
  31. implementation fileTree(dir: 'libs', include: ['*.jar', '*.har'])
  32. // 华为地图 SDK 依赖
  33. implementation 'com.huawei.hms:maps-harmony:6.4.0.300'
  34. testImplementation 'junit:junit:4.13.1'
  35. ohosTestImplementation 'com.huawei.ohos.testkit:runner:2.0.0.400'
  36. }
  37. decc {
  38. supportType = ['html', 'xml']
  39. }