Skip to content

Commit 31d5360

Browse files
[KMP] JS CustomMessageType support + build tweaks (#321)
* [KMP] JS CustomMessageType support + build tweaks * PubNub SDK v10.3.1 release. --------- Co-authored-by: PubNub Release Bot <[email protected]>
1 parent e82e27a commit 31d5360

File tree

22 files changed

+94
-221
lines changed

22 files changed

+94
-221
lines changed

.github/workflows/commands-handler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
name: Process command
1313
if: github.event.issue.pull_request && endsWith(github.repository, '-private') != true
1414
runs-on:
15-
group: organization/Default
15+
group: macos-gh
1616
steps:
1717
- name: Check referred user
1818
id: user-check

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ out/
1313
test.properties
1414
local.properties
1515
*.DS_STORE
16+
*.podspec
1617

1718
# GitHub Actions #
1819
##################

.pubnub.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: kotlin
2-
version: 10.3.0
2+
version: 10.3.1
33
schema: 1
44
scm: github.com/pubnub/kotlin
55
files:
6-
- build/libs/pubnub-kotlin-10.3.0-all.jar
6+
- build/libs/pubnub-kotlin-10.3.1-all.jar
77
sdks:
88
-
99
type: library
@@ -23,8 +23,8 @@ sdks:
2323
-
2424
distribution-type: library
2525
distribution-repository: maven
26-
package-name: pubnub-kotlin-10.3.0
27-
location: https://repo.maven.apache.org/maven2/com/pubnub/pubnub-kotlin/10.3.0/pubnub-kotlin-10.3.0.jar
26+
package-name: pubnub-kotlin-10.3.1
27+
location: https://repo.maven.apache.org/maven2/com/pubnub/pubnub-kotlin/10.3.1/pubnub-kotlin-10.3.1.jar
2828
supported-platforms:
2929
supported-operating-systems:
3030
Android:
@@ -114,6 +114,11 @@ sdks:
114114
license-url: https://www.apache.org/licenses/LICENSE-2.0.txt
115115
is-required: Required
116116
changelog:
117+
- date: 2024-12-12
118+
version: v10.3.1
119+
changes:
120+
- type: improvement
121+
text: "Internal changes for Chat SDK."
117122
- date: 2024-12-05
118123
version: v10.3.0
119124
changes:

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## v10.3.1
2+
December 12 2024
3+
4+
#### Modified
5+
- Internal changes for Chat SDK.
6+
17
## v10.3.0
28
December 05 2024
39

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ You will need the publish and subscribe keys to authenticate your app. Get your
2020
<dependency>
2121
<groupId>com.pubnub</groupId>
2222
<artifactId>pubnub-kotlin</artifactId>
23-
<version>10.3.0</version>
23+
<version>10.3.1</version>
2424
</dependency>
2525
```
2626

build-logic/gradle-plugins/src/main/kotlin/com/pubnub/gradle/PubNubKotlinMultiplatformPlugin.kt

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package com.pubnub.gradle
22

33
import org.gradle.api.Plugin
44
import org.gradle.api.Project
5+
import org.gradle.api.artifacts.VersionCatalogsExtension
56
import org.gradle.api.plugins.ExtensionAware
67
import org.gradle.api.tasks.testing.AbstractTestTask
78
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
@@ -38,9 +39,16 @@ class PubNubKotlinMultiplatformPlugin : Plugin<Project> {
3839
}
3940

4041
pod("PubNubSwift") {
41-
// val swiftPath = project.findProperty("SWIFT_PATH") as? String ?: "swift"
42-
// source = path(rootProject.file(swiftPath))
43-
version = "8.2.2"
42+
val swiftPath = project.findProperty("SWIFT_PATH") as? String
43+
if (swiftPath != null) {
44+
source = path(rootProject.file(swiftPath))
45+
} else {
46+
version = project.rootProject
47+
.extensions
48+
.getByType(VersionCatalogsExtension::class.java)
49+
.named("libs")
50+
.findVersion("pubnub.swift").get().requiredVersion
51+
}
4452
moduleName = "PubNubSDK"
4553
extraOpts += listOf("-compiler-option", "-fmodules")
4654
}

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ RELEASE_SIGNING_ENABLED=true
1818
SONATYPE_HOST=DEFAULT
1919
SONATYPE_AUTOMATIC_RELEASE=false
2020
GROUP=com.pubnub
21-
VERSION_NAME=10.3.0
21+
VERSION_NAME=10.3.1
2222
POM_PACKAGING=jar
2323

2424
POM_NAME=PubNub SDK
@@ -39,7 +39,7 @@ POM_DEVELOPER_NAME=PubNub
3939
POM_DEVELOPER_URL=[email protected]
4040

4141
IOS_SIMULATOR_ID=iPhone 15 Pro
42-
SWIFT_PATH=swift
42+
#SWIFT_PATH=../swift
4343

4444
ENABLE_TARGET_JS=true
4545
ENABLE_TARGET_IOS_OTHER=false

gradle/libs.versions.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ vanniktech = "0.29.0"
1010
ktlint = "12.1.0"
1111
dokka = "1.9.20"
1212
kotlinx_datetime = "0.6.1"
13-
kotlinx_coroutines = "1.8.1"
13+
kotlinx_coroutines = "1.9.0"
14+
pubnub_js = "8.3.1"
15+
pubnub_swift = "8.2.2"
1416

1517
[libraries]
1618
retrofit2 = { module = "com.squareup.retrofit2:retrofit", version.ref = "retrofit2" }

kotlin-js-store/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -659,10 +659,10 @@ proxy-from-env@^1.1.0:
659659
resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2"
660660
integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==
661661

662-
pubnub@8.2.8:
663-
version "8.2.8"
664-
resolved "https://registry.yarnpkg.com/pubnub/-/pubnub-8.2.8.tgz#68d3b84d07e128b29f74c6c46495f0c5bedd1a3f"
665-
integrity sha512-OREW+YDWWocOaz16jbrrybD0AyqEFuskCGi+EMgOb9FUJkuYPnInjlMSAUBBrlx7lMTARMQxx3Sk0EIvbB3hig==
662+
pubnub@8.3.1:
663+
version "8.3.1"
664+
resolved "https://registry.yarnpkg.com/pubnub/-/pubnub-8.3.1.tgz#48b6c2468452427c9d1aa9a51e78781d25eec660"
665+
integrity sha512-+aFp84Jsqpmu9utci8uQhABTMoh1Uk8UafGS1QANSkceXX3HDRTQnpTw8itH0UchzCS9pSfUATTl+Ay3jvM5EA==
666666
dependencies:
667667
agentkeepalive "^3.5.2"
668668
buffer "^6.0.3"

pubnub-kotlin/pubnub-kotlin-api/PubNubKMP.podspec

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)