Skip to content

Commit 5e1928c

Browse files
authored
Merge pull request #183 from dokar3/add-ios-targets
Add iOS targets
2 parents 3636acd + ba56ea3 commit 5e1928c

File tree

17 files changed

+607
-3
lines changed

17 files changed

+607
-3
lines changed

chiptextfield-core/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ kotlin {
1616
}
1717

1818
jvm()
19-
// iosX64()
19+
iosX64()
20+
iosArm64()
21+
iosSimulatorArm64()
2022
// macosX64()
2123
wasmJs {
2224
compilerOptions {
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.dokar.chiptextfield
2+
3+
import androidx.compose.runtime.withFrameNanos
4+
import androidx.compose.ui.text.PlatformParagraphStyle
5+
import androidx.compose.ui.text.PlatformSpanStyle
6+
import androidx.compose.ui.text.PlatformTextStyle
7+
8+
actual suspend fun awaitFrame() {
9+
withFrameNanos {}
10+
}
11+
12+
internal actual val DefaultPlatformTextStyle: PlatformTextStyle
13+
get() = PlatformTextStyle(
14+
spanStyle = PlatformSpanStyle.Default,
15+
paragraphStyle = PlatformParagraphStyle.Default,
16+
)

chiptextfield-m3/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ kotlin {
1616
}
1717

1818
jvm()
19-
// iosX64()
19+
iosX64()
20+
iosArm64()
21+
iosSimulatorArm64()
2022
// macosX64()
2123
wasmJs {
2224
compilerOptions {

chiptextfield/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ kotlin {
1616
}
1717

1818
jvm()
19-
// iosX64()
19+
iosX64()
20+
iosArm64()
21+
iosSimulatorArm64()
2022
// macosX64()
2123
wasmJs {
2224
compilerOptions {

sample/iosApp/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## User settings
2+
userdata/
3+
xcuserdata/
4+
/build/
5+
DerivedData/
6+
*.moved-aside
7+
*.xcuserstate
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
TEAM_ID=
3+
BUNDLE_ID=io.github.dokar3.chiptextfield.sample.iosApp
4+
APP_NAME=ChipTextField Sample

0 commit comments

Comments
 (0)