Skip to content

Commit 39abf06

Browse files
committed
Create kotlin-codepoints subproject
1 parent 6d2c1d2 commit 39abf06

17 files changed

+99
-85
lines changed

build.gradle.kts

Lines changed: 3 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,83 +1,5 @@
1-
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
2-
3-
plugins {
4-
kotlin("multiplatform") version "1.8.0"
5-
id("com.vanniktech.maven.publish") version "0.23.2"
6-
}
7-
8-
repositories {
9-
mavenCentral()
10-
}
11-
12-
kotlin {
13-
androidNativeArm32()
14-
androidNativeArm64()
15-
androidNativeX86()
16-
androidNativeX64()
17-
18-
iosArm32()
19-
iosArm64()
20-
iosX64()
21-
iosSimulatorArm64()
22-
23-
js(IR) {
24-
browser {}
25-
}
26-
27-
jvm {
28-
compilations.all {
29-
kotlinOptions.jvmTarget = "1.8"
30-
}
1+
allprojects {
2+
repositories {
3+
mavenCentral()
314
}
32-
33-
linuxArm32Hfp()
34-
linuxArm64()
35-
linuxMips32()
36-
linuxMipsel32()
37-
linuxX64()
38-
39-
macosX64()
40-
macosArm64()
41-
42-
mingwX64()
43-
mingwX86()
44-
45-
tvosArm64()
46-
tvosX64()
47-
tvosSimulatorArm64()
48-
49-
wasm32()
50-
51-
watchosArm32()
52-
watchosArm64()
53-
watchosDeviceArm64()
54-
watchosX86()
55-
watchosX64()
56-
watchosSimulatorArm64()
57-
58-
sourceSets {
59-
val commonMain by getting
60-
val commonTest by getting {
61-
dependencies {
62-
implementation(kotlin("test"))
63-
}
64-
}
65-
66-
val commonImplementation by creating {
67-
dependsOn(commonMain)
68-
}
69-
}
70-
71-
targets.onEach {
72-
if (it.platformType != KotlinPlatformType.jvm) {
73-
it.compilations.getByName("main").source(sourceSets.getByName("commonImplementation"))
74-
}
75-
}
76-
}
77-
78-
tasks.create("publishMips") {
79-
dependsOn(
80-
"publishLinuxMips32PublicationToMavenCentralRepository",
81-
"publishLinuxMipsel32PublicationToMavenCentralRepository"
82-
)
835
}

gradle.properties

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
GROUP=de.cketti.unicode
2-
POM_ARTIFACT_ID=kotlin-codepoints
32
VERSION_NAME=0.4.0-SNAPSHOT
43

5-
POM_NAME=kotlin-codepoints
6-
POM_DESCRIPTION=Kotlin Multiplatform (KMP) library that adds basic support for Unicode code points.
74
POM_INCEPTION_YEAR=2023
85

96
POM_URL=https://github.com/cketti/kotlin-codepoints

gradle/libs.versions.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[versions]
2+
kotlin = "1.8.0"
3+
4+
[plugins]
5+
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
6+
vanniktech-maven-publish = "com.vanniktech.maven.publish:0.23.2"

kotlin-codepoints/build.gradle.kts

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
2+
3+
plugins {
4+
alias(libs.plugins.kotlin.multiplatform)
5+
alias(libs.plugins.vanniktech.maven.publish)
6+
}
7+
8+
kotlin {
9+
androidNativeArm32()
10+
androidNativeArm64()
11+
androidNativeX86()
12+
androidNativeX64()
13+
14+
iosArm32()
15+
iosArm64()
16+
iosX64()
17+
iosSimulatorArm64()
18+
19+
js(IR) {
20+
browser {}
21+
}
22+
23+
jvm {
24+
compilations.all {
25+
kotlinOptions.jvmTarget = "1.8"
26+
}
27+
}
28+
29+
linuxArm32Hfp()
30+
linuxArm64()
31+
linuxMips32()
32+
linuxMipsel32()
33+
linuxX64()
34+
35+
macosX64()
36+
macosArm64()
37+
38+
mingwX64()
39+
mingwX86()
40+
41+
tvosArm64()
42+
tvosX64()
43+
tvosSimulatorArm64()
44+
45+
wasm32()
46+
47+
watchosArm32()
48+
watchosArm64()
49+
watchosDeviceArm64()
50+
watchosX86()
51+
watchosX64()
52+
watchosSimulatorArm64()
53+
54+
sourceSets {
55+
val commonMain by getting
56+
val commonTest by getting {
57+
dependencies {
58+
implementation(kotlin("test"))
59+
}
60+
}
61+
62+
val commonImplementation by creating {
63+
dependsOn(commonMain)
64+
}
65+
}
66+
67+
targets.onEach {
68+
if (it.platformType != KotlinPlatformType.jvm) {
69+
it.compilations.getByName("main").source(sourceSets.getByName("commonImplementation"))
70+
}
71+
}
72+
}
73+
74+
@Suppress("UnstableApiUsage")
75+
mavenPublishing {
76+
pom {
77+
name.set("kotlin-codepoint")
78+
description.set("Kotlin Multiplatform (KMP) library that adds basic support for Unicode code points.")
79+
}
80+
}
81+
82+
tasks.create("publishMips") {
83+
dependsOn(
84+
"publishLinuxMips32PublicationToMavenCentralRepository",
85+
"publishLinuxMipsel32PublicationToMavenCentralRepository"
86+
)
87+
}

src/commonImplementation/kotlin/CodePoints.kt renamed to kotlin-codepoints/src/commonImplementation/kotlin/CodePoints.kt

File renamed without changes.

src/commonImplementation/kotlin/StringBuilderExtensions.kt renamed to kotlin-codepoints/src/commonImplementation/kotlin/StringBuilderExtensions.kt

File renamed without changes.

src/commonImplementation/kotlin/StringExtensions.kt renamed to kotlin-codepoints/src/commonImplementation/kotlin/StringExtensions.kt

File renamed without changes.
File renamed without changes.

src/commonMain/kotlin/StringBuilderExtensions.kt renamed to kotlin-codepoints/src/commonMain/kotlin/StringBuilderExtensions.kt

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)