build.gradle 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. plugins {
  2. id 'com.android.application'
  3. id 'org.jetbrains.kotlin.android'
  4. id 'kotlin-kapt'
  5. id 'dagger.hilt.android.plugin'
  6. }
  7. android {
  8. namespace 'com.ilfey.wc'
  9. compileSdk 33
  10. defaultConfig {
  11. applicationId "com.ilfey.wc"
  12. minSdk 21
  13. targetSdk 33
  14. versionCode 1
  15. versionName "1.0"
  16. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  17. vectorDrawables {
  18. useSupportLibrary true
  19. }
  20. }
  21. buildTypes {
  22. release {
  23. minifyEnabled false
  24. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  25. }
  26. }
  27. compileOptions {
  28. sourceCompatibility JavaVersion.VERSION_1_8
  29. targetCompatibility JavaVersion.VERSION_1_8
  30. }
  31. kotlinOptions {
  32. jvmTarget = '1.8'
  33. }
  34. buildFeatures {
  35. compose true
  36. }
  37. composeOptions {
  38. kotlinCompilerExtensionVersion '1.1.1'
  39. }
  40. packagingOptions {
  41. resources {
  42. excludes += '/META-INF/{AL2.0,LGPL2.1}'
  43. }
  44. }
  45. }
  46. dependencies {
  47. // Compose nav
  48. implementation "androidx.navigation:navigation-compose:2.5.3"
  49. implementation 'androidx.hilt:hilt-navigation-compose:1.0.0'
  50. // Compose pager
  51. implementation 'com.google.accompanist:accompanist-pager:0.27.1'
  52. // coil
  53. implementation("io.coil-kt:coil-compose:2.2.2")
  54. // hilt
  55. implementation "com.google.dagger:hilt-android:$hilt_version"
  56. kapt "com.google.dagger:hilt-compiler:$hilt_version"
  57. // okhttp
  58. implementation 'com.squareup.okhttp3:okhttp:4.10.0'
  59. implementation 'com.squareup.okhttp3:logging-interceptor:4.9.3'
  60. // retrofit
  61. implementation 'com.squareup.retrofit2:retrofit:2.9.0'
  62. implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
  63. implementation 'androidx.core:core-ktx:1.9.0'
  64. implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1'
  65. implementation 'androidx.activity:activity-compose:1.6.1'
  66. implementation "androidx.compose.ui:ui:$compose_version"
  67. implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
  68. implementation 'com.google.accompanist:accompanist-systemuicontroller:0.27.1'
  69. implementation 'androidx.compose.material3:material3:1.1.0-alpha02'
  70. testImplementation 'junit:junit:4.13.2'
  71. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  72. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  73. androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
  74. debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
  75. debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version"
  76. }