Skip to content

Commit

Permalink
PubNub Swift Chat SDK 0.8.2 (#7)
Browse files Browse the repository at this point in the history
fix(project): use kmp-chat dependency without pubnub-kotlin submodule
  • Loading branch information
jguz-pubnub authored Oct 24, 2024
1 parent 2deda1b commit 4cee3a3
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Packages/
Package.pins
.swiftpm
.build
PubNubSwiftChatSDK.xcworkspace/xcshareddata/swiftpm

# CocoaPods
#
Expand Down
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/pubnub/kmp-chat",
"state" : {
"revision" : "a2a433d17ca2364b3381a7ff3cd2223c88f6206e",
"version" : "0.8.1-dev"
"revision" : "d648292b9caa64391626c4ae760fd544b0d8ee82",
"version" : "0.8.2-dev"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let package = Package(
)
],
dependencies: [
.package(url: "https://github.com/pubnub/kmp-chat", exact: "0.8.1-dev"),
.package(url: "https://github.com/pubnub/kmp-chat", exact: "0.8.2-dev"),
.package(url: "https://github.com/pubnub/swift", exact: "8.0.0")
],
targets: [
Expand Down
6 changes: 3 additions & 3 deletions PubNubSwiftChatSDK.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@
"@loader_path/Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 12.0;
MARKETING_VERSION = 0.8.1;
MARKETING_VERSION = 0.8.2;
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20";
OTHER_SWIFT_FLAGS = "$(inherited) -D COCOAPODS";
Expand Down Expand Up @@ -750,7 +750,7 @@
"@loader_path/Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 12.0;
MARKETING_VERSION = 0.8.1;
MARKETING_VERSION = 0.8.2;
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20";
OTHER_SWIFT_FLAGS = "$(inherited) -D COCOAPODS";
Expand Down Expand Up @@ -862,7 +862,7 @@
repositoryURL = "https://github.com/pubnub/kmp-chat";
requirement = {
kind = exactVersion;
version = "0.8.1-dev";
version = "0.8.2-dev";
};
};
/* End XCRemoteSwiftPackageReference section */
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ You will need the publish and subscribe keys to authenticate your app. Get your
1. Create or open your project inside Xcode.
2. Navigate to **File -> Add Package Dependencies**.
3. Search for `https://github.com/pubnub/swift-chat-sdk`
4. From the **Dependency Rule** drop-down list, select **Exact**. In the version input field, type `0.8.1-dev`
4. From the **Dependency Rule** drop-down list, select **Exact**. In the version input field, type `0.8.2-dev`
5. Click the **Add Package** button.

For more information see Apple's guide on [Adding Package Dependencies to Your App](https://developer.apple.com/documentation/xcode/adding_package_dependencies_to_your_app)
Expand Down
4 changes: 2 additions & 2 deletions Sources/ChatImpl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public final class ChatImpl {
chat = ChatImpl.createKMPChat(from: pubNub, config: chatConfiguration)

// Provide a mechanism for reading a version number from a .plist file.
pubNub.setConsumer(identifier: "chat-sdk", value: "CA-SWIFT/0.8.1")
pubNub.setConsumer(identifier: "chat-sdk", value: "CA-SWIFT/0.8.2")
// Creates an association between KMP chat and the current instance
ChatAdapter.associate(chat: self, rawChat: chat)
}
Expand All @@ -54,7 +54,7 @@ public final class ChatImpl {
chat = ChatImpl.createKMPChat(from: pubNub, config: configuration)

// Provide a mechanism for reading a version number from a .plist file.
pubNub.setConsumer(identifier: "chat-sdk", value: "CA-SWIFT/0.8.1")
pubNub.setConsumer(identifier: "chat-sdk", value: "CA-SWIFT/0.8.2")
// Creates an association between KMP chat and the current instance
ChatAdapter.associate(chat: self, rawChat: chat)
}
Expand Down

0 comments on commit 4cee3a3

Please sign in to comment.