mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-03 21:16:35 +00:00
Fix bazel linking
This commit is contained in:
parent
04fbe1832d
commit
0b13fe22b5
@ -3,6 +3,10 @@ import Postbox
|
|||||||
|
|
||||||
import SyncCore
|
import SyncCore
|
||||||
|
|
||||||
|
// Incuding at least one Objective-C class in a swift file ensures that it doesn't get stripped by the linker
|
||||||
|
private final class LinkHelperClass: NSObject {
|
||||||
|
}
|
||||||
|
|
||||||
public func canSendMessagesToPeer(_ peer: Peer) -> Bool {
|
public func canSendMessagesToPeer(_ peer: Peer) -> Bool {
|
||||||
if peer is TelegramUser || peer is TelegramGroup {
|
if peer is TelegramUser || peer is TelegramGroup {
|
||||||
return !peer.isDeleted
|
return !peer.isDeleted
|
||||||
|
|||||||
@ -2,6 +2,10 @@ import Foundation
|
|||||||
import Postbox
|
import Postbox
|
||||||
import CryptoUtils
|
import CryptoUtils
|
||||||
|
|
||||||
|
// Incuding at least one Objective-C class in a swift file ensures that it doesn't get stripped by the linker
|
||||||
|
private final class LinkHelperClass: NSObject {
|
||||||
|
}
|
||||||
|
|
||||||
public extension MemoryBuffer {
|
public extension MemoryBuffer {
|
||||||
func md5Digest() -> Data {
|
func md5Digest() -> Data {
|
||||||
return CryptoMD5(self.memory, Int32(self.length))
|
return CryptoMD5(self.memory, Int32(self.length))
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
|
import Foundation
|
||||||
|
|
||||||
|
// Incuding at least one Objective-C class in a swift file ensures that it doesn't get stripped by the linker
|
||||||
|
private final class LinkHelperClass: NSObject {
|
||||||
|
}
|
||||||
|
|
||||||
public func dataSizeString(_ size: Int, forceDecimal: Bool = false, decimalSeparator: String = ".") -> String {
|
public func dataSizeString(_ size: Int, forceDecimal: Bool = false, decimalSeparator: String = ".") -> String {
|
||||||
return dataSizeString(Int64(size), forceDecimal: forceDecimal, decimalSeparator: decimalSeparator)
|
return dataSizeString(Int64(size), forceDecimal: forceDecimal, decimalSeparator: decimalSeparator)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user