build.gradle 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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 16
  10. versionName "1.0.16"
  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. implementation project(path: ':cameraview')
  52. testImplementation 'junit:junit:4.12'
  53. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  54. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  55. compile project(path: ':common')
  56. implementation project(path: ':network')
  57. implementation project(path: ':mvp')
  58. implementation project(path: ':adapter')
  59. // 权限申请
  60. compile 'com.tbruyelle.rxpermissions2:rxpermissions:0.8.1@aar'
  61. // 裁剪图片
  62. //compile 'com.isseiaoki:simplecropview:1.1.8'
  63. //api 'com.theartofdev.edmodo:android-image-cropper:2.8.+'
  64. // 图片选择
  65. //implementation 'com.zhihu.android:matisse:0.5.2'
  66. implementation 'com.zhihu.android:matisse:0.5.3-beta3'
  67. //startActivityForResult
  68. //implementation 'com.github.VictorAlbertos:RxActivityResult:0.5.0-2.x'
  69. // 图片压缩
  70. //implementation 'id.zelory:compressor:2.1.0'
  71. implementation 'top.zibin:Luban:1.1.8'
  72. //compile 'me.shaohui.advancedluban:library:1.3.5'
  73. // crash捕获
  74. implementation 'cn.yc:ToolLib:1.2.0'
  75. implementation project(path: ':camera')
  76. //api 'com.otaliastudios:cameraview:2.6.4'
  77. }