Skip to content

Commit 271c414

Browse files
authored
Merge pull request #75 from yml-org/fix/core-publish
fix: core library unspecified
2 parents e30386c + 2c98f9a commit 271c414

File tree

14 files changed

+47
-36
lines changed

14 files changed

+47
-36
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ repositories {
5959
Then, simply import the dependency to your `build.gradle` dependencies:
6060

6161
```kotlin
62-
implementation("co.yml:ychat:1.4.0")
62+
implementation("co.yml:ychat:1.4.1")
6363
```
6464

6565
Take a look at the Kotlin code snippet below for an example of how to initialize and use one of the supported features:

YChat-1.4.0.zip YChat-1.4.1.zip

26.2 MB
Binary file not shown.

YChat.xcframework/Info.plist

+7-9
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,33 @@
55
<key>AvailableLibraries</key>
66
<array>
77
<dict>
8-
<key>DebugSymbolsPath</key>
9-
<string>dSYMs</string>
108
<key>LibraryIdentifier</key>
11-
<string>ios-arm64</string>
9+
<string>macos-arm64_x86_64</string>
1210
<key>LibraryPath</key>
1311
<string>YChat.framework</string>
1412
<key>SupportedArchitectures</key>
1513
<array>
1614
<string>arm64</string>
15+
<string>x86_64</string>
1716
</array>
1817
<key>SupportedPlatform</key>
19-
<string>ios</string>
18+
<string>macos</string>
2019
</dict>
2120
<dict>
21+
<key>DebugSymbolsPath</key>
22+
<string>dSYMs</string>
2223
<key>LibraryIdentifier</key>
23-
<string>macos-arm64_x86_64</string>
24+
<string>ios-arm64</string>
2425
<key>LibraryPath</key>
2526
<string>YChat.framework</string>
2627
<key>SupportedArchitectures</key>
2728
<array>
2829
<string>arm64</string>
29-
<string>x86_64</string>
3030
</array>
3131
<key>SupportedPlatform</key>
32-
<string>macos</string>
32+
<string>ios</string>
3333
</dict>
3434
<dict>
35-
<key>DebugSymbolsPath</key>
36-
<string>dSYMs</string>
3735
<key>LibraryIdentifier</key>
3836
<string>ios-arm64_x86_64-simulator</string>
3937
<key>LibraryPath</key>
Binary file not shown.
Binary file not shown.

YChat.xcframework/ios-arm64_x86_64-simulator/dSYMs/YChat.framework.dSYM/Contents/Info.plist

-20
This file was deleted.
Binary file not shown.
Binary file not shown.

buildSrc/src/main/kotlin/spm-tasks.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ tasks.register("checkSwiftPackageVersion") {
66
description = "Checks if the Swift package has the updated version by comparing it with the current library version."
77
doLast {
88
val iosLibraryName = properties["IOS_NAME"]
9-
val libraryVersion = properties["VERSION_NAME"]
9+
val libraryVersion = properties["LIBRARY_VERSION"]
1010
val iosPackage = "$iosLibraryName-$libraryVersion.zip"
1111
val filePath = File(rootProject.rootDir, iosPackage)
1212
if (!filePath.exists()) {

gradle.properties

+1-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ android.nonTransitiveRClass=true
99
kotlin.mpp.enableCInteropCommonization=true
1010

1111
# Lib
12-
GROUP=co.yml
13-
POM_ARTIFACT_ID=ychat
14-
VERSION_NAME=1.4.0
12+
LIBRARY_VERSION=1.4.1
1513
IOS_NAME=YChat
1614

1715
# OSS

ychat-core/build.gradle.kts

+29-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ plugins {
44
id("io.gitlab.arturbosch.detekt")
55
id("org.jlleitschuh.gradle.ktlint")
66
id("org.jetbrains.kotlinx.kover")
7+
id("com.vanniktech.maven.publish")
78
}
89

910
kover {
@@ -40,7 +41,6 @@ kotlin {
4041
api(Dependencies.Network.KTOR_SERIALIZATION)
4142
api(Dependencies.Network.KTOR_CORE)
4243
api(Dependencies.Network.KTOR_LOGGING)
43-
api(Dependencies.DI.KOIN_CORE)
4444
}
4545
}
4646
val commonTest by getting {
@@ -102,3 +102,31 @@ android {
102102
targetSdk = Config.TARGET_SDK_VERSION
103103
}
104104
}
105+
106+
mavenPublishing {
107+
coordinates("co.yml", "ychat-core", properties["LIBRARY_VERSION"].toString())
108+
pom {
109+
developers {
110+
developer {
111+
id.set("osugikoji")
112+
name.set("Koji Osugi")
113+
url.set("https://github.com/osugikoji")
114+
}
115+
developer {
116+
id.set("renatoarg")
117+
name.set("Renato Goncalves")
118+
url.set("https://github.com/renatoarg")
119+
}
120+
developer {
121+
id.set("kikoso")
122+
name.set("Enrique López Mañas")
123+
url.set("https://github.com/kikoso")
124+
}
125+
developer {
126+
id.set("samirma")
127+
name.set("Samir Moreira Antonio")
128+
url.set("https://github.com/samirma")
129+
}
130+
}
131+
}
132+
}

ychat/build.gradle.kts

+8-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ kover {
2323
}
2424

2525
val iosLibraryName = properties["IOS_NAME"].toString()
26-
version = properties["VERSION_NAME"].toString()
26+
version = properties["LIBRARY_VERSION"].toString()
2727

2828
multiplatformSwiftPackage {
2929
packageName(iosLibraryName)
@@ -53,6 +53,7 @@ kotlin {
5353
sourceSets {
5454
val commonMain by getting {
5555
dependencies {
56+
implementation(Dependencies.DI.KOIN_CORE)
5657
implementation(project(":ychat-core"))
5758
}
5859
}
@@ -114,6 +115,7 @@ android {
114115
}
115116

116117
mavenPublishing {
118+
coordinates("co.yml", "ychat", properties["LIBRARY_VERSION"].toString())
117119
pom {
118120
developers {
119121
developer {
@@ -131,6 +133,11 @@ mavenPublishing {
131133
name.set("Enrique López Mañas")
132134
url.set("https://github.com/kikoso")
133135
}
136+
developer {
137+
id.set("samirma")
138+
name.set("Samir Moreira Antonio")
139+
url.set("https://github.com/samirma")
140+
}
134141
}
135142
}
136143
}

0 commit comments

Comments
 (0)