build.gradle 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 23
  4. buildToolsVersion '21.1.2'
  5. defaultConfig {
  6. targetSdkVersion 23
  7. minSdkVersion 14
  8. ndk {
  9. abiFilters 'armeabi-v7a' //只生成armv7的so
  10. }
  11. }
  12. buildFeatures {
  13. aidl true
  14. }
  15. sourceSets {
  16. main {
  17. manifest.srcFile 'AndroidManifest.xml'
  18. java.srcDirs = ['src']
  19. resources.srcDirs = ['src']
  20. aidl.srcDirs = ['src']
  21. renderscript.srcDirs = ['src']
  22. res.srcDirs = ['res']
  23. assets.srcDirs = ['assets']
  24. jniLibs.srcDirs = ['libs']
  25. }
  26. }
  27. buildTypes {
  28. release {
  29. minifyEnabled false
  30. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
  31. }
  32. debug {
  33. jniDebuggable true
  34. debuggable true
  35. }
  36. yufabu {
  37. jniDebuggable true
  38. debuggable true
  39. }
  40. }
  41. }
  42. repositories {
  43. flatDir {
  44. dirs 'libs'
  45. }
  46. }
  47. dependencies {
  48. compile files('libs/microlog4android-1.1.jar')
  49. compile fileTree(dir: 'libs', include: ['*.jar'])
  50. compile files('libs/log4j-1.2.17.jar')
  51. compile files('libs/android-logging-log4j-1.0.3.jar')
  52. implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
  53. }
  54. buildscript {
  55. repositories {
  56. jcenter()
  57. }
  58. dependencies {
  59. classpath 'com.android.tools.build:gradle:2.0.0'
  60. }
  61. }