build.gradle 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. plugins {
  2. id 'com.android.application'
  3. id 'org.jetbrains.kotlin.android'
  4. id 'kotlin-kapt'
  5. id 'kotlinx-serialization'
  6. }
  7. ext{
  8. versionCode=230317140
  9. brandCode="010A"
  10. brandVersionCode=versionCode
  11. model="1037"
  12. }
  13. android {
  14. compileSdk 31
  15. defaultConfig {
  16. applicationId "com.develop.foodcooking"
  17. minSdk 21
  18. targetSdk 30
  19. versionCode project.ext.versionCode
  20. versionName "${project.ext.model}.${project.ext.brandCode}.${project.ext.brandVersionCode}.${project.ext.versionCode}"
  21. archivesBaseName = "cofar-cooking_${versionName}"
  22. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  23. kapt {
  24. arguments {
  25. arg("AROUTER_MODULE_NAME", project.getName())
  26. }
  27. }
  28. multiDexEnabled true
  29. }
  30. signingConfigs {
  31. debug {
  32. storeFile file('..\\signature\\rk.jks')
  33. storePassword '123456'
  34. keyAlias 'rk'
  35. keyPassword '123456'
  36. }
  37. foodCooking {
  38. storeFile file("..\\signature\\rk.jks")
  39. storePassword '123456'
  40. keyAlias 'rk'
  41. keyPassword '123456'
  42. }
  43. release {
  44. storeFile file('..\\signature\\rk.jks')
  45. storePassword '123456'
  46. keyAlias 'rk'
  47. keyPassword '123456'
  48. }
  49. }
  50. buildTypes {
  51. release {
  52. minifyEnabled false
  53. signingConfig signingConfigs.release
  54. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  55. }
  56. }
  57. compileOptions {
  58. sourceCompatibility JavaVersion.VERSION_1_8
  59. targetCompatibility JavaVersion.VERSION_1_8
  60. }
  61. kotlinOptions {
  62. jvmTarget = '1.8'
  63. }
  64. viewBinding {
  65. enabled = true
  66. }
  67. }
  68. dependencies {
  69. implementation project(path: ':libBase') //基础工具模块,不涉及业务逻辑
  70. implementation project(path: ':BusinessCommon')//业务相关的基础类
  71. implementation project(path: ':BusinessMain') //烹饪主模块
  72. implementation project(path: ':BusinessAuth')//登录-注册-个人信息模块
  73. implementation project(path: ':BusinessSetting') //设置模块
  74. implementation project(path: ':BusinessStep') //烹饪步骤模块
  75. kapt 'com.alibaba:arouter-compiler:1.5.2'
  76. }