You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.gradle 1.6 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 30
  4. buildToolsVersion "30.0.1"
  5. defaultConfig {
  6. applicationId "com.mindspore.posnetdemo"
  7. minSdkVersion 21
  8. targetSdkVersion 30
  9. versionCode 1
  10. versionName "1.0"
  11. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  12. }
  13. buildTypes {
  14. release {
  15. minifyEnabled false
  16. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  17. }
  18. }
  19. aaptOptions {
  20. noCompress "ms"
  21. }
  22. lintOptions {
  23. checkReleaseBuilds false
  24. // Or, if you prefer, you can continue to check for errors in release builds,
  25. // but continue the build even when errors are found:
  26. abortOnError false
  27. }
  28. repositories {
  29. google()
  30. jcenter()
  31. flatDir {
  32. dirs 'libs'
  33. }
  34. }
  35. }
  36. // Download default models; if you wish to use your own models then
  37. // place them in the "assets" directory and comment out this line.
  38. apply from:'download.gradle'
  39. dependencies {
  40. implementation fileTree(dir: "libs", include: ["*.aar"])
  41. implementation 'androidx.appcompat:appcompat:1.2.0'
  42. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  43. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  44. testImplementation 'junit:junit:4.12'
  45. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  46. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  47. }