build.gradle 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. plugins {
  2. id 'com.android.application'
  3. }
  4. android {
  5. compileSdkVersion 30
  6. buildToolsVersion "30.0.3"
  7. defaultConfig {
  8. applicationId "com.elexlab.cybercontroller"
  9. minSdkVersion 28
  10. targetSdkVersion 30
  11. versionCode 1
  12. versionName "1.0"
  13. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  14. }
  15. buildTypes {
  16. release {
  17. minifyEnabled false
  18. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  19. }
  20. }
  21. compileOptions {
  22. sourceCompatibility JavaVersion.VERSION_1_8
  23. targetCompatibility JavaVersion.VERSION_1_8
  24. }
  25. }
  26. dependencies {
  27. implementation 'androidx.appcompat:appcompat:1.2.0'
  28. implementation 'com.google.android.material:material:1.3.0'
  29. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  30. testImplementation 'junit:junit:4.+'
  31. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  32. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  33. implementation 'com.github.mik3y:usb-serial-for-android:3.4.3'
  34. implementation 'com.huawei.agconnect:agconnect-core:1.5.2.300'
  35. // 引入基础SDK
  36. implementation 'com.huawei.hms:ml-computer-translate:3.3.0.306'
  37. // 引入文本翻译算法包
  38. implementation 'com.huawei.hms:ml-computer-translate-model:3.3.0.306'
  39. // 引入基础SDK
  40. implementation 'com.huawei.hms:ml-computer-vision-handkeypoint:3.3.0.300'
  41. // 引入手部关键点检测模型包
  42. implementation 'com.huawei.hms:ml-computer-vision-handkeypoint-model:3.3.0.300'
  43. // 引入手势识别模型包
  44. implementation 'com.huawei.hms:ml-computer-vision-gesture-model:3.3.0.300'
  45. // Liveness Detection sdk and FULL SDK
  46. implementation 'com.huawei.hms:ml-computer-vision-livenessdetection:2.2.0.300'
  47. //faceVerification
  48. implementation 'com.huawei.hms:ml-computer-vision-faceverify:2.2.0.300'
  49. implementation 'com.huawei.hms:ml-computer-vision-faceverify-model:2.2.0.300'
  50. // 引入基础SDK
  51. implementation 'com.huawei.hms:ml-computer-vision-face:3.3.0.300'
  52. // 引入人脸轮廓+关键点检测模型包
  53. implementation 'com.huawei.hms:ml-computer-vision-face-shape-point-model:3.3.0.300'
  54. // 引入表情检测模型包
  55. implementation 'com.huawei.hms:ml-computer-vision-face-emotion-model:3.3.0.300'
  56. // 引入特征检测模型包
  57. implementation 'com.huawei.hms:ml-computer-vision-face-feature-model:3.3.0.300'
  58. // 引入3d检测模型包
  59. implementation 'com.huawei.hms:ml-computer-vision-face-3d-model:3.3.0.300'
  60. // 引入实时语音识别服务插件
  61. implementation 'com.huawei.hms:ml-computer-voice-asr-plugin:3.3.0.300'
  62. // 引入基础SDK
  63. implementation 'com.huawei.hms:ml-computer-vision-ocr:3.3.0.301'
  64. // 引入拉丁语文字识别模型包
  65. implementation 'com.huawei.hms:ml-computer-vision-ocr-latin-model:3.3.0.301'
  66. // 引入日韩语文字识别模型包
  67. implementation 'com.huawei.hms:ml-computer-vision-ocr-jk-model:3.3.0.301'
  68. // 引入中英文文字识别模型包
  69. implementation 'com.huawei.hms:ml-computer-vision-ocr-cn-model:3.3.0.301'
  70. }
  71. apply plugin: 'com.huawei.agconnect'