build.gradle 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions' //扩展插件
  4. static def releaseTime() {
  5. return new Date().format("yyyyMMddHHmmss", TimeZone.getTimeZone("GMT+8"))
  6. }
  7. def name = "Effect"
  8. def version = "_" + releaseTime() + "_v"
  9. android {
  10. compileSdkVersion 30
  11. buildToolsVersion "30.0.3"
  12. defaultConfig {
  13. applicationId "com.bestv.app"
  14. minSdkVersion 21
  15. targetSdkVersion 30
  16. versionCode 1
  17. versionName "1.0"
  18. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  19. ndk {
  20. abiFilters "armeabi", 'arm64-v8a'
  21. }
  22. manifestPlaceholders = [
  23. JPUSH_PKGNAME : applicationId,
  24. JPUSH_APPKEY : "ecffb33772bcb5b0a447c70b", //JPush 上注册的包名对应的 Appkey.
  25. JPUSH_CHANNEL : "developer-default", //暂时填写默认值即可.
  26. // MEIZU_APPKEY : "MZ-魅族的APPKEY",
  27. // MEIZU_APPID : "MZ-魅族的APPID",
  28. // XIAOMI_APPID : "MI-小米的APPID",
  29. // XIAOMI_APPKEY : "MI-小米的APPKEY",
  30. // OPPO_APPKEY : "OP-oppo的APPKEY",
  31. // OPPO_APPID : "OP-oppo的APPID",
  32. // OPPO_APPSECRET : "OP-oppo的APPSECRET",
  33. // VIVO_APPKEY : "vivo的APPKEY",
  34. // VIVO_APPID : "vivo的APPID"
  35. ]
  36. }
  37. signingConfigs {
  38. release {
  39. storeFile file("effect.jks")
  40. storePassword "xunao123"
  41. keyAlias "xuantu"
  42. keyPassword "xunao123"
  43. v1SigningEnabled true
  44. v2SigningEnabled true
  45. }
  46. debug {
  47. // storeFile file("effect.jks")
  48. // storePassword "xunao123"
  49. // keyAlias "xuantu"
  50. // keyPassword "xunao123"
  51. storeFile file("bestvedu.jks")
  52. storePassword "bestv001!"
  53. keyAlias "bestvedu"
  54. keyPassword "bestv001!"
  55. // v1SigningEnabled true
  56. // v2SigningEnabled true
  57. }
  58. }
  59. buildTypes {
  60. debug {
  61. minifyEnabled false
  62. signingConfig signingConfigs.debug
  63. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  64. }
  65. release {
  66. minifyEnabled false
  67. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  68. }
  69. // android.applicationVariants.all { variant ->
  70. // variant.outputs.all {
  71. // outputFileName = "${name}${version}${defaultConfig.versionCode}.apk"
  72. // }
  73. // }
  74. }
  75. compileOptions {
  76. sourceCompatibility JavaVersion.VERSION_1_8
  77. targetCompatibility JavaVersion.VERSION_1_8
  78. }
  79. sourceSets {
  80. main {
  81. jniLibs.srcDirs = ['libs']
  82. assets.srcDir "assets"
  83. }
  84. }
  85. buildFeatures {
  86. viewBinding true
  87. }
  88. // splits {
  89. // abi {
  90. // enable true
  91. // reset()
  92. // include 'x86', 'x86_64', 'armeabi-v7a', 'armeabi'
  93. // universalApk false
  94. // }
  95. // }
  96. // packagingOptions {
  97. // pickFirst 'lib/armeabi-v7a/libnms.so'
  98. // }
  99. }
  100. repositories {
  101. flatDir {
  102. dirs 'libs'
  103. }
  104. }
  105. dependencies {
  106. implementation 'androidx.appcompat:appcompat:1.3.0'
  107. implementation 'com.google.android.material:material:1.4.0'
  108. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  109. implementation 'androidx.navigation:navigation-fragment:2.3.5'
  110. implementation 'androidx.navigation:navigation-ui:2.3.5'
  111. implementation files('libs\\oraleval-android-sdk.jar')
  112. implementation(name: 'source', ext: 'aar')
  113. testImplementation 'junit:junit:4.12'
  114. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  115. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  116. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  117. implementation 'androidx.core:core-ktx:1.3.1'
  118. implementation 'com.github.xuexiangjys:XUI:1.1.6'
  119. implementation 'com.github.huburt-Hu:NewbieGuide:v2.4.0'
  120. implementation 'com.qmuiteam:qmui:2.0.0-alpha10'
  121. implementation 'com.airbnb.android:lottie:5.2.0'
  122. implementation 'com.github.JadeKkang:like_view:v1.0'
  123. implementation 'com.github.bumptech.glide:glide:4.13.2'
  124. //极光推送
  125. implementation 'cn.jiguang.sdk:jcore:3.3.0' // 此处以JCore 3.3.0 版本为例。
  126. implementation 'cn.jiguang.sdk:jpush:4.7.2' // 此处以JPush 4.7.2 版本为例
  127. //友盟
  128. implementation 'com.umeng.umsdk:common:9.5.2'// (必选)
  129. implementation 'com.umeng.umsdk:asms:1.6.3'// 必选
  130. implementation 'com.umeng.umsdk:abtest:1.0.1'//使用U-App中ABTest能力,可选
  131. implementation 'com.umeng.umsdk:apm:1.7.0'// U-APM产品包依赖(必选)
  132. implementation 'com.umeng.umsdk:uverify:2.5.6'// 必选
  133. implementation 'com.umeng.umsdk:uverify-main:2.1.4'// 必选
  134. implementation 'com.umeng.umsdk:uverify-logger:2.1.4'// 必选
  135. implementation 'com.umeng.umsdk:uverify-crashshield:2.1.4'// 必选
  136. implementation 'com.google.code.gson:gson:2.8.5'
  137. // //========ijkplaer Java部分依赖
  138. // implementation 'tv.danmaku.ijk.media:ijkplayer-java:0.8.8'
  139. // //google ExoPlayer播放的扩展,一般无需添加
  140. // //implementation 'tv.danmaku.ijk.media:ijkplayer-exo:0.8.8'
  141. //
  142. // //========ijkplaer Native部分依赖(根据运行CPU的平台选择)
  143. // //使用真机测试 添加以下依赖
  144. // implementation 'tv.danmaku.ijk.media:ijkplayer-armv7a:0.8.8'
  145. //GSXY播放器
  146. // implementation 'com.github.CarGuo.GSYVideoPlayer:GSYVideoPlayer:v8.3.4-release-jitpack'
  147. //是否需要AliPlayer模式
  148. // implementation 'com.github.CarGuo.GSYVideoPlayer:GSYVideoPlayer-aliplay:v8.3.4-release-jitpack'
  149. //完整版引入
  150. implementation 'com.shuyu:GSYVideoPlayer:8.1.2'
  151. implementation 'com.blankj:utilcodex:1.31.0'
  152. implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.3'
  153. //网络请求
  154. //RxJava
  155. implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
  156. implementation 'io.reactivex.rxjava2:rxjava:2.2.8'
  157. implementation 'com.zhy:okhttputils:2.6.2'
  158. implementation 'com.squareup.okhttp3:okhttp:4.2.2'
  159. implementation 'com.hyman:flowlayout-lib:1.1.2'
  160. }