build.gradle 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. plugins {
  2. id 'com.android.application'
  3. id 'kotlin-android'
  4. id 'kotlin-kapt'
  5. }
  6. android {
  7. compileSdk 31
  8. defaultConfig {
  9. applicationId "com.develop.foodcooking"
  10. minSdk 21
  11. targetSdk 26
  12. versionCode 1
  13. versionName "1.0.0"
  14. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  15. kapt {
  16. arguments {
  17. arg("AROUTER_MODULE_NAME", project.getName())
  18. }
  19. }
  20. }
  21. signingConfigs {
  22. debug {
  23. storeFile file('..\\signature\\rk.jks')
  24. storePassword '123456'
  25. keyAlias 'rk'
  26. keyPassword '123456'
  27. }
  28. foodCooking {
  29. storeFile file("..\\signature\\rk.jks")
  30. storePassword '123456'
  31. keyAlias 'rk'
  32. keyPassword '123456'
  33. }
  34. release {
  35. storeFile file('..\\signature\\rk.jks')
  36. storePassword '123456'
  37. keyAlias 'rk'
  38. keyPassword '123456'
  39. }
  40. }
  41. buildTypes {
  42. release {
  43. minifyEnabled false
  44. signingConfig signingConfigs.foodCooking
  45. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  46. }
  47. }
  48. compileOptions {
  49. sourceCompatibility JavaVersion.VERSION_1_8
  50. targetCompatibility JavaVersion.VERSION_1_8
  51. }
  52. kotlinOptions {
  53. jvmTarget = '1.8'
  54. }
  55. viewBinding {
  56. enabled = true
  57. }
  58. }
  59. dependencies {
  60. implementation project(path: ':libBase')
  61. implementation project(path: ':BusinessRouter')
  62. implementation project(path: ':BusinessAuth')
  63. implementation project(path: ':BusinessSetting')
  64. implementation project(path: ':BusinessMain')
  65. implementation project(path: ':BusinessStep')
  66. kapt 'com.alibaba:arouter-compiler:1.5.1'
  67. }