build.gradle 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 23
  4. buildToolsVersion '21.1.2'
  5. defaultConfig {
  6. targetSdkVersion 22
  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. compile files('libs/SerialPort.jar')
  53. implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
  54. implementation 'androidx.appcompat:appcompat:1.0.2'//1.1.0
  55. implementation 'com.google.android.material:material:1.1.0'
  56. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  57. implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
  58. // implementation 'com.google.android:support-v4:r7'
  59. }
  60. buildscript {
  61. repositories {
  62. jcenter()
  63. }
  64. dependencies {
  65. classpath 'com.android.tools.build:gradle:2.0.0'
  66. }
  67. }