eveeeeef21

Gradle GithubUser

Jan 20th, 2024
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 2.05 KB | Source Code | 0 0
  1. plugins {
  2.     id("com.android.application")
  3.     id("org.jetbrains.kotlin.android")
  4.     id("kotlin-parcelize")
  5. }
  6.  
  7. android {
  8.     namespace = "com.ahmadrd.githubuser"
  9.     compileSdk = 34
  10.  
  11.     defaultConfig {
  12.         applicationId = "com.ahmadrd.githubuser"
  13.         minSdk = 24
  14.         targetSdk = 34
  15.         versionCode = 1
  16.         versionName = "1.0"
  17.  
  18.         testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  19.  
  20.         // For safety call data from API
  21.         buildConfigField("String", "KEY", "Rahasia123")
  22.         buildConfigField("String", "BASE_URL", "https://api.github.com/")
  23.     }
  24.  
  25.     buildTypes {
  26.         release {
  27.             isMinifyEnabled = false
  28.             proguardFiles(
  29.                 getDefaultProguardFile("proguard-android-optimize.txt"),
  30.                 "proguard-rules.pro"
  31.             )
  32.         }
  33.     }
  34.     compileOptions {
  35.         sourceCompatibility = JavaVersion.VERSION_1_8
  36.         targetCompatibility = JavaVersion.VERSION_1_8
  37.     }
  38.     kotlinOptions {
  39.         jvmTarget = "1.8"
  40.     }
  41.     buildFeatures {
  42.         viewBinding = true
  43.         buildConfig = true
  44.     }
  45. }
  46.  
  47. dependencies {
  48.  
  49.     implementation("androidx.core:core-ktx:1.12.0")
  50.     implementation("androidx.appcompat:appcompat:1.6.1")
  51.     implementation("com.google.android.material:material:1.11.0")
  52.     implementation("androidx.constraintlayout:constraintlayout:2.1.4")
  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.  
  57.     // Add
  58.     implementation("com.github.bumptech.glide:glide:4.16.0")
  59.     implementation("com.squareup.retrofit2:retrofit:2.9.0")
  60.     implementation("com.squareup.retrofit2:converter-gson:2.9.0")
  61.     implementation("com.squareup.okhttp3:logging-interceptor:4.11.0")
  62.     implementation ("de.hdodenhof:circleimageview:3.1.0")
  63.     implementation ("androidx.viewpager2:viewpager2:1.0.0")
  64.  
  65.     // Android KTX
  66.     implementation ("androidx.activity:activity-ktx:1.8.2")
  67. }
Add Comment
Please, Sign In to add comment