ronaldkwandy

app.gradle

May 11th, 2018
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. apply plugin: 'com.android.application'
  2.  
  3. android {
  4. compileSdkVersion 27
  5. defaultConfig {
  6. applicationId "com.example.user.testjavacv"
  7. minSdkVersion 15
  8. targetSdkVersion 27
  9. versionCode 1
  10. versionName "1.0"
  11. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  12. externalNativeBuild {
  13. cmake {
  14. cppFlags ""
  15. }
  16. }
  17. }
  18. buildTypes {
  19. release {
  20. minifyEnabled false
  21. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  22. }
  23. }
  24. packagingOptions {
  25. exclude 'META-INF/services/javax.annotation.processing.Processor'
  26. pickFirst 'META-INF/maven/org.bytedeco.javacpp-presets/opencv/pom.properties'
  27. pickFirst 'META-INF/maven/org.bytedeco.javacpp-presets/opencv/pom.xml'
  28. pickFirst 'META-INF/maven/org.bytedeco.javacpp-presets/ffmpeg/pom.properties'
  29. pickFirst 'META-INF/maven/org.bytedeco.javacpp-presets/ffmpeg/pom.xml'
  30. }
  31. externalNativeBuild {
  32. cmake {
  33. path "CMakeLists.txt"
  34. }
  35. }
  36. splits {
  37. abi {
  38. enable true
  39. reset()
  40. include 'x86','x86_64','armeabi-v7a','arm64-v8a'
  41. universalApk false
  42. }
  43. }
  44. sourceSets {
  45. main {
  46. jni.srcDirs = ['src/main/jniLibs']
  47. }
  48. }
  49. }
  50.  
  51. dependencies {
  52. implementation fileTree(include: ['*.jar'], dir: 'libs')
  53. implementation 'com.android.support:appcompat-v7:27.1.1'
  54. implementation 'com.android.support.constraint:constraint-layout:1.1.0'
  55. testImplementation 'junit:junit:4.12'
  56. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  57. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  58. implementation group: 'org.bytedeco', name: 'javacv', version: '1.4'
  59. implementation group: 'org.bytedeco.javacpp-presets', name: 'opencv', version: '3.4.0-1.4.1', classifier: 'android-arm'
  60. implementation group: 'org.bytedeco.javacpp-presets', name: 'opencv', version: '3.4.0-1.4.1', classifier: 'android-x86'
  61. implementation group: 'org.bytedeco.javacpp-presets', name: 'ffmpeg', version: '3.4.1-1.4.1', classifier: 'android-arm'
  62. implementation group: 'org.bytedeco.javacpp-presets', name: 'ffmpeg', version: '3.4.1-1.4.1', classifier: 'android-x86'
  63. }
Advertisement
Add Comment
Please, Sign In to add comment