build.gradle 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. repositories {
  18. flatDir {
  19. dirs 'libs'
  20. }
  21. }
  22. sourceSets {
  23. main {
  24. jniLibs.srcDirs = ['libs']
  25. }
  26. }
  27. compileOptions {
  28. sourceCompatibility JavaVersion.VERSION_1_8
  29. targetCompatibility JavaVersion.VERSION_1_8
  30. }
  31. }
  32. dependencies {
  33. implementation fileTree(dir: 'libs', include: ['*.jar'])
  34. // 天波-D2补光灯
  35. implementation files('libs/posutil_sdk_20231226.jar')
  36. implementation rootProject.ext.dependencies["appcompat"]
  37. implementation rootProject.ext.dependencies["material"]
  38. implementation rootProject.ext.dependencies["gson"]
  39. implementation rootProject.ext.dependencies["eventbus"]
  40. implementation rootProject.ext.dependencies["okhttp3"]
  41. implementation rootProject.ext.dependencies["okhttp3-log"]
  42. // 添加base依赖
  43. implementation project(path: ':lib_base')
  44. //AMPE
  45. implementation project(path: ':lib_ampe')
  46. //国密ma4加解密及签名-> 用到内部的FileUtils
  47. implementation 'com.blankj:utilcodex:1.31.1'
  48. }