build.gradle 5.5 KB

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