build.gradle 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions'
  4. apply plugin: 'kotlin-kapt'
  5. android {
  6. compileSdkVersion target_sdk_version
  7. buildToolsVersion build_tools_version
  8. defaultConfig {
  9. minSdkVersion min_sdk_version
  10. targetSdkVersion target_sdk_version
  11. versionCode app_version_code
  12. versionName app_version
  13. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  14. multiDexEnabled true
  15. dataBinding {
  16. enabled = true
  17. }
  18. buildConfigField "String", "APP_DEVICE_TYPE", "\""+app_device_type+"\""
  19. }
  20. lintOptions {
  21. abortOnError false
  22. }
  23. buildTypes {
  24. release {
  25. minifyEnabled false
  26. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  27. }
  28. }
  29. sourceSets {
  30. main.java.srcDirs += 'src/main/code'
  31. }
  32. compileOptions {
  33. sourceCompatibility JavaVersion.VERSION_1_8
  34. targetCompatibility JavaVersion.VERSION_1_8
  35. }
  36. kotlinOptions {
  37. jvmTarget = '1.8'
  38. }
  39. }
  40. dependencies {
  41. compile fileTree(include: ['*.jar'], dir: 'libs')
  42. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  43. implementation 'androidx.core:core-ktx:1.3.1'
  44. implementation 'androidx.appcompat:appcompat:1.2.0'
  45. implementation 'com.google.android.material:material:1.2.1'
  46. //testImplementation 'junit:junit:4.+'
  47. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  48. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  49. /**
  50. * UI适配
  51. */
  52. compile 'me.jessyan:autosize:1.1.1'
  53. /**
  54. * 圆形ImageView
  55. */
  56. compile 'de.hdodenhof:circleimageview:2.2.0'
  57. /**
  58. * JavaShop_Android 基础工具库
  59. */
  60. compile 'com.enation.geamtear.util:base:1.1.4'
  61. /**
  62. * JavaShop_Android 网络库
  63. */
  64. compile 'com.enation.geamtear.net:engine:1.1.5'
  65. /**
  66. * JavaShop_Android 图片加载库
  67. */
  68. compile 'com.enation.geamtear.image:glidepluin:1.0.2'
  69. /**
  70. * JavaShop_Android 第三方工具库
  71. */
  72. compile 'com.enation.geamtear.widget:ConnectView:1.1.1'
  73. /**
  74. * JavaShop_Android 地区选择工具库
  75. */
  76. compile 'com.enation.geamtear.widget:districtselectorview:1.0.6'
  77. /**
  78. * JavaShop_Android 导航View
  79. */
  80. compile 'com.enation.geamtear.widget:NavigationView:1.1.0'
  81. /**
  82. * JavaShop_Android 路由
  83. */
  84. compile 'com.enation.geamtear:jrouter-logic:1.0.3'
  85. compile 'com.enation.geamtear:jrouter-annotation:1.0.1'
  86. /**
  87. * JavaShop_Android 图片选择工具库
  88. */
  89. compile('com.enation.geamtear.photo:takephoto:1.0.2') {
  90. exclude group: 'com.github.bumptech.glide'
  91. exclude group: 'io.reactivex.rxjava2'
  92. }
  93. /**
  94. * JavaShop_Android Log日志库
  95. */
  96. compile 'com.enation.geamtear.util:logger:1.0.7'
  97. /**
  98. * 突破方法数限制
  99. */
  100. implementation("androidx.multidex:multidex:2.0.1")
  101. compile 'com.github.1002326270xc:LayoutManager-FlowLayout:v1.7'
  102. /**
  103. * 刷新数据控件
  104. */
  105. compile 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0-alpha-18'
  106. /**
  107. * 动画框架 巨牛逼
  108. */
  109. compile 'com.airbnb.android:lottie:1.5.3'
  110. /**
  111. * Kotlin依赖
  112. */
  113. compile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  114. compile 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.27.0'
  115. /**
  116. * Dagger依赖
  117. */
  118. compile 'com.google.dagger:dagger:2.7'
  119. /**
  120. * Dagger编译依赖
  121. */
  122. kapt 'com.google.dagger:dagger-compiler:2.7'
  123. /**
  124. * 七巧板框架
  125. */
  126. compile 'com.alibaba.android:tangram:2.0.0@aar'
  127. compile('com.alibaba.android:vlayout:1.2.6.1@aar')
  128. compile 'com.alibaba.android:ultraviewpager:1.0.6.5@aar'
  129. compile('me.everything:overscroll-decor-android:1.0.1@aar') {
  130. transitive true
  131. exclude group: 'com.android.support', module: 'recyclerview-v7'
  132. }
  133. compile('com.alibaba.android:virtualview:1.0.2@aar') {
  134. transitive true
  135. exclude group: 'com.android.support', module: 'appcompat-v7'
  136. exclude group: 'com.tmall.android', module: 'tmallandroid_mui'
  137. exclude group: 'com.google.android', module: 'support-v7-recyclerview'
  138. exclude group: 'com.android.support', module: 'support-v4'
  139. exclude group: 'com.android.support', module: 'support-annotations'
  140. }
  141. //compile 'com.alibaba.android:tangram:2.2.1@aar'
  142. /**
  143. * Aop埋点
  144. */
  145. compile "org.aspectj:aspectjrt:$aspectj_version"
  146. /**
  147. * constraint-layout布局依赖
  148. */
  149. implementation("androidx.constraintlayout:constraintlayout:2.1.4")
  150. /**
  151. * 指示器
  152. */
  153. compile 'com.github.hackware1993:magicindicator:1.5.0'
  154. /**
  155. * 汉字辅助
  156. */
  157. compile files('libs/chinese2py.jar')
  158. //toast 框架
  159. api(name: 'Toaster-12.2', ext: 'aar')
  160. /**
  161. * 二维码扫描
  162. */
  163. compile 'cn.yipianfengye.android:zxing-library:2.2'
  164. /**
  165. * GLIDE 图片处理器
  166. */
  167. compile ('jp.wasabeef:glide-transformations:2.0.1') {
  168. exclude group: 'com.github.bumptech.glide'
  169. }
  170. /**
  171. * 时间选择器
  172. */
  173. compile 'com.contrarywind:Android-PickerView:4.1.6'
  174. /**
  175. * 图片查看器
  176. */
  177. compile 'com.github.iielse:ImageWatcher:1.1.5'
  178. /**
  179. * 权限控制
  180. */
  181. compile 'pub.devrel:easypermissions:0.2.0'
  182. compile 'com.github.pinguo-zhouwei:MZBannerView:v2.0.2'
  183. //okthttp
  184. //compile 'com.squareup.okhttp3:okhttp:3.10.0'
  185. //compile 'com.squareup.okio:okio:1.12.0'
  186. //eventbus
  187. compile 'org.greenrobot:eventbus:3.0.0'
  188. /**
  189. * netty
  190. */
  191. compile 'io.netty:netty-all:4.1.42.Final'
  192. //解决 引入上方库,Log4J2Logger报错的问题
  193. annotationProcessor 'org.apache.logging.log4j:log4j-core:2.7'
  194. implementation 'org.apache.logging.log4j:log4j-api:2.7'
  195. /**
  196. * json
  197. */
  198. compile 'com.alibaba:fastjson:1.2.23'
  199. /**
  200. * google
  201. */
  202. compile 'com.google.guava:guava:23.0'
  203. //linphone sip sdk
  204. api(name: 'linphone-sdk-android-5.0.71', ext: 'aar')
  205. }
  206. //tasks.withType(JavaCompile) {
  207. // compileTask -> compileTask.dependsOn ndkBuild
  208. //}
  209. //
  210. //task ndkBuild(type: Exec) {
  211. // workingDir file('src/main/jni')
  212. // commandLine getNdkBuildCmd()
  213. //}
  214. //
  215. //task cleanNative(type: Exec){
  216. // workingDir file('src/main/jni')
  217. // commandLine getNdkBuildCmd(), 'clean'
  218. //}
  219. //
  220. //clean.dependsOn cleanNative
  221. //
  222. //def getNdkDir() {
  223. // if (System.env.ANDROID_NDK_ROOT != null)
  224. // return System.env.ANDROID_NDK_ROOT
  225. // Properties properties = new Properties()
  226. // properties.load(project.rootProject.file('local.properties').newDataInputStream())
  227. // def ndkdir = properties.getProperty('ndk.dir', null)
  228. // if (ndkdir == null)
  229. // throw new GradleException("NDK location not found. Define location with ndk.dir in the local.properties file or with an ANDROID_NDK_ROOT environment variable.")
  230. // return ndkdir
  231. //}
  232. //
  233. //def getNdkBuildCmd() {
  234. // def ndkbuild = getNdkDir() + "/ndk-build"
  235. // //Window下需要加.cmd后缀,Mac下则不需要
  236. // ndkbuild += ""
  237. // return ndkbuild
  238. //}