Skip to content

Commit

Permalink
move to packages
Browse files Browse the repository at this point in the history
  • Loading branch information
avan1235 committed Feb 11, 2024
1 parent 38a1dc7 commit 29a2404
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
1 change: 0 additions & 1 deletion composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ kotlin {
outputFileName = "composeApp.js"
val corsPort = env.CORS_PORT.value.toInt()
devServer = devServer?.copy(port = corsPort) ?: KotlinWebpackConfig.DevServer(port = corsPort)

}
}
binaries.executable()
Expand Down
4 changes: 2 additions & 2 deletions composeApp/src/commonMain/kotlin/in/procyk/shin/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androidx.compose.ui.input.key.*
import `in`.procyk.shin.ShortenRequest
import `in`.procyk.shin.ShortenResponse
import `in`.procyk.shin.ui.ShortenRequest
import `in`.procyk.shin.ui.ShortenResponse
import `in`.procyk.shin.createHttpClient

@Composable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package `in`.procyk.shin
package `in`.procyk.shin.model

internal enum class ShortenedProtocol(val presentableName: String) {
HTTPS("https"),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package `in`.procyk.shin
package `in`.procyk.shin.ui

import androidx.compose.foundation.Image
import androidx.compose.material.MaterialTheme
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package `in`.procyk.shin
package `in`.procyk.shin.ui

import Shorten
import androidx.compose.foundation.layout.*
Expand All @@ -14,6 +14,7 @@ import androidx.compose.ui.text.input.ImeAction
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import applyIf
import `in`.procyk.shin.model.ShortenedProtocol
import io.ktor.client.*
import io.ktor.client.plugins.resources.*
import io.ktor.client.statement.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package `in`.procyk.shin
package `in`.procyk.shin.ui

import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.expandVertically
Expand Down
6 changes: 6 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@ android.nonTransitiveRClass=true
android.useAndroidX=true

#Compose
org.jetbrains.compose.experimental.jscanvas.enabled=true
org.jetbrains.compose.experimental.macos.enabled=true
org.jetbrains.compose.experimental.uikit.enabled=true
org.jetbrains.compose.experimental.wasm.enabled=true

#MPP
kotlin.native.useEmbeddableCompilerJar=true
kotlin.native.binary.memoryModel=experimental
kotlin.mpp.androidSourceSetLayoutVersion=2
kotlin.mpp.stability.nowarn=true
kotlin.mpp.enableCInteropCommonization=true

#Development
Expand Down

0 comments on commit 29a2404

Please sign in to comment.