build.gradle 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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.xunao.effectdemo"
  14. minSdkVersion 21
  15. targetSdkVersion 30
  16. versionCode 1
  17. versionName "1.0"
  18. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  19. manifestPlaceholders = [
  20. JPUSH_PKGNAME : applicationId,
  21. JPUSH_APPKEY : "ecffb33772bcb5b0a447c70b", //JPush 上注册的包名对应的 Appkey.
  22. JPUSH_CHANNEL : "developer-default", //暂时填写默认值即可.
  23. // MEIZU_APPKEY : "MZ-魅族的APPKEY",
  24. // MEIZU_APPID : "MZ-魅族的APPID",
  25. // XIAOMI_APPID : "MI-小米的APPID",
  26. // XIAOMI_APPKEY : "MI-小米的APPKEY",
  27. // OPPO_APPKEY : "OP-oppo的APPKEY",
  28. // OPPO_APPID : "OP-oppo的APPID",
  29. // OPPO_APPSECRET : "OP-oppo的APPSECRET",
  30. // VIVO_APPKEY : "vivo的APPKEY",
  31. // VIVO_APPID : "vivo的APPID"
  32. ]
  33. }
  34. signingConfigs {
  35. release {
  36. storeFile file("effect.jks")
  37. storePassword "xunao123"
  38. keyAlias "xuantu"
  39. keyPassword "xunao123"
  40. v1SigningEnabled true
  41. v2SigningEnabled true
  42. }
  43. debug {
  44. storeFile file("effect.jks")
  45. storePassword "xunao123"
  46. keyAlias "xuantu"
  47. keyPassword "xunao123"
  48. v1SigningEnabled true
  49. v2SigningEnabled true
  50. }
  51. }
  52. buildTypes {
  53. release {
  54. minifyEnabled false
  55. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  56. }
  57. // android.applicationVariants.all { variant ->
  58. // variant.outputs.all {
  59. // outputFileName = "${name}${version}${defaultConfig.versionCode}.apk"
  60. // }
  61. // }
  62. }
  63. compileOptions {
  64. sourceCompatibility JavaVersion.VERSION_1_8
  65. targetCompatibility JavaVersion.VERSION_1_8
  66. }
  67. sourceSets {
  68. main {
  69. jniLibs.srcDirs = ['libs']
  70. assets.srcDir "assets"
  71. }
  72. }
  73. buildFeatures {
  74. viewBinding true
  75. }
  76. splits {
  77. abi {
  78. enable true
  79. reset()
  80. include 'x86', 'x86_64', 'armeabi-v7a', 'armeabi'
  81. universalApk false
  82. }
  83. }
  84. }
  85. repositories {
  86. flatDir {
  87. dirs 'libs'
  88. }
  89. }
  90. dependencies {
  91. implementation 'androidx.appcompat:appcompat:1.3.0'
  92. implementation 'com.google.android.material:material:1.4.0'
  93. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  94. implementation 'androidx.navigation:navigation-fragment:2.3.5'
  95. implementation 'androidx.navigation:navigation-ui:2.3.5'
  96. implementation files('libs\\oraleval-android-sdk.jar')
  97. testImplementation 'junit:junit:4.12'
  98. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  99. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  100. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  101. implementation 'androidx.core:core-ktx:1.3.1'
  102. implementation 'com.github.xuexiangjys:XUI:1.1.6'
  103. implementation 'com.github.huburt-Hu:NewbieGuide:v2.4.0'
  104. implementation 'com.qmuiteam:qmui:2.0.0-alpha10'
  105. implementation 'com.airbnb.android:lottie:5.2.0'
  106. implementation 'com.github.JadeKkang:like_view:v1.0'
  107. //极光推送
  108. implementation 'cn.jiguang.sdk:jcore:3.3.0' // 此处以JCore 3.3.0 版本为例。
  109. implementation 'cn.jiguang.sdk:jpush:4.7.2' // 此处以JPush 4.7.2 版本为例
  110. //友盟
  111. implementation 'com.umeng.umsdk:common:9.5.2'// (必选)
  112. implementation 'com.umeng.umsdk:asms:1.6.3'// 必选
  113. implementation 'com.umeng.umsdk:abtest:1.0.1'//使用U-App中ABTest能力,可选
  114. implementation 'com.umeng.umsdk:apm:1.7.0'// U-APM产品包依赖(必选)
  115. implementation 'com.umeng.umsdk:uverify:2.5.6'// 必选
  116. implementation 'com.umeng.umsdk:uverify-main:2.1.4'// 必选
  117. implementation 'com.umeng.umsdk:uverify-logger:2.1.4'// 必选
  118. implementation 'com.umeng.umsdk:uverify-crashshield:2.1.4'// 必选
  119. implementation 'com.google.code.gson:gson:2.8.5'
  120. //========ijkplaer Java部分依赖
  121. implementation 'tv.danmaku.ijk.media:ijkplayer-java:0.8.8'
  122. //google ExoPlayer播放的扩展,一般无需添加
  123. //implementation 'tv.danmaku.ijk.media:ijkplayer-exo:0.8.8'
  124. //========ijkplaer Native部分依赖(根据运行CPU的平台选择)
  125. //使用真机测试 添加以下依赖
  126. implementation 'tv.danmaku.ijk.media:ijkplayer-armv7a:0.8.8'
  127. //GSXY播放器
  128. implementation 'com.github.CarGuo.GSYVideoPlayer:GSYVideoPlayer:v8.3.4-release-jitpack'
  129. //是否需要AliPlayer模式
  130. implementation 'com.github.CarGuo.GSYVideoPlayer:GSYVideoPlayer-aliplay:v8.3.4-release-jitpack'
  131. }