build.gradle 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. }
  37. }
  38. repositories {
  39. flatDir {
  40. dirs 'libs'
  41. }
  42. }
  43. dependencies {
  44. compile files('libs/microlog4android-1.1.jar')
  45. compile fileTree(dir: 'libs', include: ['*.jar'])
  46. compile files('libs/log4j-1.2.17.jar')
  47. compile files('libs/android-logging-log4j-1.0.3.jar')
  48. implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
  49. }
  50. buildscript {
  51. repositories {
  52. jcenter()
  53. }
  54. dependencies {
  55. classpath 'com.android.tools.build:gradle:2.0.0'
  56. }
  57. }