Guest User

Untitled

a guest
Jun 21st, 2024
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 2.53 KB | Writing | 0 0
  1. plugins {
  2.     id("com.android.application")
  3.     id("org.jetbrains.kotlin.android")
  4. }
  5.  
  6. android {
  7.     namespace = "com.example.myapplication"
  8.     compileSdk = 34
  9.  
  10.     defaultConfig {
  11.         applicationId = "com.example.myapplication"
  12.         minSdk = 24
  13.         targetSdk = 34
  14.         versionCode = 1
  15.         versionName = "1.0"
  16.  
  17.         testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  18.         vectorDrawables {
  19.             useSupportLibrary = true
  20.         }
  21.  
  22.     }
  23.  
  24.     buildTypes {
  25.         release {
  26.             isMinifyEnabled = false
  27.             proguardFiles(
  28.                 getDefaultProguardFile("proguard-android-optimize.txt"),
  29.                 "proguard-rules.pro"
  30.             )
  31.         }
  32.     }
  33.     compileOptions {
  34.         sourceCompatibility = JavaVersion.VERSION_1_8
  35.         targetCompatibility = JavaVersion.VERSION_1_8
  36.     }
  37.     kotlinOptions {
  38.         jvmTarget = "1.8"
  39.     }
  40.     buildFeatures {
  41.         compose = true
  42.     }
  43.     composeOptions {
  44.         kotlinCompilerExtensionVersion = "1.5.1"
  45.     }
  46.     packaging {
  47.         resources {
  48.             excludes += "/META-INF/{AL2.0,LGPL2.1}"
  49.         }
  50.     }
  51. }
  52.  
  53. dependencies {
  54.     implementation("com.squareup.retrofit2:retrofit:2.9.0")
  55.     implementation("com.squareup.retrofit2:converter-gson:2.9.0")
  56.     implementation("com.squareup.retrofit2:converter-scalars:2.9.0")
  57.  
  58.     runtimeOnly("org.jetbrains.kotlin", "kotlin-scripting-jvm-host", "1.9.0")
  59.    
  60.     implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.7.0")
  61.     implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.7.0")
  62.     implementation("androidx.core:core-ktx:1.13.1")
  63.     implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.1")
  64.     implementation("androidx.activity:activity-compose:1.9.0")
  65.     implementation(platform("androidx.compose:compose-bom:2023.08.00"))
  66.     implementation("androidx.compose.ui:ui")
  67.     implementation("androidx.compose.ui:ui-graphics")
  68.     implementation("androidx.compose.ui:ui-tooling-preview")
  69.     implementation("androidx.compose.material3:material3")
  70.     testImplementation("junit:junit:4.13.2")
  71.     androidTestImplementation("androidx.test.ext:junit:1.1.5")
  72.     androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
  73.     androidTestImplementation(platform("androidx.compose:compose-bom:2023.08.00"))
  74.     androidTestImplementation("androidx.compose.ui:ui-test-junit4")
  75.     debugImplementation("androidx.compose.ui:ui-tooling")
  76.     debugImplementation("androidx.compose.ui:ui-test-manifest")
  77. }
Add Comment
Please, Sign In to add comment