build.gradle 1.7 KB

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