build.gradle 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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. 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. v1SigningEnabled true
  52. v2SigningEnabled true
  53. }
  54. }
  55. buildTypes {
  56. release {
  57. minifyEnabled false
  58. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  59. }
  60. // android.applicationVariants.all { variant ->
  61. // variant.outputs.all {
  62. // outputFileName = "${name}${version}${defaultConfig.versionCode}.apk"
  63. // }
  64. // }
  65. }
  66. compileOptions {
  67. sourceCompatibility JavaVersion.VERSION_1_8
  68. targetCompatibility JavaVersion.VERSION_1_8
  69. }
  70. sourceSets {
  71. main {
  72. jniLibs.srcDirs = ['libs']
  73. assets.srcDir "assets"
  74. }
  75. }
  76. buildFeatures {
  77. viewBinding true
  78. }
  79. // splits {
  80. // abi {
  81. // enable true
  82. // reset()
  83. // include 'x86', 'x86_64', 'armeabi-v7a', 'armeabi'
  84. // universalApk false
  85. // }
  86. // }
  87. // packagingOptions {
  88. // pickFirst 'lib/armeabi-v7a/libnms.so'
  89. // }
  90. }
  91. repositories {
  92. flatDir {
  93. dirs 'libs'
  94. }
  95. }
  96. dependencies {
  97. implementation 'androidx.appcompat:appcompat:1.3.0'
  98. implementation 'com.google.android.material:material:1.4.0'
  99. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  100. implementation 'androidx.navigation:navigation-fragment:2.3.5'
  101. implementation 'androidx.navigation:navigation-ui:2.3.5'
  102. implementation files('libs\\oraleval-android-sdk.jar')
  103. implementation(name: 'source', ext: 'aar')
  104. testImplementation 'junit:junit:4.12'
  105. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  106. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  107. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  108. implementation 'androidx.core:core-ktx:1.3.1'
  109. implementation 'com.github.xuexiangjys:XUI:1.1.6'
  110. implementation 'com.github.huburt-Hu:NewbieGuide:v2.4.0'
  111. implementation 'com.qmuiteam:qmui:2.0.0-alpha10'
  112. implementation 'com.airbnb.android:lottie:5.2.0'
  113. implementation 'com.github.JadeKkang:like_view:v1.0'
  114. //极光推送
  115. implementation 'cn.jiguang.sdk:jcore:3.3.0' // 此处以JCore 3.3.0 版本为例。
  116. implementation 'cn.jiguang.sdk:jpush:4.7.2' // 此处以JPush 4.7.2 版本为例
  117. //友盟
  118. implementation 'com.umeng.umsdk:common:9.5.2'// (必选)
  119. implementation 'com.umeng.umsdk:asms:1.6.3'// 必选
  120. implementation 'com.umeng.umsdk:abtest:1.0.1'//使用U-App中ABTest能力,可选
  121. implementation 'com.umeng.umsdk:apm:1.7.0'// U-APM产品包依赖(必选)
  122. implementation 'com.umeng.umsdk:uverify:2.5.6'// 必选
  123. implementation 'com.umeng.umsdk:uverify-main:2.1.4'// 必选
  124. implementation 'com.umeng.umsdk:uverify-logger:2.1.4'// 必选
  125. implementation 'com.umeng.umsdk:uverify-crashshield:2.1.4'// 必选
  126. implementation 'com.google.code.gson:gson:2.8.5'
  127. // //========ijkplaer Java部分依赖
  128. // implementation 'tv.danmaku.ijk.media:ijkplayer-java:0.8.8'
  129. // //google ExoPlayer播放的扩展,一般无需添加
  130. // //implementation 'tv.danmaku.ijk.media:ijkplayer-exo:0.8.8'
  131. //
  132. // //========ijkplaer Native部分依赖(根据运行CPU的平台选择)
  133. // //使用真机测试 添加以下依赖
  134. // implementation 'tv.danmaku.ijk.media:ijkplayer-armv7a:0.8.8'
  135. //GSXY播放器
  136. // implementation 'com.github.CarGuo.GSYVideoPlayer:GSYVideoPlayer:v8.3.4-release-jitpack'
  137. //是否需要AliPlayer模式
  138. // implementation 'com.github.CarGuo.GSYVideoPlayer:GSYVideoPlayer-aliplay:v8.3.4-release-jitpack'
  139. //完整版引入
  140. implementation 'com.shuyu:GSYVideoPlayer:8.1.2'
  141. }