build.gradle.kts 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. import org.jetbrains.kotlin.ir.backend.js.compile
  2. plugins {
  3. id("com.android.application")
  4. id("org.jetbrains.kotlin.android")
  5. id("androidx.navigation.safeargs")
  6. }
  7. android {
  8. namespace = "com.example.smartlab"
  9. compileSdk = 34
  10. defaultConfig {
  11. applicationId = "com.example.smartlab"
  12. minSdk = 30
  13. targetSdk = 34
  14. versionCode = 1
  15. versionName = "1.0"
  16. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  17. }
  18. buildTypes {
  19. release {
  20. isMinifyEnabled = false
  21. proguardFiles(
  22. getDefaultProguardFile("proguard-android-optimize.txt"),
  23. "proguard-rules.pro"
  24. )
  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. buildToolsVersion = "33.0.1"
  35. buildFeatures {
  36. viewBinding = true
  37. }
  38. }
  39. dependencies {
  40. implementation("androidx.core:core-ktx:1.12.0")
  41. implementation("androidx.appcompat:appcompat:1.6.1")
  42. implementation("com.google.android.material:material:1.9.0")
  43. implementation("androidx.constraintlayout:constraintlayout:2.1.4")
  44. testImplementation("junit:junit:4.13.2")
  45. androidTestImplementation("androidx.test.ext:junit:1.1.5")
  46. androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
  47. // Navigation & Fragments
  48. implementation("androidx.navigation:navigation-fragment-ktx:2.7.3")
  49. implementation("androidx.navigation:navigation-ui-ktx:2.7.3")
  50. implementation("androidx.navigation:navigation-dynamic-features-fragment:2.7.3")
  51. // Onboard Screens & Splash Screen
  52. implementation ("com.airbnb.android:lottie:6.1.0")
  53. implementation("androidx.core:core-splashscreen:1.0.1")
  54. // API Retrofit
  55. implementation("com.squareup.retrofit2:retrofit:2.9.0")
  56. implementation("com.squareup.retrofit2:converter-gson:2.9.0")
  57. // Corutines
  58. implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0")
  59. implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.6")
  60. implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.6")
  61. // Otp View
  62. implementation("com.github.mukeshsolanki.android-otpview-pinview:otpview:3.1.0")
  63. // Serialization JSONP into JSON
  64. implementation("com.squareup.retrofit2:converter-scalars:2.9.0")
  65. // HTTP Client
  66. implementation("com.squareup.okhttp3:logging-interceptor:4.11.0")
  67. // Glide for pictures from API
  68. implementation("com.github.bumptech.glide:glide:4.16.0")
  69. }