EnGold

Untitled

Nov 20th, 2023
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 2.91 KB | Source Code | 0 0
  1. plugins {
  2.     id("com.android.application")
  3.     id("org.jetbrains.kotlin.android")
  4. }
  5.  
  6. android {
  7.     namespace = "com.surreal.surrealmedia"
  8.     compileSdk = 34
  9.  
  10.     defaultConfig {
  11.         applicationId = "com.surreal.surrealmedia"
  12.         minSdk = 26
  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.     buildTypes {
  24.         release {
  25.             isMinifyEnabled = false
  26.             proguardFiles(
  27.                 getDefaultProguardFile("proguard-android-optimize.txt"),
  28.                 "proguard-rules.pro"
  29.             )
  30.         }
  31.     }
  32.     compileOptions {
  33.         sourceCompatibility = JavaVersion.VERSION_1_8
  34.         targetCompatibility = JavaVersion.VERSION_1_8
  35.     }
  36.     kotlinOptions {
  37.         jvmTarget = "1.8"
  38.     }
  39.     buildFeatures {
  40.         compose = true
  41.     }
  42.     composeOptions {
  43.         kotlinCompilerExtensionVersion = "1.4.3"
  44.     }
  45.     packaging {
  46.         resources {
  47.             excludes += "/META-INF/{AL2.0,LGPL2.1}"
  48.         }
  49.     }
  50. }
  51.  
  52. dependencies {
  53.  
  54.     implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.6.2")
  55.     implementation("androidx.lifecycle:lifecycle-runtime-compose:2.6.2")
  56.     implementation("androidx.compose.runtime:runtime-livedata:1.5.4")
  57.     implementation("androidx.navigation:navigation-compose:2.7.5")
  58.     implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.1")
  59.  
  60.  
  61.     //Ktor
  62.     val ktorVersion = "2.3.6"
  63.     implementation("io.ktor:ktor-client-core:$ktorVersion")
  64.     implementation("io.ktor:ktor-client-android:$ktorVersion")
  65.     implementation("io.ktor:ktor-client-json:$ktorVersion")
  66.     implementation("io.ktor:ktor-serialization-kotlinx-json:$ktorVersion")
  67.     implementation("io.ktor:ktor-client-content-negotiation:$ktorVersion")
  68.     implementation("io.ktor:ktor-client-logging:$ktorVersion")
  69.  
  70.     implementation("androidx.core:core-ktx:1.12.0")
  71.     implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.6.2")
  72.     implementation("androidx.activity:activity-compose:1.8.0")
  73.     implementation(platform("androidx.compose:compose-bom:2023.10.01"))
  74.     implementation("androidx.compose.ui:ui")
  75.     implementation("androidx.compose.ui:ui-graphics")
  76.     implementation("androidx.compose.ui:ui-tooling-preview")
  77.     implementation("androidx.compose.material3:material3")
  78.     testImplementation("junit:junit:4.13.2")
  79.     androidTestImplementation("androidx.test.ext:junit:1.1.5")
  80.     androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
  81.     androidTestImplementation(platform("androidx.compose:compose-bom:2023.10.01"))
  82.     androidTestImplementation("androidx.compose.ui:ui-test-junit4")
  83.     debugImplementation("androidx.compose.ui:ui-tooling")
  84.     debugImplementation("androidx.compose.ui:ui-test-manifest")
  85. }
Add Comment
Please, Sign In to add comment