build.gradle 1.7 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\\Administrator\\.ohos\\config\\auto_debug_260086000069925411.p12')
  8. storePassword '0000001832E774DA16C0E6930236A2F70BE06152E2F15C7AC197E6B82FEB427B1585FF4F6B15C33C'
  9. keyAlias = 'debugKey'
  10. keyPassword '00000018C3FB65E006246B92BDB0688783666B0821EEA6CB375EBE5A41945CFBAF77AFCDF8584FB1'
  11. signAlg = 'SHA256withECDSA'
  12. profile file('C:\\Users\\Administrator\\.ohos\\config\\auto_debug_test_260086000069925411.p7b')
  13. certpath file('C:\\Users\\Administrator\\.ohos\\config\\auto_debug_260086000069925411.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.5.0'
  33. classpath 'com.huawei.ohos:decctest:1.2.4.1'
  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. }