build.gradle 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. apply plugin: 'com.huawei.ohos.app'
  3. //For instructions on signature configuration, see https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ide_debug_device-0000001053822404#ZH-CN_TOPIC_0000001154985555__section1112183053510
  4. ohos {
  5. signingConfigs {
  6. debug {
  7. storeFile file('C:\\Users\\hanyu\\.ohos\\config\\auto_debug_80086200300603676.p12')
  8. storePassword '0000001855B45BC77E88FB2BAD81BAE63EF257818E702702314CC8EE5ED8801F1E8AD0D9F9C9D201'
  9. keyAlias = 'debugKey'
  10. keyPassword '0000001872BE51F3CBAAEB827F4B92005541285071830F6A59406A1BDB3C7655EE35D120F377D69A'
  11. signAlg = 'SHA256withECDSA'
  12. profile file('C:\\Users\\hanyu\\.ohos\\config\\auto_debug_harmonet_80086200300603676.p7b')
  13. certpath file('C:\\Users\\hanyu\\.ohos\\config\\auto_debug_80086200300603676.cer')
  14. }
  15. }
  16. compileSdkVersion 5
  17. defaultConfig {
  18. compatibleSdkVersion 4
  19. }
  20. }
  21. buildscript {
  22. repositories {
  23. maven {
  24. url 'https://repo.huaweicloud.com/repository/maven/'
  25. }
  26. maven {
  27. url 'https://developer.huawei.com/repo/'
  28. }
  29. jcenter()
  30. }
  31. dependencies {
  32. classpath 'com.huawei.ohos:hap:2.4.4.2'
  33. classpath 'com.huawei.ohos:decctest:1.2.4.0'
  34. }
  35. }
  36. allprojects {
  37. repositories {
  38. maven {
  39. url 'https://repo.huaweicloud.com/repository/maven/'
  40. }
  41. maven {
  42. url 'https://developer.huawei.com/repo/'
  43. }
  44. jcenter()
  45. }
  46. }