build.gradle 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. apply plugin: 'com.android.library'
  2. apply from: rootProject.file("bintrayUpload.gradle")
  3. android {
  4. // publishNonDefault true
  5. compileSdkVersion 23
  6. buildToolsVersion "25.0.2"
  7. defaultConfig {
  8. minSdkVersion 14
  9. targetSdkVersion 23
  10. versionCode 1
  11. versionName "1.0"
  12. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  13. externalNativeBuild {
  14. cmake {
  15. arguments '-DBUILD_TESTING=OFF', '-DANDROID_TOOLCHAIN=gcc'
  16. cFlags "-std=c11"
  17. abiFilters 'armeabi', 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
  18. }
  19. }
  20. }
  21. buildTypes {
  22. release {
  23. minifyEnabled false
  24. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  25. }
  26. debug {
  27. jniDebuggable true
  28. testCoverageEnabled true
  29. }
  30. }
  31. externalNativeBuild {
  32. cmake {
  33. path "CMakeLists.txt"
  34. }
  35. }
  36. }
  37. dependencies {
  38. compile fileTree(include: ['*.jar'], dir: 'libs')
  39. androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
  40. exclude group: 'com.android.support', module: 'support-annotations'
  41. })
  42. testCompile 'junit:junit:4.12'
  43. }