Skip to content

Commit

Permalink
PubNub Swift Chat SDK 0.8.1 (#6)
Browse files Browse the repository at this point in the history
fix(project): fix dependency issues for kmp-chat and its submodules
  • Loading branch information
jguz-pubnub authored Oct 22, 2024
1 parent 399023e commit 2deda1b
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 8 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ playground.xcworkspace
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
Packages/
Package.pins
Package.resolved
.swiftpm
.build

Expand Down
23 changes: 23 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"pins" : [
{
"identity" : "kmp-chat",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pubnub/kmp-chat",
"state" : {
"revision" : "a2a433d17ca2364b3381a7ff3cd2223c88f6206e",
"version" : "0.8.1-dev"
}
},
{
"identity" : "swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pubnub/swift",
"state" : {
"revision" : "7ec97085f008532fde807568409941badbc1e737",
"version" : "8.0.0"
}
}
],
"version" : 2
}
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.0-dev"),
.package(url: "https://github.com/pubnub/kmp-chat", exact: "0.8.1-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.0;
MARKETING_VERSION = 0.8.1;
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.0;
MARKETING_VERSION = 0.8.1;
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.0-dev";
version = "0.8.1-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.0-dev`
4. From the **Dependency Rule** drop-down list, select **Exact**. In the version input field, type `0.8.1-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.0")
pubNub.setConsumer(identifier: "chat-sdk", value: "CA-SWIFT/0.8.1")
// 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.0")
pubNub.setConsumer(identifier: "chat-sdk", value: "CA-SWIFT/0.8.1")
// Creates an association between KMP chat and the current instance
ChatAdapter.associate(chat: self, rawChat: chat)
}
Expand Down

0 comments on commit 2deda1b

Please sign in to comment.