build.gradle 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 25
  4. buildToolsVersion '25.0.3'
  5. defaultConfig {
  6. minSdkVersion 16
  7. targetSdkVersion 25
  8. versionCode 1
  9. versionName "1.0"
  10. externalNativeBuild {
  11. cmake {
  12. arguments '-DANDROID_TOOLCHAIN=clang'
  13. }
  14. }
  15. ndk {
  16. abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64'
  17. }
  18. }
  19. buildTypes {
  20. release {
  21. minifyEnabled false
  22. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  23. }
  24. }
  25. externalNativeBuild {
  26. cmake {
  27. path "src/main/cpp/CMakeLists.txt"
  28. }
  29. }
  30. }
  31. dependencies {
  32. compile fileTree(dir: 'libs', include: ['*.jar'])
  33. androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
  34. exclude group: 'com.android.support', module: 'support-annotations'
  35. })
  36. compile 'com.android.support.constraint:constraint-layout:1.0.2'
  37. testCompile 'junit:junit:4.12'
  38. }