build.gradle 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion rootProject.ext.android['compileSdkVersion']
  4. defaultConfig {
  5. minSdkVersion rootProject.ext.android.minSdkVersion
  6. targetSdkVersion rootProject.ext.android.targetSdkVersion
  7. externalNativeBuild {
  8. cmake {
  9. cppFlags '-std=c++11'
  10. }
  11. }
  12. }
  13. buildTypes {
  14. release {
  15. minifyEnabled false
  16. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  17. }
  18. debug{
  19. minifyEnabled false
  20. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  21. }
  22. preRelease{
  23. minifyEnabled false
  24. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  25. }
  26. }
  27. externalNativeBuild {
  28. cmake {
  29. path 'src/main/cpp/CMakeLists.txt'
  30. }
  31. }
  32. compileOptions {
  33. sourceCompatibility JavaVersion.VERSION_1_8
  34. targetCompatibility JavaVersion.VERSION_1_8
  35. }
  36. }
  37. dependencies {
  38. implementation 'androidx.annotation:annotation:1.0.1'
  39. implementation 'com.camerakit:jpegkit:0.2.2'
  40. testImplementation 'junit:junit:4.12'
  41. implementation 'com.google.android.gms:play-services-vision:10.2.1'
  42. }