build.gradle 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. namespace 'io.nexilis.alpha'
  10. compileSdk 34
  11. defaultConfig {
  12. applicationId "io.nexilis.alpha"
  13. minSdk 23
  14. targetSdk 34
  15. versionCode 1
  16. versionName "1.0"
  17. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  18. vectorDrawables {
  19. useSupportLibrary true
  20. }
  21. }
  22. buildTypes {
  23. release {
  24. minifyEnabled false
  25. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  26. }
  27. }
  28. compileOptions {
  29. sourceCompatibility JavaVersion.VERSION_1_8
  30. targetCompatibility JavaVersion.VERSION_1_8
  31. }
  32. kotlinOptions {
  33. jvmTarget = '1.8'
  34. }
  35. buildFeatures {
  36. compose true
  37. }
  38. composeOptions {
  39. kotlinCompilerExtensionVersion '1.5.3'
  40. }
  41. packagingOptions {
  42. resources {
  43. excludes += '/META-INF/{AL2.0,LGPL2.1}'
  44. }
  45. }
  46. }
  47. dependencies {
  48. implementation 'androidx.core:core-ktx:1.12.0'
  49. implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.7.0"
  50. implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.7.0"
  51. implementation 'androidx.activity:activity-compose:1.8.2'
  52. implementation project(path: ':cpaas-lite')
  53. testImplementation 'junit:junit:4.13.2'
  54. androidTestImplementation 'androidx.test.ext:junit:1.1.5'
  55. androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
  56. implementation 'androidx.navigation:navigation-compose:2.7.6'
  57. implementation 'io.coil-kt:coil-compose:2.2.2'
  58. implementation platform('androidx.compose:compose-bom:2022.10.00')
  59. implementation "androidx.compose.ui:ui"
  60. implementation "androidx.compose.ui:ui-tooling-preview"
  61. implementation 'androidx.compose.material3:material3'
  62. implementation "androidx.compose.material:material-icons-extended"
  63. implementation "androidx.compose.runtime:runtime"
  64. implementation "androidx.compose.runtime:runtime-livedata"
  65. debugImplementation "androidx.compose.ui:ui-tooling"
  66. debugImplementation "androidx.compose.ui:ui-test-manifest"
  67. androidTestImplementation "androidx.compose.ui:ui-test-junit4"
  68. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1"
  69. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1"
  70. implementation "com.google.dagger:hilt-android:2.48"
  71. kapt "com.google.dagger:hilt-android-compiler:2.48"
  72. implementation "androidx.hilt:hilt-navigation-compose:1.1.0"
  73. }
  74. kapt {
  75. correctErrorTypes = true
  76. }