build.gradle 1003 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. compileSdkVersion 5
  6. defaultConfig {
  7. compatibleSdkVersion 4
  8. }
  9. }
  10. buildscript {
  11. repositories {
  12. maven {
  13. url 'https://repo.huaweicloud.com/repository/maven/'
  14. }
  15. maven {
  16. url 'https://developer.huawei.com/repo/'
  17. }
  18. jcenter()
  19. }
  20. dependencies {
  21. classpath 'com.huawei.ohos:hap:2.4.4.2'
  22. classpath 'com.huawei.ohos:decctest:1.2.4.0'
  23. }
  24. }
  25. allprojects {
  26. repositories {
  27. maven {
  28. url 'https://repo.huaweicloud.com/repository/maven/'
  29. }
  30. maven {
  31. url 'https://developer.huawei.com/repo/'
  32. }
  33. jcenter()
  34. }
  35. }