Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions chiptextfield-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ kotlin {
jvmToolchain(11)

jvm()
// iosX64()
// macosX64()
iosX64()
iosArm64()
iosSimulatorArm64()
js(IR) {
browser()
}

wasmJs {
binaries.executable()
binaries.library()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")

package com.dokar.chiptextfield

import androidx.compose.foundation.shape.CircleShape
Expand All @@ -6,15 +8,15 @@ import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.Shape
import androidx.compose.ui.text.PlatformParagraphStyle
import androidx.compose.ui.text.PlatformSpanStyle
import androidx.compose.ui.text.PlatformTextStyle
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.createPlatformTextStyle
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp

object BasicChipTextFieldDefaults {
private const val DISABLED_CONTENT_ALPHA = 0.38f

private val DefaultPlatformTextStyle = PlatformTextStyle(
private val DefaultPlatformTextStyle = createPlatformTextStyle(
spanStyle = PlatformSpanStyle.Default,
paragraphStyle = PlatformParagraphStyle.Default,
)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package com.dokar.chiptextfield

actual suspend fun awaitFrame() {
//TODO can't found same method on IOS, umm
//I can't sure that it can works, wait a test for it
}
5 changes: 3 additions & 2 deletions chiptextfield-m3/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ kotlin {
jvmToolchain(11)

jvm()
// iosX64()
// macosX64()
iosX64()
iosArm64()
iosSimulatorArm64()
js(IR) {
browser()
}
Expand Down
6 changes: 4 additions & 2 deletions chiptextfield/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ kotlin {
jvmToolchain(11)

jvm()
// iosX64()
// macosX64()
iosX64()
iosArm64()
iosSimulatorArm64()

js(IR) {
browser()
}
Expand Down
4 changes: 3 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ androidCompileSdk = "34"
androidTargetSdk = "34"
kotlin = "2.0.0"
coil = "3.0.0-alpha01"
compose-multiplatform = "1.6.11"
compose-multiplatform = "1.7.3"
coroutines = "1.8.1"
agp = "8.5.1"
maven-publish = "0.29.0"
Expand All @@ -12,9 +12,11 @@ ktor = "2.3.12"
[libraries]
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "coroutines" }
kotlinx-coroutines-swing = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-swing", version.ref = "coroutines" }
kotlinx-coroutines-ios = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core-ios", version.ref = "coroutines" }
coil-compose = { module = "io.coil-kt.coil3:coil-compose", version.ref = "coil" }
coil-network = { module = "io.coil-kt.coil3:coil-network", version.ref = "coil" }
ktor-okhttp = { module = "io.ktor:ktor-client-okhttp", version.ref = "ktor" }
ktor-darwin = { module = "io.ktor:ktor-client-darwin", version.ref = "ktor" }
ktor-js = { module = "io.ktor:ktor-client-js", version.ref = "ktor" }

[plugins]
Expand Down
Empty file modified gradlew
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions sample/ios/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
28 changes: 28 additions & 0 deletions sample/ios/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
plugins {
id("kotlin-multiplatform")
id("org.jetbrains.compose")
alias(libs.plugins.compose.compiler)
}

kotlin {
listOf(iosX64(), iosArm64(), iosSimulatorArm64()).forEach {
it.binaries.framework {
baseName = "ComposeApp"
isStatic = true
}
}

sourceSets {
iosMain {
dependencies {
implementation(project(":sample:shared"))
}
}

//may be imported?
//kotlinx-coroutines-core-iosarm32/ - -
//kotlinx-coroutines-core-iosarm64/ - -
//kotlinx-coroutines-core-iossimulatorarm64/ - -
//kotlinx-coroutines-core-iosx64/
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.dokar.chiptextfield.sample

import androidx.compose.ui.window.ComposeUIViewController

fun MainViewController() = ComposeUIViewController { SampleScreen() }
3 changes: 3 additions & 0 deletions sample/iosApp/Configuration/Config.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TEAM_ID=
BUNDLE_ID=org.example.project.KotlinProject
APP_NAME=KotlinProject
Loading