build.gradle 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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/ide_debug_device-0000001053822404#section1112183053510
  4. ohos {
  5. compileSdkVersion 6
  6. defaultConfig {
  7. compatibleSdkVersion 5
  8. }
  9. buildTypes {
  10. release {
  11. proguardOpt {
  12. proguardEnabled false
  13. rulesFiles 'proguard-rules.pro'
  14. }
  15. }
  16. }
  17. }
  18. dependencies {
  19. implementation fileTree(dir: 'libs', include: ['*.jar', '*.har'])
  20. // https://mvnrepository.com/artifact/org.apache.commons/commons-lang3
  21. implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.11'
  22. // KLog
  23. implementation('com.gitee.chinasoft_ohos:KLog:1.0.0')
  24. // PagerBottomTabStrip
  25. implementation 'io.openharmony.tpc.thirdlib:PagerBottomTabStrip:1.0.1'
  26. // retrofit2+okhttp3+rxjava2
  27. implementation 'com.gitee.archermind-ti:retrofitcachelib:1.0.0-beta2'
  28. implementation 'com.gitee.archermind-ti:retrofitcachelibrx2:1.0.0-beta2'
  29. implementation 'io.reactivex.rxjava2:rxjava:2.0.7'
  30. implementation 'com.squareup.retrofit2:retrofit:2.5.0'
  31. implementation 'com.squareup.retrofit2:converter-gson:2.2.0'
  32. implementation 'com.squareup.retrofit2:adapter-rxjava2:2.2.0'
  33. // https://mvnrepository.com/artifact/com.alibaba/fastjson
  34. implementation group: 'com.alibaba', name: 'fastjson', version: '1.2.76'
  35. // ormlite-ohos
  36. implementation group: 'com.j256.ormlite', name: 'ormlite-core', version: '5.3'
  37. implementation 'io.openharmony.tpc.thirdlib:ormlite-ohos:1.0.1'
  38. // ToggleButtonGroup
  39. implementation 'com.gitee.baijuncheng-open-source:ToggleButtonGroup:1.0.1'
  40. // EventBus
  41. implementation 'io.openharmony.tpc.thirdlib:EventBus:1.0.4'
  42. // SwipeLayout滑动删除
  43. implementation 'io.openharmony.tpc.thirdlib:ohosSwipeLayout:1.0.0'
  44. annotationProcessor 'io.openharmony.tpc.thirdlib:eventbus-annotation-processor:1.0.1'
  45. // EventBus
  46. implementation 'io.openharmony.tpc.thirdlib:EventBus:1.0.4'
  47. annotationProcessor 'io.openharmony.tpc.thirdlib:eventbus-annotation-processor:1.0.1'
  48. // amqp
  49. implementation 'com.rabbitmq:amqp-client:5.12.0'
  50. implementation('com.gitee.chinasoft_ohos:ACProgressLite:1.0.0')
  51. // OkSocket
  52. implementation('com.gitee.chinasoft_ohos:socket-client:1.0.0')
  53. implementation('com.gitee.chinasoft_ohos:socket-common-interface:1.0.0')
  54. implementation('com.gitee.chinasoft_ohos:socket-server:1.0.0')
  55. implementation('com.gitee.chinasoft_ohos:socket-core:1.0.0')
  56. implementation('com.gitee.chinasoft_ohos:LeafChart:1.0.0')
  57. }
  58. decc {
  59. supportType = ['html', 'xml']
  60. }