Skip to content

Commit

Permalink
feat: support iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptoAlgorithm committed Dec 7, 2023
1 parent 2d42c69 commit e77883f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import PackageDescription
let package = Package(
name: "DiscordKit",
platforms: [
.macOS(.v11)
.macOS(.v11),
.iOS(.v15)
],
products: [
.library(name: "DiscordKitCore", targets: ["DiscordKitCore"]),
Expand Down
8 changes: 4 additions & 4 deletions Sources/DiscordKitCore/Gateway/DecompressionEngine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
// Created by Vincent Kwok on 13/5/22.
//

#if os(macOS)
import Foundation
import Compression
import Logging

#if os(macOS) || os(iOS)
import Compression

/// Decompresses `zlib-stream`-compressed payloads received
/// from the Gateway
///
Expand Down Expand Up @@ -148,9 +149,8 @@ public extension DecompressionEngine {
return decompressed
}
}

#else
import Foundation
import Logging
import SWCompression

public class DecompressionEngine {
Expand Down

0 comments on commit e77883f

Please sign in to comment.