build.gradle 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. plugins {
  2. id 'com.android.library'
  3. id 'org.jetbrains.kotlin.android'
  4. id 'kotlin-android-extensions'
  5. }
  6. android {
  7. compileSdkVersion rootProject.ext.android["compileSdkVersion"]
  8. buildToolsVersion rootProject.ext.android["buildToolsVersion"]
  9. defaultConfig {
  10. minSdkVersion rootProject.ext.android["minSdkVersion"]
  11. targetSdkVersion rootProject.ext.android["targetSdkVersion"]
  12. }
  13. buildTypes {
  14. // 因为支付宝刷脸需要包名一致,所以以后仅使用release版本,不再使用debug版本
  15. release {
  16. // 服务器地址
  17. // 正式
  18. buildConfigField("String", "BASE_URL", "\"https://tx.hz-hanghui.com:8088/\"")
  19. // 测试
  20. // buildConfigField("String", "BASE_URL", "\"https://test.hz-hanghui.com:18890/\"")
  21. buildConfigField("String", "BASE_API_URL", "\"hanghui-server-platform/\"")
  22. buildConfigField("String", "BASE_URL_OMC", "\"https://hhomc.hz-hanghui.com:8096/\"")
  23. // aidl服务端包名
  24. buildConfigField("String", "AIDL_SERVER_APP_PACKAGE_NAME", "\"com.hh.hhomc\"")
  25. resValue "string", "app_name", "HHArome"
  26. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  27. //自定义Gradle常量
  28. buildConfigField("boolean", "LOG_DEBUG", "false")
  29. buildConfigField("String", "LOG_TAG", "\"HHArome\"")
  30. buildConfigField("String", "SP_NAME", "\"Sp_Config\"")
  31. }
  32. }
  33. compileOptions {
  34. sourceCompatibility JavaVersion.VERSION_1_8
  35. targetCompatibility JavaVersion.VERSION_1_8
  36. }
  37. }
  38. dependencies {
  39. implementation fileTree(dir: 'libs', include: ['*.jar'])
  40. implementation rootProject.ext.dependencies["appcompat"]
  41. implementation rootProject.ext.dependencies["material"]
  42. implementation rootProject.ext.dependencies["rxjava2"]
  43. implementation rootProject.ext.dependencies["rxandroid2"]
  44. implementation rootProject.ext.dependencies["okhttp3"]
  45. implementation rootProject.ext.dependencies["okhttp3-log"]
  46. implementation rootProject.ext.dependencies["retrofit"]
  47. implementation rootProject.ext.dependencies["retrofit-gson"]
  48. implementation rootProject.ext.dependencies["retrofit-adapter-rxjava"]
  49. implementation("com.github.bumptech.glide:okhttp3-integration:4.12.0" ) {
  50. exclude group: "com.android.support"
  51. }
  52. implementation rootProject.ext.dependencies["eventbus"]
  53. //国密ma4加解密及签名
  54. implementation 'com.blankj:utilcodex:1.31.1'
  55. implementation files('libs\\posutil_sdk_20231226.jar')
  56. //沉浸式
  57. implementation rootProject.ext.dependencies["immersionbar"]
  58. api rootProject.ext.dependencies["autosize"]
  59. }