Skip to content

Commit

Permalink
feat: build.gradle.kts 마이그레이션
Browse files Browse the repository at this point in the history
  • Loading branch information
oreocube committed May 9, 2024
1 parent d6339f9 commit 1e8b40a
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 80 deletions.
72 changes: 0 additions & 72 deletions app/build.gradle

This file was deleted.

75 changes: 75 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
id("dagger.hilt.android.plugin")
id("kotlin-kapt")
}

android {
namespace = "com.hrhn"
compileSdk = 33

defaultConfig {
applicationId = "com.hrhn"
minSdk = 26
targetSdk = 33
versionCode = 3
versionName = "1.0.1"
setProperty("archivesBaseName", "HRHN-v${versionName}(${versionCode})")

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
bundle {
storeArchive {
enable = false
}
}
buildTypes {
getByName("release") {
isMinifyEnabled = true
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
buildFeatures {
dataBinding = true
viewBinding = true
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
}

dependencies {

implementation("androidx.core:core-ktx:1.7.0")
implementation("androidx.appcompat:appcompat:1.5.1")
implementation("com.google.android.material:material:1.7.0")
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
implementation("androidx.fragment:fragment-ktx:1.5.5")
implementation("androidx.preference:preference:1.2.0")
implementation("androidx.core:core-splashscreen:1.0.0")
implementation("androidx.paging:paging-runtime-ktx:3.1.1")
implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.1.0")

val hilt_version = "2.44"
implementation("com.google.dagger:hilt-android:$hilt_version")
kapt("com.google.dagger:hilt-android-compiler:$hilt_version")

val room_version = "2.5.0"
implementation("androidx.room:room-ktx:$room_version")
implementation("androidx.room:room-runtime:$room_version")
annotationProcessor("androidx.room:room-compiler:$room_version")
kapt("androidx.room:room-compiler:$room_version")
implementation("androidx.room:room-paging:$room_version")

testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test.ext:junit:1.1.4")
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.0")
}
7 changes: 0 additions & 7 deletions build.gradle

This file was deleted.

7 changes: 7 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id("com.android.application") version "7.3.0" apply false
id("com.android.library") version "7.3.0" apply false
id("org.jetbrains.kotlin.android") version "1.7.10" apply false
id("com.google.dagger.hilt.android") version "2.44" apply false
}
2 changes: 1 addition & 1 deletion settings.gradle → settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ dependencyResolutionManagement {
}
}
rootProject.name = "HRHN"
include ':app'
include(":app")

0 comments on commit 1e8b40a

Please sign in to comment.