mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-07 17:30:12 +00:00
macos related changes
This commit is contained in:
parent
9d3cc5996b
commit
136e0fa370
@ -4,13 +4,13 @@
|
|||||||
import PackageDescription
|
import PackageDescription
|
||||||
|
|
||||||
let package = Package(
|
let package = Package(
|
||||||
name: "MediaPlayer",
|
name: "TelegramMediaPlayer",
|
||||||
platforms: [.macOS(.v10_13)],
|
platforms: [.macOS(.v10_13)],
|
||||||
products: [
|
products: [
|
||||||
// Products define the executables and libraries a package produces, and make them visible to other packages.
|
// Products define the executables and libraries a package produces, and make them visible to other packages.
|
||||||
.library(
|
.library(
|
||||||
name: "MediaPlayer",
|
name: "TelegramMediaPlayer",
|
||||||
targets: ["MediaPlayer"]),
|
targets: ["TelegramMediaPlayer"]),
|
||||||
],
|
],
|
||||||
dependencies: [
|
dependencies: [
|
||||||
.package(name: "TelegramCore", path: "../TelegramCore"),
|
.package(name: "TelegramCore", path: "../TelegramCore"),
|
||||||
@ -27,7 +27,7 @@ let package = Package(
|
|||||||
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
|
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
|
||||||
// Targets can depend on other targets in this package, and on products in packages this package depends on.
|
// Targets can depend on other targets in this package, and on products in packages this package depends on.
|
||||||
.target(
|
.target(
|
||||||
name: "MediaPlayer",
|
name: "TelegramMediaPlayer",
|
||||||
dependencies: [.product(name: "TelegramCore", package: "TelegramCore", condition: nil),
|
dependencies: [.product(name: "TelegramCore", package: "TelegramCore", condition: nil),
|
||||||
.product(name: "Postbox", package: "Postbox", condition: nil),
|
.product(name: "Postbox", package: "Postbox", condition: nil),
|
||||||
.product(name: "FFMpegBinding", package: "FFMpegBinding", condition: nil),
|
.product(name: "FFMpegBinding", package: "FFMpegBinding", condition: nil),
|
||||||
|
|||||||
@ -929,7 +929,11 @@ public final class Network: NSObject, MTRequestMessageServiceDelegate {
|
|||||||
datacenterId = id
|
datacenterId = id
|
||||||
isCdn = true
|
isCdn = true
|
||||||
}
|
}
|
||||||
|
if datacenterId != 0 {
|
||||||
return strongSelf.makeWorker(datacenterId: datacenterId, isCdn: isCdn, isMedia: isMedia, tag: tag, continueInBackground: continueInBackground)
|
return strongSelf.makeWorker(datacenterId: datacenterId, isCdn: isCdn, isMedia: isMedia, tag: tag, continueInBackground: continueInBackground)
|
||||||
|
} else {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user