build.gradle 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. plugins {
  2. id 'com.android.application'
  3. id 'org.jetbrains.kotlin.android'
  4. id 'com.google.dagger.hilt.android'
  5. id 'kotlin-kapt'
  6. id 'com.google.devtools.ksp'
  7. }
  8. android {
  9. signingConfigs {
  10. debug {
  11. storeFile file('../alpha.jks')
  12. storePassword 'asdqwe123'
  13. keyAlias 'alpha'
  14. keyPassword 'asdqwe123'
  15. }
  16. }
  17. namespace 'io.nexilis.alpha'
  18. compileSdk 34
  19. defaultConfig {
  20. applicationId "io.nexilis.alpha"
  21. minSdk 23
  22. targetSdk 34
  23. versionCode 1
  24. versionName "1.0"
  25. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  26. vectorDrawables {
  27. useSupportLibrary true
  28. }
  29. }
  30. buildTypes {
  31. debug {
  32. signingConfig signingConfigs.debug
  33. }
  34. release {
  35. minifyEnabled false
  36. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  37. signingConfig signingConfigs.debug
  38. }
  39. }
  40. compileOptions {
  41. sourceCompatibility JavaVersion.VERSION_1_8
  42. targetCompatibility JavaVersion.VERSION_1_8
  43. }
  44. kotlinOptions {
  45. jvmTarget = '1.8'
  46. }
  47. buildFeatures {
  48. compose true
  49. buildConfig true
  50. }
  51. composeOptions {
  52. kotlinCompilerExtensionVersion '1.5.3'
  53. }
  54. packagingOptions {
  55. resources {
  56. excludes += '/META-INF/{AL2.0,LGPL2.1}'
  57. }
  58. }
  59. }
  60. dependencies {
  61. implementation 'androidx.core:core-ktx:1.12.0'
  62. implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.7.0"
  63. implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.7.0"
  64. implementation 'androidx.activity:activity-compose:1.8.2'
  65. implementation project(path: ':cpaas-lite')
  66. testImplementation("junit:junit:4.13.2")
  67. androidTestImplementation("androidx.test.ext:junit:1.1.5")
  68. androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
  69. androidTestImplementation(platform("androidx.compose:compose-bom:2024.02.01"))
  70. androidTestImplementation("androidx.compose.ui:ui-test-junit4")
  71. debugImplementation("androidx.compose.ui:ui-tooling")
  72. debugImplementation("androidx.compose.ui:ui-test-manifest")
  73. implementation 'androidx.navigation:navigation-compose:2.7.7'
  74. implementation 'io.coil-kt:coil-compose:2.2.2'
  75. implementation platform('androidx.compose:compose-bom:2024.02.01')
  76. implementation "androidx.compose.ui:ui"
  77. implementation "androidx.compose.ui:ui-tooling-preview"
  78. implementation 'androidx.compose.material3:material3'
  79. implementation "androidx.compose.material:material-icons-extended"
  80. implementation "androidx.compose.runtime:runtime"
  81. implementation "androidx.compose.runtime:runtime-livedata"
  82. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1"
  83. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1"
  84. implementation "com.google.dagger:hilt-android:2.49"
  85. kapt "com.google.dagger:hilt-android-compiler:2.48"
  86. implementation "androidx.hilt:hilt-navigation-compose:1.2.0"
  87. }
  88. kapt {
  89. correctErrorTypes = true
  90. }