Skip to content

Commit

Permalink
[CHORE]#3: 라이브러리 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
flash159483 committed Jun 27, 2024
1 parent 36091bf commit 4610144
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,18 @@ import org.gradle.kotlin.dsl.configure
import org.gradle.kotlin.dsl.dependencies
import org.jetbrains.kotlin.compose.compiler.gradle.ComposeCompilerGradlePluginExtension

class AndroidComposePlugin: Plugin<Project> {
class AndroidComposePlugin : Plugin<Project> {
override fun apply(target: Project) {
with(target){
with(target) {
with(pluginManager) {
apply("org.jetbrains.kotlin.plugin.compose")
apply("com.google.devtools.ksp")
}

dependencies {
"implementation"(platform(libs.findLibrary("androidx-compose-bom").get()))
"implementation"(libs.findBundle("androidx-compose").get())
"ksp"(libs.findLibrary("androidx-compose-destination-compiler").get())
}

extensions.configure<BaseExtension> {
Expand Down
14 changes: 11 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ espresso-core = "3.6.1"
appcompat = "1.7.0"

compose-destination = "1.10.2"
lottie = "6.4.1"
datastore = "1.1.1"

[libraries]
android-build = { module = "com.android.tools.build:gradle", version.ref = "gradle-plugin" }
Expand All @@ -57,8 +59,11 @@ androidx-compose-foundation = { group = "androidx.compose.foundation", name = "f
androidx-compose-runtime = { group = "androidx.compose.runtime", name = "runtime" }
androidx-compose-material3 = { group = "androidx.compose.material3", name = "material3" }
androidx-compose-material-icons = { group = "androidx.compose.material", name = "material-icons-extended" }
androidx-navigation-compose = { group = "androidx.navigation", name = "navigation-compose", version.ref = "navigation" }
androidx-hilt-navigation-compose = { module = "androidx.hilt:hilt-navigation-compose", version.ref = "hilt-navigation-compose" }
androidx-compose-destination = { group = "io.github.raamcosta.compose-destinations", name = "core", version.ref = "compose-destination" }
androidx-compose-destination-compiler = { group = "io.github.raamcosta.compose-destinations", name = "ksp", version.ref = "compose-destination" }

lottie = { group = "com.airbnb.android", name = "lottie", version.ref = "lottie" }

compose-compiler-extension = { module = "org.jetbrains.kotlin:compose-compiler-gradle-plugin", version.ref = "kotlin" }

Expand All @@ -81,6 +86,9 @@ orbit-core = { group = "org.orbit-mvi", name = "orbit-core", version.ref = "orbi
orbit-viewmodel = { group = "org.orbit-mvi", name = "orbit-viewmodel", version.ref = "orbit" }
orbit-compose = { group = "org.orbit-mvi", name = "orbit-compose", version.ref = "orbit" }

datastore = { group = "androidx.datastore", name = "datastore-preferences", version.ref = "datastore" }


google-services = { module = "com.google.gms:google-services", version.ref = "google-services" }
crashlytics-plugin = { module = "com.google.firebase:firebase-crashlytics-gradle", version.ref = "crashlytics" }
firebase-bom = { module = "com.google.firebase:firebase-bom", version.ref = "firebase" }
Expand All @@ -102,11 +110,11 @@ androidx-compose = [
"androidx-compose-foundation",
"androidx-compose-runtime",
"androidx-hilt-navigation-compose",
"androidx-navigation-compose",
"androidx-compose-ui-tooling",
"androidx-compose-ui-tooling-preview",
"androidx-compose-material3",
"androidx-compose-material-icons"
"androidx-compose-material-icons",
"androidx-compose-destination"
]

ktor-client = [
Expand Down

0 comments on commit 4610144

Please sign in to comment.