build.gradle 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. //apply plugin: 'com.android.application'
  2. //apply plugin: 'com.didi.virtualapk.plugin'
  3. //
  4. //android {
  5. // compileSdkVersion ANDROID_COMPILE_SDK_VERSION as int
  6. //
  7. // defaultConfig {
  8. // applicationId "com.kfzs.cfyl.media"
  9. // minSdkVersion ANDROID_MIN_SDK_VERSION as int
  10. // targetSdkVersion ANDORID_TARGET_SDK_VERSION as int
  11. // versionCode 1
  12. // versionName "1.0"
  13. //
  14. // testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  15. //
  16. // ndk {
  17. // abiFilters "armeabi-v7a"
  18. //// abiFilters 'x86'
  19. //// abiFilters "armeabi-v7a"//, 'x86'//, 'armeabi-v7a', 'x86_64', 'arm64-v8a'
  20. // }
  21. // }
  22. //
  23. // signingConfigs {
  24. // config {
  25. // keyAlias 'sheep'
  26. // keyPassword 'zhaoyi2004'
  27. // storeFile file('.././../sign.jks')
  28. // storePassword 'zhaoyi2004'
  29. // v1SigningEnabled true
  30. // v2SigningEnabled false
  31. // }
  32. //
  33. // }
  34. // buildTypes {
  35. // release {
  36. // minifyEnabled false
  37. // proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  38. // signingConfig signingConfigs.config
  39. // }
  40. // debug {
  41. // signingConfig signingConfigs.config
  42. // }
  43. // }
  44. //// splits {
  45. //// abi {
  46. //// enable true
  47. //// reset()
  48. //// include 'x86', 'armeabi-v7a'//, 'arm64-v8a'
  49. ////// include 'mips', 'arm64-v8a', 'x86', 'x86_64', 'armeabi', 'armeabi-v7a'
  50. //// universalApk false
  51. //// }
  52. //// }
  53. //
  54. //}
  55. //
  56. //configurations.all {
  57. // resolutionStrategy.eachDependency { DependencyResolveDetails details ->
  58. // def requested = details.requested
  59. // if (requested.group == 'com.android.support') {
  60. // if (!requested.name.startsWith("multidex")) {
  61. // details.useVersion "$supportLibVersion"
  62. // }
  63. // }
  64. // }
  65. //}
  66. //dependencies {
  67. // implementation fileTree(dir: 'libs', include: ['*.jar'])
  68. //
  69. // implementation "com.android.support:appcompat-v7:$supportLibVersion"
  70. // testImplementation 'junit:junit:4.12'
  71. // androidTestImplementation 'com.android.support.test:runner:1.0.2'
  72. // androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  73. // //显示图片视频帧,在插件中不兼容x86模拟器,所以x86不考虑
  74. //// implementation 'com.github.wseemann:FFmpegMediaMetadataRetriever:1.0.14'
  75. // implementation project(':share_library')
  76. // implementation("com.android.support:recyclerview-v7:$supportLibVersion")
  77. // implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  78. // implementation 'com.github.ybq:Android-SpinKit:1.1.0'
  79. // //All arch: armeabi, armeabi-v7a, arm64-v8a, mips, x86
  80. // implementation 'org.wysaid:gpuimage-plus:2.5.1'
  81. // //Pure graphics lib without ffmpeg. (all arch for branch 'min')
  82. //// implementation 'org.wysaid:gpuimage-plus:2.5.1-min'
  83. // implementation('com.github.bumptech.glide:glide:4.1.1') {
  84. // exclude group: 'com.android.support', module: 'support-fragment'
  85. //// exclude group: 'com.github.bumptech.glide', module: 'gifdecoder'
  86. //// exclude group: 'com.github.bumptech.glide', module: 'disklrucache'
  87. //// exclude group: 'com.github.bumptech.glide', module: 'annotations'
  88. // }
  89. // annotationProcessor 'com.github.bumptech.glide:compiler:4.1.1'
  90. // implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.34'
  91. // //fast json
  92. // implementation 'com.alibaba:fastjson:1.2.52'
  93. // implementation 'com.github.1993hzw:Doodle:5.3'
  94. // implementation project(':joevideolib')
  95. // implementation project(':cge_library')
  96. //}
  97. //
  98. //
  99. //virtualApk {
  100. // packageId = 0x6f // The package id of Resources.
  101. // targetHost='../app' // The path of application module in host project.
  102. // applyHostMapping = true // [Optional] Default value is true.
  103. // forceUseHostDependences = true
  104. //}
  105. ////static def releaseTime() {
  106. //// return new Date().format("MMddHHmm", TimeZone.getDefault())
  107. ////}
  108. ////在apk文件后边生成版本号信息
  109. //android.applicationVariants.all {
  110. // variant ->
  111. // variant.outputs.all {
  112. // output ->
  113. //// if (buildType.name == "release") {
  114. // outputFileName = "media_release.apk"
  115. //// outputFileName = "media_release_${output.getFilter(com.android.build.OutputFile.ABI)}.apk"
  116. //// outputFileName = "media_v${versionCode}-${releaseTime()}_${output.getFilter(com.android.build.OutputFile.ABI)}.apk"
  117. //// }
  118. //
  119. // }
  120. //}
  121. apply plugin: 'com.android.library'
  122. android {
  123. compileSdkVersion ANDROID_COMPILE_SDK_VERSION as int
  124. defaultConfig {
  125. minSdkVersion ANDROID_MIN_SDK_VERSION as int
  126. targetSdkVersion ANDORID_TARGET_SDK_VERSION as int
  127. versionCode 1
  128. versionName "1.0"
  129. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  130. ndk {
  131. abiFilters "armeabi-v7a"
  132. }
  133. }
  134. buildTypes {
  135. release {
  136. minifyEnabled false
  137. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  138. }
  139. }
  140. }
  141. configurations.all {
  142. resolutionStrategy.eachDependency { DependencyResolveDetails details ->
  143. def requested = details.requested
  144. if (requested.group == 'com.android.support') {
  145. if (!requested.name.startsWith("multidex")) {
  146. details.useVersion "$supportLibVersion"
  147. }
  148. }
  149. }
  150. }
  151. dependencies {
  152. implementation fileTree(dir: 'libs', include: ['*.jar'])
  153. implementation "com.android.support:appcompat-v7:$supportLibVersion"
  154. testImplementation 'junit:junit:4.12'
  155. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  156. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  157. //显示图片视频帧,在插件中不兼容x86模拟器,所以x86不考虑
  158. // implementation 'com.github.wseemann:FFmpegMediaMetadataRetriever:1.0.14'
  159. api project(':share_library')
  160. implementation("com.android.support:recyclerview-v7:$supportLibVersion")
  161. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  162. implementation 'com.github.ybq:Android-SpinKit:1.1.0'
  163. //All arch: armeabi, armeabi-v7a, arm64-v8a, mips, x86
  164. // implementation 'org.wysaid:gpuimage-plus:2.5.1'
  165. //Pure graphics lib without ffmpeg. (all arch for branch 'min')
  166. // implementation 'org.wysaid:gpuimage-plus:2.5.1-min'
  167. implementation('com.github.bumptech.glide:glide:4.1.1') {
  168. exclude group: 'com.android.support', module: 'support-fragment'
  169. // exclude group: 'com.github.bumptech.glide', module: 'gifdecoder'
  170. // exclude group: 'com.github.bumptech.glide', module: 'disklrucache'
  171. // exclude group: 'com.github.bumptech.glide', module: 'annotations'
  172. }
  173. annotationProcessor 'com.github.bumptech.glide:compiler:4.1.1'
  174. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.34'
  175. //fast json
  176. implementation 'com.alibaba:fastjson:1.2.52'
  177. implementation 'com.github.1993hzw:Doodle:5.3'
  178. api project(':joevideolib')
  179. api project(':cge_library')
  180. }