build.gradle 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. plugins {
  2. id 'com.android.application'
  3. id 'kotlin-android'
  4. }
  5. android {
  6. compileSdkVersion 30
  7. buildToolsVersion "30.0.3"
  8. defaultConfig {
  9. applicationId "com.dy.sy.ticket_check"
  10. minSdkVersion 21
  11. targetSdkVersion 30
  12. versionCode 3
  13. versionName "1.3"
  14. ndk {
  15. abiFilter "armeabi-v7a"
  16. }
  17. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  18. }
  19. buildTypes {
  20. release {
  21. minifyEnabled false
  22. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  23. }
  24. }
  25. compileOptions {
  26. sourceCompatibility JavaVersion.VERSION_1_8
  27. targetCompatibility JavaVersion.VERSION_1_8
  28. }
  29. kotlinOptions {
  30. jvmTarget = '1.8'
  31. }
  32. viewBinding {
  33. enabled = true
  34. }
  35. sourceSets {
  36. main {
  37. jniLibs.srcDirs = ['libs']
  38. }
  39. }
  40. }
  41. dependencies {
  42. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  43. implementation 'androidx.core:core-ktx:1.3.1'
  44. implementation 'androidx.appcompat:appcompat:1.2.0'
  45. implementation 'com.google.android.material:material:1.2.1'
  46. implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
  47. implementation project(path: ':core_lib')
  48. implementation fileTree(include: ['*.jar'], dir: 'libs')
  49. testImplementation 'junit:junit:4.+'
  50. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  51. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  52. //条码二维码扫描
  53. //AndroidX 版本
  54. implementation 'com.github.jenly1314:zxing-lite:2.1.0'
  55. implementation 'com.google.code.gson:gson:2.8.6'
  56. implementation 'pub.devrel:easypermissions:1.3.0'
  57. implementation 'com.tencent.bugly:crashreport:latest.release'
  58. implementation project(':cameraui')
  59. implementation files('libs/baidu_idcard.jar')
  60. implementation files('libs/baidu_easymobile_license.jar')
  61. implementation files('libs/bd_unifylicense.jar')
  62. implementation files('libs/liantian.jar')
  63. }