build.gradle 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. apply plugin: 'com.android.application'
  2. android {
  3. lintOptions {
  4. checkReleaseBuilds false
  5. abortOnError false
  6. }
  7. compileSdkVersion 28
  8. buildToolsVersion "29.0.2"
  9. defaultConfig {
  10. applicationId "com.baianxi.safemanager"
  11. minSdkVersion 21
  12. targetSdkVersion 28
  13. versionCode 3
  14. versionName "1.0.3"
  15. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  16. //////////////JPUSH start///////////////
  17. ndk {
  18. //选择要添加的对应 cpu 类型的 .so 库。
  19. abiFilters 'armeabi', 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64', 'mips', 'mips64'
  20. // 还可以添加 'x86', 'x86_64', 'mips', 'mips64'
  21. }
  22. manifestPlaceholders = [
  23. JPUSH_PKGNAME : applicationId,
  24. JPUSH_APPKEY : "6aba55e8e8dacb49a5290b6e", //JPush 上注册的包名对应的 Appkey.
  25. JPUSH_CHANNEL : "developer-default", //暂时填写默认值即可.
  26. ]
  27. //////////////JPUSH end///////////////
  28. // multiDexEnabled true
  29. }
  30. buildTypes {
  31. release {
  32. minifyEnabled false
  33. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  34. }
  35. }
  36. compileOptions {
  37. sourceCompatibility JavaVersion.VERSION_1_8
  38. targetCompatibility JavaVersion.VERSION_1_8
  39. }
  40. }
  41. dependencies {
  42. implementation fileTree(dir: 'libs', include: ['*.jar'])
  43. implementation 'androidx.appcompat:appcompat:1.2.0'
  44. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  45. implementation 'com.google.android.material:material:1.2.0'
  46. implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
  47. implementation 'androidx.navigation:navigation-fragment:2.3.0'
  48. implementation 'androidx.navigation:navigation-ui:2.3.0'
  49. implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
  50. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  51. implementation 'androidx.recyclerview:recyclerview:1.1.0'
  52. // testImplementation 'junit:junit:4.12'
  53. // androidTestImplementation 'androidx.test.ext:junit:1.1.0'
  54. // androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
  55. //万能适配器
  56. // implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4'
  57. // implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.47'
  58. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.50'
  59. implementation 'org.greenrobot:eventbus:3.2.0'
  60. implementation 'com.google.zxing:core:3.3.3'
  61. implementation('com.journeyapps:zxing-android-embedded:3.6.0') { transitive = false }
  62. // implementation 'com.contrarywind:Android-PickerView:4.1.9'
  63. // // Retrofit+OKHttp
  64. // implementation 'com.squareup.retrofit2:retrofit:2.5.0'
  65. implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
  66. // implementation 'com.squareup.retrofit2:adapter-rxjava2:2.4.0'
  67. // implementation 'com.squareup.okhttp3:okhttp:4.8.0'
  68. implementation('com.squareup.okhttp3:okhttp:3.10.0')
  69. // implementation 'com.squareup.okhttp3:logging-interceptor:4.3.1'
  70. // /** Android和Java的内存泄漏检测库 **/
  71. // debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5.4'
  72. // releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'
  73. //极光推送
  74. implementation 'cn.jiguang.sdk:jpush:3.6.7' // 此处以JPush 3.6.6 版本为例。
  75. implementation 'cn.jiguang.sdk:jcore:2.3.8' // 此处以JCore 2.3.8 版本为例。
  76. //fastjson
  77. implementation 'com.alibaba:fastjson:1.2.60'
  78. //图片加载
  79. implementation 'com.github.bumptech.glide:glide:4.11.0'
  80. annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
  81. // // Glide图形转换工具
  82. implementation 'jp.wasabeef:glide-transformations:4.1.0'
  83. // // Glide
  84. // implementation 'com.github.bumptech.glide:glide:3.7.0'
  85. // // GPUImage
  86. // implementation 'jp.co.cyberagent.android.gpuimage:gpuimage-library:1.3.0'
  87. // implementation 'com.github.bumptech.glide:glide:4.11.0'
  88. // annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
  89. //图片拍照
  90. implementation 'com.sl.utakephoto:uTakePhoto:1.1.0'
  91. //图片选择
  92. implementation 'com.zhihu.android:matisse:0.5.3-beta3'
  93. //图片预览
  94. implementation 'com.ycjiang:ImagePreview:2.3.5'
  95. //图片压缩
  96. implementation 'com.github.nanchen2251:CompressHelper:1.0.5'
  97. //多级选择框
  98. implementation 'com.contrarywind:Android-PickerView:4.1.9'
  99. //文件选择
  100. implementation 'com.leon:lfilepickerlibrary:1.8.0'
  101. // implementation 'com.ycjiang:imgepreviewlibrary:1.1.3'
  102. implementation 'com.facebook.stetho:stetho:1.5.1'
  103. //完整版引入视频播放库
  104. // implementation 'com.shuyu:GSYVideoPlayer:7.1.4'
  105. implementation 'com.shuyu:gsyVideoPlayer-java:7.1.4'
  106. // //是否需要ExoPlayer模式
  107. // implementation 'com.shuyu:GSYVideoPlayer-exo2:7.1.4'
  108. // //根据你的需求ijk模式的so
  109. // implementation 'com.shuyu:gsyVideoPlayer-armv5:7.1.4'
  110. implementation 'com.shuyu:gsyVideoPlayer-armv7a:7.1.4'
  111. implementation 'com.shuyu:gsyVideoPlayer-arm64:7.1.4'
  112. // implementation 'com.shuyu:gsyVideoPlayer-x64:7.1.4'
  113. // implementation 'com.shuyu:gsyVideoPlayer-x86:7.1.4'
  114. //视频录制
  115. implementation 'com.github.MingYueChunQiu:RecorderManager:0.2.29'
  116. //列表侧滑弹窗删除按钮
  117. implementation 'com.yanzhenjie.recyclerview:x:1.3.2'
  118. //下拉菜单
  119. implementation 'com.github.arcadefire:nice-spinner:1.4.4'
  120. }