build.gradle 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. plugins {
  2. id 'com.android.application'
  3. id 'org.jetbrains.kotlin.android'
  4. }
  5. android {
  6. namespace 'jx.cn.escort'
  7. compileSdk 34
  8. defaultConfig {
  9. applicationId "jx.cn.escort"
  10. minSdk 24
  11. targetSdk 34
  12. versionCode 1
  13. versionName "1.0"
  14. ndk { abiFilters "armeabi","x86","x86_64","armeabi-v7a","arm64-v8a" }
  15. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  16. }
  17. buildTypes {
  18. release {
  19. minifyEnabled false
  20. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  21. }
  22. }
  23. splits {
  24. abi {
  25. // enable true
  26. // reset()
  27. include "armeabi","x86","x86_64","armeabi-v7a","arm64-v8a"
  28. // universalApk false
  29. }
  30. }
  31. signingConfigs {
  32. def keypass=project.property("sign.keytool.keypass")
  33. def keystore=project.property("sign.keytool.storepass")
  34. def appAlias=project.property("sign.keytool.appAlias")
  35. release {
  36. storeFile file('.\\sign\\jxit.jks')
  37. storePassword keystore
  38. keyAlias appAlias
  39. keyPassword keypass
  40. }
  41. debug{
  42. storeFile file('.\\sign\\jxit.jks')
  43. storePassword keystore
  44. keyAlias appAlias
  45. keyPassword keypass
  46. }
  47. }
  48. compileOptions {
  49. sourceCompatibility JavaVersion.VERSION_1_8
  50. targetCompatibility JavaVersion.VERSION_1_8
  51. }
  52. kotlinOptions {
  53. jvmTarget = '1.8'
  54. }
  55. buildFeatures {
  56. viewBinding true
  57. dataBinding false
  58. buildConfig true
  59. }
  60. }
  61. dependencies {
  62. implementation libs.core.ktx
  63. implementation libs.appcompat
  64. implementation libs.material
  65. implementation libs.constraintlayout
  66. implementation libs.xui
  67. implementation libs.recyclerview
  68. implementation libs.glide
  69. implementation libs.androidx.navigation.ui.ktx
  70. implementation libs.koin.android
  71. implementation libs.preference
  72. implementation libs.calender
  73. implementation libs.camera2
  74. implementation libs.camera.core
  75. implementation libs.camera.life
  76. implementation libs.camera.video
  77. implementation libs.camera.view
  78. implementation libs.camera.mlkit
  79. implementation libs.camera.ext
  80. testImplementation 'junit:junit:4.13.2'
  81. androidTestImplementation 'androidx.test.ext:junit:1.1.5'
  82. androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
  83. }