build.gradle 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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. apply plugin: 'com.huawei.agconnect'
  8. kapt {
  9. arguments {
  10. arg("AROUTER_MODULE_NAME", project.getName())
  11. // 是否生成路由文档,"enable":生成文档,其他字符串不生成路由文档
  12. arg("AROUTER_GENERATE_DOC", "enable")
  13. }
  14. }
  15. android {
  16. compileSdkVersion 30
  17. defaultConfig {
  18. applicationId "com.cooleshow.teacher"
  19. minSdkVersion 21
  20. targetSdkVersion 30
  21. versionCode 146
  22. versionName "1.4.6"
  23. ndk {
  24. abiFilters "armeabi-v7a", "arm64-v8a"
  25. }
  26. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  27. manifestPlaceholders = [
  28. qqappid: "1110018403",
  29. JPUSH_PKGNAME: applicationId,
  30. JPUSH_APPKEY : "ea33d0a0a84d3b7b6dd70381", //JPush 上注册的包名对应的 Appkey.
  31. JPUSH_CHANNEL: "developer-default", //暂时填写默认值即可.
  32. XIAOMI_APPID : "MI-2882303761520172302",
  33. XIAOMI_APPKEY : "MI-5102017284302",
  34. OPPO_APPKEY : "OP-e2e0eff48d6145c0b9f87cd6a57636ad",
  35. OPPO_APPID : "OP-30841115",
  36. OPPO_APPSECRET : "OP-519726bf2dfc4a6c95a6e00d61e47f10",
  37. VIVO_APPKEY : "3154931db9dbf361b67dbd4bce2c8d30",
  38. VIVO_APPID : "105573870",
  39. ]
  40. }
  41. signingConfigs {
  42. release {
  43. v1SigningEnabled true
  44. v2SigningEnabled true
  45. storeFile file("../cooleshow.jks")
  46. //签名文件
  47. storePassword "cooleshow"
  48. keyAlias "cooleshow"
  49. keyPassword "cooleshow" //签名密码
  50. }
  51. }
  52. buildTypes {
  53. release {
  54. minifyEnabled false
  55. signingConfig signingConfigs.release
  56. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  57. buildConfigField "String", "BASE_H5_URL", RELEASE_BASE_URL_H5
  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. }
  65. preRelease{
  66. debuggable true
  67. minifyEnabled false
  68. signingConfig signingConfigs.release
  69. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  70. buildConfigField "String", "BASE_H5_URL", DEV_BASE_URL_H5
  71. }
  72. }
  73. sourceSets {
  74. main {
  75. jniLibs.srcDirs = ['libs']
  76. }
  77. }
  78. compileOptions {
  79. sourceCompatibility JavaVersion.VERSION_1_8
  80. targetCompatibility JavaVersion.VERSION_1_8
  81. }
  82. packagingOptions {
  83. exclude 'META-INF/library_release.kotlin_module'
  84. }
  85. kotlinOptions {
  86. jvmTarget = '1.8'
  87. }
  88. buildFeatures {
  89. viewBinding = true
  90. }
  91. repositories {
  92. flatDir {
  93. dirs 'libs'
  94. }
  95. }
  96. }
  97. dependencies {
  98. api fileTree(dir: 'libs', include: ['*.jar'])
  99. implementation 'androidx.core:core-ktx:1.6.0'
  100. implementation 'androidx.appcompat:appcompat:1.3.0'
  101. implementation 'com.google.android.material:material:1.4.0'
  102. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  103. testImplementation 'junit:junit:4.13.2'
  104. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  105. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  106. implementation project(path: ':BaseLibrary')
  107. api project(path: ':usercenter')
  108. implementation project(path: ':rong_im:kit')
  109. implementation project(path: ':rong_im:live')
  110. implementation project(path: ':rong_im:common_im_ui')
  111. implementation project(path: ':live_teaching')
  112. implementation project(path: ':metronome')
  113. implementation project(path: ':musictuner')
  114. implementation project(path: ':ffmpegCmd')
  115. implementation project(path: ':chatModule')
  116. implementation project(path: ':tclive')
  117. implementation project(path: ':classRoom')
  118. implementation "com.alibaba:arouter-api:$rootProject.ext.android.arouter_api_version"
  119. kapt "com.alibaba:arouter-compiler:$rootProject.ext.android.arouter_api_version"
  120. //融云美颜库 //cn.rongcloud.sdk:rtc_lib:5.2.1
  121. implementation('cn.rongcloud.sdk:face_beautifier:5.2.4') {
  122. exclude(group: 'cn.rongcloud.sdk', module: 'rtc_lib')
  123. }
  124. // api(name: 'openDefault-10.10.0', ext: 'aar')
  125. // 极光推送start
  126. implementation 'cn.jiguang.sdk:jpush:4.7.2' // 此处以JPush 4.7.0 版本为例。
  127. implementation 'cn.jiguang.sdk:jcore:3.2.4' // 此处以JCore 3.2.4 版本为例。
  128. //若不集成厂商通道,可直接跳过以下依赖
  129. // 接入华为厂商
  130. implementation 'com.huawei.hms:push:6.3.0.304'
  131. // 极光厂商插件版本与接入 JPush 版本保持一致,下同
  132. implementation 'cn.jiguang.sdk.plugin:huawei:4.7.2'
  133. // 接入 VIVO 厂商
  134. implementation 'cn.jiguang.sdk.plugin:vivo:4.7.2'
  135. // 接入小米厂商
  136. implementation 'cn.jiguang.sdk.plugin:xiaomi:4.7.2'
  137. // 接入 OPPO 厂商
  138. implementation 'cn.jiguang.sdk.plugin:oppo:4.7.2'
  139. // 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 下
  140. implementation(name: 'com.heytap.msp-push-3.0.0', ext: 'aar')
  141. implementation 'commons-codec:commons-codec:1.6'
  142. // 极光推送end
  143. implementation(name: 'emoji-ios-release', ext: 'aar')
  144. implementation(name: 'emoji-release', ext: 'aar')
  145. implementation(name: 'LiteAVSDK_Professional_10.9.0.13102', ext: 'aar')
  146. implementation(name: 'rong_player_5.2.4', ext: 'aar')
  147. }