7e24a1a0a9ec544558e99b990c258ca35c3008cd.svn-base 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'org.greenrobot.greendao' // apply plugin
  3. android {
  4. compileSdkVersion rootProject.ext.compileSdkVersion
  5. buildToolsVersion rootProject.ext.buildToolsVersion
  6. defaultConfig {
  7. applicationId "eVVM.apk"
  8. minSdkVersion 15
  9. targetSdkVersion rootProject.ext.targetSdkVersion
  10. versionCode 107
  11. versionName "1.0.7"
  12. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  13. multiDexEnabled true
  14. javaCompileOptions {
  15. annotationProcessorOptions {
  16. // EventBus Apt 索引类生成位置
  17. arguments = [eventBusIndex: applicationId + '.MyEventBusIndex']
  18. }
  19. }
  20. ndk {
  21. //选择要添加的对应 cpu 类型的 .so 库。
  22. abiFilters 'armeabi', 'armeabi-v7a', 'arm64-v8a'
  23. // 还可以添加 'x86', 'x86_64', 'mips', 'mips64'
  24. }
  25. manifestPlaceholders = [
  26. JPUSH_PKGNAME: applicationId,
  27. JPUSH_APPKEY : "a34cef708ddaa15e2d8367f0", //JPush 上注册的包名对应的 Appkey.
  28. JPUSH_CHANNEL: "developer-default", //暂时填写默认值即可.
  29. ]
  30. }
  31. packagingOptions {
  32. doNotStrip '*/mips/*.so'
  33. doNotStrip '*/mips64/*.so'
  34. }
  35. buildTypes {
  36. release {
  37. minifyEnabled false
  38. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  39. }
  40. }
  41. // JNI 目录
  42. sourceSets {
  43. main {
  44. jniLibs.srcDirs = ['libs']
  45. }
  46. }
  47. }
  48. greendao {
  49. /**
  50. * 数据库版本
  51. */
  52. schemaVersion 1
  53. /**
  54. * greenDao输出到Dao数据库实体操作类文件目录
  55. */
  56. daoPackage 'greendao'
  57. /**
  58. * GreenDao实体类dao文件目录
  59. */
  60. targetGenDir 'src/main/java'
  61. }
  62. dependencies {
  63. // 依赖 libs 目录下所有 jar 包
  64. implementation fileTree(include: ['*.jar'], dir: 'libs')
  65. // 依赖 libs 目录下所有 aar 包
  66. implementation fileTree(include: ['*.aar'], dir: 'libs')
  67. implementation fileTree(dir: 'libs', include: ['*.jar'])
  68. // 基础库(不包任何第三方框架)
  69. implementation project(':base')
  70. // 自定义 View
  71. implementation project(':widget')
  72. // Dialog 封装
  73. implementation project(':dialog')
  74. // Glide
  75. implementation project(':image')
  76. implementation 'com.android.support:appcompat-v7:28.0.0'
  77. implementation 'com.android.support:support-v4:28.0.0'
  78. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  79. testImplementation 'junit:junit:4.12'
  80. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  81. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  82. implementation 'com.android.support:appcompat-v7:28.0.0'
  83. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  84. testImplementation 'junit:junit:4.12'
  85. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  86. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  87. implementation "com.android.support:design:$rootProject.ext.supportLibraryVersion"
  88. implementation 'com.alibaba:fastjson:1.1.71.android'
  89. // Dex分包,解决 64k 问题
  90. implementation 'com.android.support:multidex:1.0.3'
  91. // ButterKnife
  92. implementation 'com.jakewharton:butterknife:9.0.0-rc1'
  93. annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0-rc1'
  94. // EventBus
  95. implementation "org.greenrobot:eventbus:3.1.1"
  96. annotationProcessor 'org.greenrobot:eventbus-annotation-processor:3.1.1'
  97. //recyclerview
  98. implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
  99. implementation 'com.android.support:recyclerview-v7:28.0.0-alpha1'
  100. // 状态栏沉浸
  101. implementation 'com.gyf.immersionbar:immersionbar:2.3.3'
  102. // 侧滑功能
  103. implementation 'cn.bingoogolapple:bga-swipebacklayout:1.2.0'
  104. // 权限请求框架
  105. implementation 'com.hjq:xxpermissions:5.5'
  106. // 标题栏
  107. implementation 'com.hjq:titlebar:5.0'
  108. // 吐司工具类
  109. implementation 'com.hjq:toast:6.0'
  110. // viewhelper
  111. implementation 'com.nineoldandroids:library:2.4.0'
  112. // 圆形的ImageView
  113. implementation 'de.hdodenhof:circleimageview:2.2.0'
  114. // 支持放大缩放的ImageView
  115. implementation 'com.github.chrisbanes:PhotoView:2.0.0'
  116. //AutoSize
  117. implementation 'me.jessyan:autosize:1.1.2'
  118. //BGAQRCode-Android 二维码 + Android 图片选择、预览、九宫格图片控件、拖拽排序九宫格图片控件
  119. implementation 'cn.bingoogolapple:bga-qrcode-zxing:1.3.6'
  120. implementation 'cn.bingoogolapple:bga-photopicker:1.2.8'
  121. implementation 'cn.bingoogolapple:bga-baseadapter:1.2.7'
  122. implementation 'cn.bingoogolapple:bga-banner:2.2.6@aar'
  123. //recyclerview适配器
  124. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.46'
  125. //网络请求框架
  126. implementation 'com.github.lygttpod:RxHttpUtils:2.3.3'
  127. //极光推送 官方文档 : https://docs.jiguang.cn/jpush/client/Android/android_api/
  128. implementation 'cn.jiguang.sdk:jpush:3.3.2'
  129. implementation 'cn.jiguang.sdk:jcore:2.0.1'
  130. //netcheck
  131. implementation 'com.github.tianma8023:NetDetector:v0.2.0'
  132. //上拉刷新下拉加载 https://github.com/anzaizai/EasyRefreshLayout
  133. implementation 'com.github.anzaizai:EasyRefreshLayout:1.3.1'
  134. //pdfview https://github.com/barteksc/AndroidPdfViewer
  135. implementation 'com.github.barteksc:android-pdf-viewer:2.8.2'
  136. //安卓数据库
  137. implementation 'org.greenrobot:greendao:3.3.0' // add library
  138. implementation 'org.greenrobot:greendao-generator:3.3.0'
  139. }