mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-08 19:10:53 +00:00
Fix bazel linking
This commit is contained in:
parent
04fbe1832d
commit
0b13fe22b5
@ -3,6 +3,10 @@ import Postbox
|
||||
|
||||
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 {
|
||||
if peer is TelegramUser || peer is TelegramGroup {
|
||||
return !peer.isDeleted
|
||||
|
@ -2,6 +2,10 @@ import Foundation
|
||||
import Postbox
|
||||
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 {
|
||||
func md5Digest() -> Data {
|
||||
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 {
|
||||
return dataSizeString(Int64(size), forceDecimal: forceDecimal, decimalSeparator: decimalSeparator)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user