Skip to content

Commit

Permalink
[FEAT/#1] version catalog μˆ˜μ •
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeyubin committed Jun 30, 2024
1 parent caa904b commit 6f1a1f4
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 20 deletions.
14 changes: 7 additions & 7 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ plugins {

android {
namespace = "com.terning.point"
compileSdk = 34
compileSdk = libs.versions.compileSdk.get().toInt()

defaultConfig {
applicationId = "com.terning.point"
minSdk = 28
targetSdk = 34
versionCode = 1
versionName = "1.0"
minSdk = libs.versions.minSdk.get().toInt()
targetSdk = libs.versions.targetSdk.get().toInt()
versionCode = libs.versions.versionCode.get().toInt()
versionName = libs.versions.versionName.get()

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
Expand Down Expand Up @@ -46,14 +46,14 @@ android {
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = libs.versions.jvmTarget.get()
}
buildFeatures {
compose = true
buildConfig = true
}
composeOptions {
kotlinCompilerExtensionVersion = "1.5.0"
kotlinCompilerExtensionVersion = libs.versions.kotlinCompilerExtensionVersion.get()
}
packaging {
resources {
Expand Down
6 changes: 3 additions & 3 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ plugins {

android {
namespace = "com.terning.core"
compileSdk = 34
compileSdk = libs.versions.compileSdk.get().toInt()

defaultConfig {
minSdk = 28
minSdk = libs.versions.minSdk.get().toInt()

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
Expand Down Expand Up @@ -36,7 +36,7 @@ android {
buildConfig = true
}
composeOptions {
kotlinCompilerExtensionVersion = "1.5.0"
kotlinCompilerExtensionVersion = libs.versions.kotlinCompilerExtensionVersion.get()
}
}

Expand Down
6 changes: 3 additions & 3 deletions data/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ plugins {

android {
namespace = "com.terning.data"
compileSdk = 34
compileSdk = libs.versions.compileSdk.get().toInt()

defaultConfig {
minSdk = 28
minSdk = libs.versions.minSdk.get().toInt()

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
Expand All @@ -29,7 +29,7 @@ android {
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = libs.versions.jvmTarget.get()
}
buildFeatures{
buildConfig = true
Expand Down
8 changes: 4 additions & 4 deletions feature/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ plugins {

android {
namespace = "com.terning.feature"
compileSdk = 34
compileSdk = libs.versions.compileSdk.get().toInt()

defaultConfig {
minSdk = 28
minSdk = libs.versions.minSdk.get().toInt()

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
Expand All @@ -32,14 +32,14 @@ android {
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = libs.versions.jvmTarget.get()
}
buildFeatures {
compose = true
buildConfig = true
}
composeOptions {
kotlinCompilerExtensionVersion = "1.5.0"
kotlinCompilerExtensionVersion = libs.versions.kotlinCompilerExtensionVersion.get()
}
packaging {
resources {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ fun rememberMainNavigator(
navController: NavHostController = rememberNavController(),
): MainNavigator = remember(navController) {
MainNavigator(navController)
}
}
5 changes: 3 additions & 2 deletions feature/src/main/java/com/terning/feature/main/MainTab.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import com.terning.feature.R
import com.terning.feature.first.navigation.First
import com.terning.feature.mock.navigation.Mock


enum class MainTab(
@DrawableRes val icon: Int,
@StringRes val contentDescription: Int,
Expand All @@ -22,7 +23,7 @@ enum class MainTab(
MOCK(
icon = R.drawable.ic_launcher_foreground,
contentDescription = R.string.mock,
route = Mock,
route = Mock
);

companion object {
Expand All @@ -37,4 +38,4 @@ enum class MainTab(
}

}
}
}
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ minSdk = "28"
targetSdk = "34"
versionName = "1.0.0"
versionCode = "10000"
kotlinCompilerExtensionVersion = "1.5.0"
jvmTarget = "1.8"

## Android gradle plugin
androidGradlePlugin = "8.5.0"
Expand Down

0 comments on commit 6f1a1f4

Please sign in to comment.