build.gradle 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion versions.compileSdk
  4. buildToolsVersion versions.buildTools
  5. defaultConfig {
  6. applicationId "com.miekir.ocr"
  7. minSdkVersion versions.minSdk
  8. targetSdkVersion versions.targetSdk
  9. versionCode 12
  10. versionName "1.0.12"
  11. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  12. }
  13. compileOptions {
  14. sourceCompatibility JavaVersion.VERSION_1_8
  15. targetCompatibility JavaVersion.VERSION_1_8
  16. }
  17. signingConfigs {
  18. config {
  19. storeFile file('commonkey')
  20. storePassword "away6899458"
  21. keyAlias "sz"
  22. keyPassword "away6899458"
  23. }
  24. }
  25. buildTypes {
  26. debug {
  27. debuggable true
  28. minifyEnabled false
  29. signingConfig signingConfigs.config
  30. }
  31. release {
  32. debuggable true
  33. minifyEnabled false
  34. signingConfig signingConfigs.config
  35. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  36. }
  37. }
  38. android.applicationVariants.all { variant ->
  39. variant.outputs.all {
  40. outputFileName = "NRI AIOCR-${defaultConfig.versionName}-${defaultConfig.versionCode}-${releaseTime()}.apk"
  41. }
  42. }
  43. }
  44. def static releaseTime() {
  45. return new Date().format("yyyyMMdd", TimeZone.getTimeZone("GMT+08:00"))
  46. }
  47. dependencies {
  48. implementation fileTree(dir: 'libs', include: ['*.jar'])
  49. implementation 'androidx.appcompat:appcompat:1.1.0'
  50. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  51. testImplementation 'junit:junit:4.12'
  52. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  53. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  54. compile project(path: ':common')
  55. implementation project(path: ':network')
  56. implementation project(path: ':mvp')
  57. implementation project(path: ':adapter')
  58. // 权限申请
  59. compile 'com.tbruyelle.rxpermissions2:rxpermissions:0.8.1@aar'
  60. // 裁剪图片
  61. //compile 'com.isseiaoki:simplecropview:1.1.8'
  62. //api 'com.theartofdev.edmodo:android-image-cropper:2.8.+'
  63. // 图片选择
  64. //implementation 'com.zhihu.android:matisse:0.5.2'
  65. implementation 'com.zhihu.android:matisse:0.5.3-beta3'
  66. //startActivityForResult
  67. //implementation 'com.github.VictorAlbertos:RxActivityResult:0.5.0-2.x'
  68. // 图片压缩
  69. //implementation 'id.zelory:compressor:2.1.0'
  70. implementation 'top.zibin:Luban:1.1.8'
  71. // crash捕获
  72. implementation 'cn.yc:ToolLib:1.2.0'
  73. implementation project(path: ':camera')
  74. }