build.gradle 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. plugins {
  2. id 'com.android.application'
  3. id 'org.jetbrains.kotlin.android'
  4. }
  5. apply plugin: 'kotlin-android-extensions'
  6. apply plugin: 'kotlin-kapt'
  7. kapt {
  8. arguments {
  9. arg("AROUTER_MODULE_NAME", project.getName())
  10. // 是否生成路由文档,"enable":生成文档,其他字符串不生成路由文档
  11. arg("AROUTER_GENERATE_DOC", "enable")
  12. }
  13. }
  14. android {
  15. compileSdkVersion 31
  16. defaultConfig {
  17. applicationId "com.cooleshow.student"
  18. minSdkVersion 21
  19. targetSdkVersion 30
  20. versionCode 171
  21. versionName "1.7.1"
  22. ndk {
  23. abiFilters "armeabi-v7a", "arm64-v8a"
  24. }
  25. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  26. manifestPlaceholders = [
  27. qqappid: "1110018403",
  28. JPUSH_PKGNAME: applicationId,
  29. JPUSH_APPKEY : "911d07f359c18a078f29792f", //JPush 上注册的包名对应的 Appkey.
  30. JPUSH_CHANNEL: "developer-default", //暂时填写默认值即可.
  31. XIAOMI_APPID : "MI-2882303761520172242",
  32. XIAOMI_APPKEY : "MI-5692017221242",
  33. OPPO_APPKEY : "OP-5b2b716e774c45f2bd9a90b242b295e9",
  34. OPPO_APPID : "OP-30841111",
  35. OPPO_APPSECRET : "OP-3f1d849d8bce4273be48ca08a2ce320b",
  36. VIVO_APPKEY : "ebf526d1d61ab3bba65ce30d333189f3",
  37. VIVO_APPID : "105573871",
  38. ]
  39. }
  40. signingConfigs {
  41. release {
  42. v1SigningEnabled true
  43. v2SigningEnabled true
  44. storeFile file("../cooleshow.jks")
  45. //签名文件
  46. storePassword "cooleshow"
  47. keyAlias "cooleshow"
  48. keyPassword "cooleshow" //签名密码
  49. }
  50. }
  51. buildTypes {
  52. release {
  53. minifyEnabled false
  54. signingConfig signingConfigs.release
  55. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  56. buildConfigField "String", "BASE_H5_URL", RELEASE_BASE_URL_H5
  57. manifestPlaceholders = [k_appName: "酷乐秀"]
  58. }
  59. debug {
  60. minifyEnabled false
  61. signingConfig signingConfigs.release
  62. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  63. buildConfigField "String", "BASE_H5_URL", TEST_BASE_URL_H5
  64. manifestPlaceholders = [k_appName: "酷乐秀debug"]
  65. }
  66. preRelease {
  67. debuggable true
  68. minifyEnabled false
  69. signingConfig signingConfigs.release
  70. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  71. buildConfigField "String", "BASE_H5_URL", DEV_BASE_URL_H5
  72. manifestPlaceholders = [k_appName: "酷乐秀dev"]
  73. }
  74. }
  75. compileOptions {
  76. sourceCompatibility JavaVersion.VERSION_1_8
  77. targetCompatibility JavaVersion.VERSION_1_8
  78. }
  79. packagingOptions {
  80. exclude 'META-INF/library_release.kotlin_module'
  81. }
  82. kotlinOptions {
  83. jvmTarget = '1.8'
  84. }
  85. buildFeatures {
  86. viewBinding = true
  87. }
  88. repositories {
  89. flatDir {
  90. dirs 'libs'
  91. }
  92. }
  93. }
  94. dependencies {
  95. api fileTree(dir: 'libs', include: ['*.jar'])
  96. implementation 'androidx.core:core-ktx:1.6.0'
  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. testImplementation 'junit:junit:4.13.2'
  101. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  102. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  103. implementation project(path: ':BaseLibrary')
  104. api project(path: ':usercenter')
  105. // implementation project(path: ':rong_im:kit')
  106. // implementation project(path: ':rong_im:common_im_ui')
  107. // implementation project(path: ':live_teaching')
  108. implementation project(path: ':metronome')
  109. implementation project(path: ':musictuner')
  110. implementation project(path: ':ffmpegCmd')
  111. implementation project(path: ':chatModule')
  112. implementation project(path: ':tclive')
  113. implementation project(path: ':classRoom')
  114. implementation project(path: ':institution')
  115. implementation project(path: ':musicMerge')
  116. implementation project(path: ':accompany')
  117. implementation "com.alibaba:arouter-api:$rootProject.ext.android.arouter_api_version"
  118. kapt "com.alibaba:arouter-compiler:$rootProject.ext.android.arouter_api_version"
  119. // api(name: 'openDefault-10.10.0', ext: 'aar')
  120. // 极光推送start
  121. implementation 'cn.jiguang.sdk:jpush:5.3.1' // 此处以JPush 4.7.0 版本为例。
  122. //若不集成厂商通道,可直接跳过以下依赖
  123. // 接入华为厂商
  124. implementation 'com.huawei.hms:push:6.12.0.300'
  125. // 极光厂商插件版本与接入 JPush 版本保持一致,下同
  126. implementation 'cn.jiguang.sdk.plugin:huawei:5.3.1'
  127. // 接入 VIVO 厂商
  128. implementation 'cn.jiguang.sdk.plugin:vivo:5.3.1'
  129. // 接入小米厂商
  130. implementation 'cn.jiguang.sdk.plugin:xiaomi:5.3.1'
  131. // 接入 OPPO 厂商
  132. implementation 'cn.jiguang.sdk.plugin:oppo:5.3.1'
  133. // JPush Android SDK v4.6.0 开始,需要单独引入 oppo 厂商 aar ,请下载官网 SDK 包并把 jpush-android-xxx-release/third-push/oppo/libs 下的 com.heytap.msp-push-x.x.x.aar 文件单独拷贝一份到应用 module/libs 下
  134. implementation(name: 'com.heytap.msp_3.4.0', ext: 'aar')
  135. implementation 'commons-codec:commons-codec:1.6'
  136. // 极光推送end
  137. implementation(name: 'emoji-ios-release', ext: 'aar')
  138. implementation(name: 'emoji-release', ext: 'aar')
  139. implementation(name: 'filedownload-1.0.0', ext: 'aar')
  140. }