build.gradle 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. minifyEnabled false
  39. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  40. buildConfigField "String", "BASE_URL_H5_JG", DEV_BASE_URL_H5_JG
  41. }
  42. }
  43. compileOptions {
  44. sourceCompatibility JavaVersion.VERSION_1_8
  45. targetCompatibility JavaVersion.VERSION_1_8
  46. }
  47. sourceSets {
  48. main {
  49. jniLibs.srcDirs = ['libs']
  50. }
  51. }
  52. buildFeatures {
  53. viewBinding = true
  54. }
  55. }
  56. dependencies {
  57. implementation 'androidx.appcompat:appcompat:1.3.0'
  58. implementation 'com.google.android.material:material:1.4.0'
  59. testImplementation 'junit:junit:4.13.2'
  60. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  61. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  62. implementation project(':BaseLibrary')
  63. implementation project(':usercenter')
  64. implementation project(':chatModule')
  65. implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
  66. implementation 'cn.jiguang.sdk:jpush:4.7.2' // 此处以JPush 4.7.0 版本为例。
  67. implementation 'cn.jiguang.sdk:jcore:3.2.4' // 此处以JCore 3.2.4 版本为例。
  68. //ARouter
  69. annotationProcessor("com.alibaba:arouter-compiler:$rootProject.ext.android.arouter_api_version")
  70. implementation 'com.alibaba:arouter-api:1.5.2'
  71. kapt 'com.alibaba:arouter-compiler:1.5.2'
  72. }