build.gradle 2.0 KB

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