build.gradle 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. plugins {
  2. id 'com.android.library'
  3. }
  4. android {
  5. compileSdkVersion rootProject.ext.android["compileSdkVersion"]
  6. buildToolsVersion rootProject.ext.android["buildToolsVersion"]
  7. defaultConfig {
  8. minSdkVersion rootProject.ext.android["minSdkVersion"]
  9. targetSdkVersion rootProject.ext.android["targetSdkVersion"]
  10. }
  11. buildTypes {
  12. release {
  13. minifyEnabled false
  14. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  15. }
  16. }
  17. compileOptions {
  18. sourceCompatibility JavaVersion.VERSION_1_8
  19. targetCompatibility JavaVersion.VERSION_1_8
  20. }
  21. repositories {
  22. flatDir {
  23. dirs 'libs'
  24. }
  25. }
  26. sourceSets {
  27. main {
  28. jniLibs.srcDirs = ['libs']
  29. }
  30. }
  31. }
  32. dependencies {
  33. implementation fileTree(dir: 'libs', include: ['*.jar'])
  34. implementation rootProject.ext.dependencies["appcompat"]
  35. implementation rootProject.ext.dependencies["material"]
  36. implementation rootProject.ext.dependencies["annotation"]
  37. implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
  38. implementation project(path: ':lib_base')
  39. implementation rootProject.ext.dependencies["gson"]
  40. implementation project(path: ':lib_idcard:lib_idcard_base')
  41. implementation files('libs/SerialPort.jar')
  42. implementation files('libs\\android-logging-log4j-1.0.3.jar')
  43. implementation files('libs\\log4j-1.2.17.jar')
  44. }