Skip to content

Commit

Permalink
Create ir-compose module
Browse files Browse the repository at this point in the history
  • Loading branch information
egorikftp committed Jan 20, 2025
1 parent 97dfd45 commit dda0c4c
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 7 deletions.
12 changes: 12 additions & 0 deletions components/ir-compose/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
plugins {
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.jetbrains.compose)
}

dependencies {
api(projects.components.ir)

implementation(compose.material3)
implementation(compose.ui)
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.composegears.valkyrie.parser.ktfile.util
package io.github.composegears.valkyrie.ir.compose

import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.graphics.Brush
Expand Down
2 changes: 1 addition & 1 deletion components/parser/ktfile/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ sourceSets {

dependencies {
implementation(projects.components.extensions)
implementation(projects.components.ir)
implementation(projects.components.irCompose)
implementation(projects.components.psi.imagevector)

implementation(compose.material3)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.github.composegears.valkyrie.parser.ktfile

import androidx.compose.ui.graphics.vector.ImageVector
import io.github.composegears.valkyrie.parser.ktfile.util.toComposeImageVector
import io.github.composegears.valkyrie.ir.compose.toComposeImageVector
import io.github.composegears.valkyrie.psi.imagevector.ImageVectorPsiParser
import org.jetbrains.kotlin.psi.KtFile

Expand Down
6 changes: 4 additions & 2 deletions idea-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ dependencies {
implementation(projects.components.extensions)
implementation(projects.components.generator.iconpack)
implementation(projects.components.generator.imagevector)
implementation(projects.components.ir)
implementation(projects.components.irCompose)
implementation(projects.components.parser.ktfile)
implementation(projects.components.parser.svgxml)
implementation(projects.components.psi.iconpack)
implementation(projects.components.psi.imagevector)

compileOnly(compose.desktop.currentOs)
compileOnly(compose.desktop.currentOs) {
exclude(group = "org.jetbrains.compose.material")
}
implementation(compose.desktop.common)
implementation(compose.desktop.linux_arm64)
implementation(compose.desktop.linux_x64)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import androidx.compose.ui.unit.min
import androidx.compose.ui.unit.times
import io.github.composegears.valkyrie.ir.IR_STUB
import io.github.composegears.valkyrie.ir.IrImageVector
import io.github.composegears.valkyrie.parser.ktfile.util.toComposeImageVector
import io.github.composegears.valkyrie.ir.compose.toComposeImageVector
import io.github.composegears.valkyrie.ui.foundation.VerticalSpacer
import io.github.composegears.valkyrie.ui.foundation.previewbg.BgType.PixelGrid
import io.github.composegears.valkyrie.ui.foundation.previewbg.PreviewBackground
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import androidx.compose.ui.input.pointer.pointerInput
import androidx.compose.ui.unit.dp
import io.github.composegears.valkyrie.ir.IR_STUB
import io.github.composegears.valkyrie.ir.IrImageVector
import io.github.composegears.valkyrie.parser.ktfile.util.toComposeImageVector
import io.github.composegears.valkyrie.ir.compose.toComposeImageVector
import io.github.composegears.valkyrie.ui.foundation.previewbg.BgType
import io.github.composegears.valkyrie.ui.foundation.previewbg.PreviewBackground
import io.github.composegears.valkyrie.ui.foundation.theme.PreviewTheme
Expand Down
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ include("components:generator:common")
include("components:generator:iconpack")
include("components:generator:imagevector")
include("components:ir")
include("components:ir-compose")
include("components:parser:ktfile")
include("components:parser:svgxml")
include("components:psi:iconpack")
Expand Down

0 comments on commit dda0c4c

Please sign in to comment.