build.gradle 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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.teacher"
  18. minSdkVersion 21
  19. targetSdkVersion 31
  20. versionCode 1
  21. versionName "1.0"
  22. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  23. }
  24. signingConfigs {
  25. release {
  26. storeFile file("../cooleshow.jks")
  27. //签名文件
  28. storePassword "cooleshow"
  29. keyAlias "cooleshow"
  30. keyPassword "cooleshow" //签名密码
  31. }
  32. }
  33. buildTypes {
  34. release {
  35. minifyEnabled false
  36. signingConfig signingConfigs.release
  37. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  38. buildConfigField "String", "BASE_H5_URL", RELEASE_BASE_URL_H5
  39. }
  40. debug {
  41. minifyEnabled false
  42. signingConfig signingConfigs.release
  43. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  44. buildConfigField "String", "BASE_H5_URL", TEST_BASE_URL_H5
  45. }
  46. }
  47. compileOptions {
  48. sourceCompatibility JavaVersion.VERSION_1_8
  49. targetCompatibility JavaVersion.VERSION_1_8
  50. }
  51. kotlinOptions {
  52. jvmTarget = '1.8'
  53. }
  54. buildFeatures {
  55. viewBinding = true
  56. }
  57. }
  58. dependencies {
  59. implementation 'androidx.core:core-ktx:1.7.0'
  60. implementation 'androidx.appcompat:appcompat:1.3.0'
  61. implementation 'com.google.android.material:material:1.4.0'
  62. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  63. testImplementation 'junit:junit:4.13.2'
  64. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  65. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  66. implementation project(path: ':BaseLibrary')
  67. api project(path: ':usercenter')
  68. implementation project(path: ':rong_im:kit')
  69. implementation project(path: ':rong_im:common_im_ui')
  70. implementation project(path: ':live_teaching')
  71. implementation "com.alibaba:arouter-api:$rootProject.ext.android.arouter_api_version"
  72. kapt "com.alibaba:arouter-compiler:$rootProject.ext.android.arouter_api_version"
  73. }