Skip to content

Commit

Permalink
patch: update discordKit to reference local compiled protos
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptoAlgorithm committed Oct 19, 2022
1 parent e209871 commit f7abd99
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 17 deletions.
9 changes: 0 additions & 9 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,6 @@
"revision" : "3303b164430d9a7055ba484c8ead67a52f7b74f6",
"version" : "1.0.0"
}
},
{
"identity" : "swift-protobuf",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-protobuf.git",
"state" : {
"revision" : "88c7d15e1242fdb6ecbafbc7926426a19be1e98a",
"version" : "1.20.2"
}
}
],
"version" : 2
Expand Down
5 changes: 0 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ let package = Package(
.product(name: "Reachability", package: "Reachability.swift", condition: .when(platforms: [.macOS])),
.product(name: "SwiftProtobuf", package: "swift-protobuf"),
.target(name: "DiscordKitCommon"),
.target(name: "Protos")
],
exclude: [
"REST/README.md",
Expand All @@ -40,10 +39,6 @@ let package = Package(
name: "DiscordKitCommon",
exclude: ["Objects/README.md"]
),
.binaryTarget(
name: "Protos",
path: "./Sources/DIscordKit/protos/Protos.xcframework"
),
.testTarget(name: "DiscordKitCommonTests", dependencies: ["DiscordKitCommon"])
],
swiftLanguageVersions: [.v5]
Expand Down
1 change: 0 additions & 1 deletion Sources/DiscordKit/Extensions/Presence+.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import Foundation
import DiscordKitCommon
import Protos

extension Presence {
init(protoStatus: StatusSettings, id: Snowflake) {
Expand Down
3 changes: 1 addition & 2 deletions Sources/DiscordKit/Gateway/DiscordGateway.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import Foundation
import os
import DiscordKitCommon
import DiscordKitCore
import Protos

/// Higher-level Gateway manager, mainly for handling and dispatching
/// Gateway events
Expand Down Expand Up @@ -293,7 +292,7 @@ public class DiscordGateway: ObservableObject {
case let (.channelUpdate, channel as Channel):
cache.replace(channel)

case let (.messageCreate, message as Message):
case let (.messageCreate, message as DiscordKitCommon.Message):
cache.appendOrReplace(message)

case let (.presenceUpdate, update as PresenceUpdate):
Expand Down

0 comments on commit f7abd99

Please sign in to comment.