build.gradle 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. plugins {
  2. id 'com.android.library'
  3. id 'org.jetbrains.kotlin.android'
  4. // id 'kotlin-parcelize'
  5. id 'kotlin-android'
  6. // id 'kotlin-android-extensions'
  7. }
  8. apply plugin: 'kotlin-kapt'
  9. apply plugin: 'kotlin-android-extensions'
  10. kapt {
  11. arguments {
  12. arg("AROUTER_MODULE_NAME", project.getName())
  13. }
  14. }
  15. android {
  16. namespace 'com.cooleshow.institution.stu'
  17. compileSdkVersion rootProject.ext.android['compileSdkVersion']
  18. defaultConfig {
  19. minSdkVersion rootProject.ext.android.minSdkVersion
  20. targetSdkVersion rootProject.ext.android.targetSdkVersion
  21. versionCode rootProject.ext.android.versionCode
  22. versionName rootProject.ext.android.versionName
  23. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  24. consumerProguardFiles "consumer-rules.pro"
  25. }
  26. buildTypes {
  27. debug {
  28. minifyEnabled false
  29. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  30. buildConfigField "String", "BASE_URL_H5_JG", TEST_BASE_URL_H5_JG
  31. }
  32. release {
  33. minifyEnabled false
  34. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  35. buildConfigField "String", "BASE_URL_H5_JG", RELEASE_BASE_URL_H5_JG
  36. }
  37. preRelease {
  38. debuggable true
  39. minifyEnabled false
  40. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  41. buildConfigField "String", "BASE_URL_H5_JG", DEV_BASE_URL_H5_JG
  42. }
  43. }
  44. compileOptions {
  45. sourceCompatibility JavaVersion.VERSION_1_8
  46. targetCompatibility JavaVersion.VERSION_1_8
  47. }
  48. sourceSets {
  49. main {
  50. jniLibs.srcDirs = ['libs']
  51. }
  52. }
  53. buildFeatures {
  54. viewBinding = true
  55. }
  56. }
  57. dependencies {
  58. implementation 'androidx.appcompat:appcompat:1.3.0'
  59. implementation 'com.google.android.material:material:1.4.0'
  60. testImplementation 'junit:junit:4.13.2'
  61. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  62. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  63. implementation project(':BaseLibrary')
  64. implementation project(':usercenter')
  65. implementation project(':chatModule')
  66. implementation project(':accompanySDK')
  67. implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
  68. implementation 'cn.jiguang.sdk:jpush:5.3.1' // 此处以JPush 4.7.0 版本为例。
  69. //ARouter
  70. annotationProcessor("com.alibaba:arouter-compiler:$rootProject.ext.android.arouter_api_version")
  71. implementation 'com.alibaba:arouter-api:1.5.2'
  72. kapt 'com.alibaba:arouter-compiler:1.5.2'
  73. }