Skip to content

Commit

Permalink
Merge pull request #75 from yml-org/fix/core-publish
Browse files Browse the repository at this point in the history
fix: core library unspecified
  • Loading branch information
osugikoji authored May 24, 2023
2 parents e30386c + 2c98f9a commit 271c414
Show file tree
Hide file tree
Showing 14 changed files with 47 additions and 36 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ repositories {
Then, simply import the dependency to your `build.gradle` dependencies:

```kotlin
implementation("co.yml:ychat:1.4.0")
implementation("co.yml:ychat:1.4.1")
```

Take a look at the Kotlin code snippet below for an example of how to initialize and use one of the supported features:
Expand Down
Binary file renamed YChat-1.4.0.zip → YChat-1.4.1.zip
Binary file not shown.
16 changes: 7 additions & 9 deletions YChat.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,33 @@
<key>AvailableLibraries</key>
<array>
<dict>
<key>DebugSymbolsPath</key>
<string>dSYMs</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>macos-arm64_x86_64</string>
<key>LibraryPath</key>
<string>YChat.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<string>macos</string>
</dict>
<dict>
<key>DebugSymbolsPath</key>
<string>dSYMs</string>
<key>LibraryIdentifier</key>
<string>macos-arm64_x86_64</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>YChat.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>macos</string>
<string>ios</string>
</dict>
<dict>
<key>DebugSymbolsPath</key>
<string>dSYMs</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
Expand Down
Binary file modified YChat.xcframework/ios-arm64/YChat.framework/YChat
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/spm-tasks.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tasks.register("checkSwiftPackageVersion") {
description = "Checks if the Swift package has the updated version by comparing it with the current library version."
doLast {
val iosLibraryName = properties["IOS_NAME"]
val libraryVersion = properties["VERSION_NAME"]
val libraryVersion = properties["LIBRARY_VERSION"]
val iosPackage = "$iosLibraryName-$libraryVersion.zip"
val filePath = File(rootProject.rootDir, iosPackage)
if (!filePath.exists()) {
Expand Down
4 changes: 1 addition & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ android.nonTransitiveRClass=true
kotlin.mpp.enableCInteropCommonization=true

# Lib
GROUP=co.yml
POM_ARTIFACT_ID=ychat
VERSION_NAME=1.4.0
LIBRARY_VERSION=1.4.1
IOS_NAME=YChat

# OSS
Expand Down
30 changes: 29 additions & 1 deletion ychat-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {
id("io.gitlab.arturbosch.detekt")
id("org.jlleitschuh.gradle.ktlint")
id("org.jetbrains.kotlinx.kover")
id("com.vanniktech.maven.publish")
}

kover {
Expand Down Expand Up @@ -40,7 +41,6 @@ kotlin {
api(Dependencies.Network.KTOR_SERIALIZATION)
api(Dependencies.Network.KTOR_CORE)
api(Dependencies.Network.KTOR_LOGGING)
api(Dependencies.DI.KOIN_CORE)
}
}
val commonTest by getting {
Expand Down Expand Up @@ -102,3 +102,31 @@ android {
targetSdk = Config.TARGET_SDK_VERSION
}
}

mavenPublishing {
coordinates("co.yml", "ychat-core", properties["LIBRARY_VERSION"].toString())
pom {
developers {
developer {
id.set("osugikoji")
name.set("Koji Osugi")
url.set("https://github.com/osugikoji")
}
developer {
id.set("renatoarg")
name.set("Renato Goncalves")
url.set("https://github.com/renatoarg")
}
developer {
id.set("kikoso")
name.set("Enrique López Mañas")
url.set("https://github.com/kikoso")
}
developer {
id.set("samirma")
name.set("Samir Moreira Antonio")
url.set("https://github.com/samirma")
}
}
}
}
9 changes: 8 additions & 1 deletion ychat/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ kover {
}

val iosLibraryName = properties["IOS_NAME"].toString()
version = properties["VERSION_NAME"].toString()
version = properties["LIBRARY_VERSION"].toString()

multiplatformSwiftPackage {
packageName(iosLibraryName)
Expand Down Expand Up @@ -53,6 +53,7 @@ kotlin {
sourceSets {
val commonMain by getting {
dependencies {
implementation(Dependencies.DI.KOIN_CORE)
implementation(project(":ychat-core"))
}
}
Expand Down Expand Up @@ -114,6 +115,7 @@ android {
}

mavenPublishing {
coordinates("co.yml", "ychat", properties["LIBRARY_VERSION"].toString())
pom {
developers {
developer {
Expand All @@ -131,6 +133,11 @@ mavenPublishing {
name.set("Enrique López Mañas")
url.set("https://github.com/kikoso")
}
developer {
id.set("samirma")
name.set("Samir Moreira Antonio")
url.set("https://github.com/samirma")
}
}
}
}

0 comments on commit 271c414

Please sign in to comment.