build.gradle 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. v1SigningEnabled true
  27. v2SigningEnabled true
  28. storeFile file("../cooleshow.jks")
  29. //签名文件
  30. storePassword "cooleshow"
  31. keyAlias "cooleshow"
  32. keyPassword "cooleshow" //签名密码
  33. }
  34. }
  35. buildTypes {
  36. release {
  37. minifyEnabled false
  38. signingConfig signingConfigs.release
  39. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  40. buildConfigField "String", "BASE_H5_URL", RELEASE_BASE_URL_H5
  41. }
  42. debug {
  43. minifyEnabled false
  44. signingConfig signingConfigs.release
  45. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  46. buildConfigField "String", "BASE_H5_URL", TEST_BASE_URL_H5
  47. }
  48. }
  49. compileOptions {
  50. sourceCompatibility JavaVersion.VERSION_1_8
  51. targetCompatibility JavaVersion.VERSION_1_8
  52. }
  53. kotlinOptions {
  54. jvmTarget = '1.8'
  55. }
  56. buildFeatures {
  57. viewBinding = true
  58. }
  59. repositories {
  60. flatDir {
  61. dirs 'libs'
  62. }
  63. }
  64. }
  65. dependencies {
  66. api fileTree(dir: 'libs', include: ['*.jar'])
  67. implementation 'androidx.core:core-ktx:1.7.0'
  68. implementation 'androidx.appcompat:appcompat:1.3.0'
  69. implementation 'com.google.android.material:material:1.4.0'
  70. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  71. testImplementation 'junit:junit:4.13.2'
  72. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  73. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  74. implementation project(path: ':BaseLibrary')
  75. api project(path: ':usercenter')
  76. implementation project(path: ':rong_im:kit')
  77. implementation project(path: ':rong_im:common_im_ui')
  78. implementation project(path: ':live_teaching')
  79. implementation "com.alibaba:arouter-api:$rootProject.ext.android.arouter_api_version"
  80. kapt "com.alibaba:arouter-compiler:$rootProject.ext.android.arouter_api_version"
  81. }