Build with Xcode 15

This commit is contained in:
Ali 2023-08-22 23:48:13 +04:00
parent a73e1d805e
commit a739be8b6d
6 changed files with 11 additions and 6 deletions

View File

@ -13,7 +13,7 @@ public struct LocalAuth {
if context.canEvaluatePolicy(LAPolicy(rawValue: Int(kLAPolicyDeviceOwnerAuthenticationWithBiometrics))!, error: nil) { if context.canEvaluatePolicy(LAPolicy(rawValue: Int(kLAPolicyDeviceOwnerAuthenticationWithBiometrics))!, error: nil) {
if #available(iOSApplicationExtension 11.0, iOS 11.0, *) { if #available(iOSApplicationExtension 11.0, iOS 11.0, *) {
switch context.biometryType { switch context.biometryType {
case .faceID: case .faceID://, .opticID:
return .faceId return .faceId
case .touchID: case .touchID:
return .touchId return .touchId

View File

@ -924,7 +924,7 @@ final class MessageHistoryTable: Table {
operationsByPeerId[message.id.peerId]!.append(contentsOf: operations) operationsByPeerId[message.id.peerId]!.append(contentsOf: operations)
} }
} else { } else {
assertionFailure() //assertionFailure()
} }
} }
} }

View File

@ -21,6 +21,7 @@ import InAppPurchaseManager
import AnimationCache import AnimationCache
import MultiAnimationRenderer import MultiAnimationRenderer
import AppBundle import AppBundle
import DirectMediaImageCache
private final class DeviceSpecificContactImportContext { private final class DeviceSpecificContactImportContext {
let disposable = MetaDisposable() let disposable = MetaDisposable()
@ -243,12 +244,16 @@ public final class AccountContextImpl: AccountContext {
private var userLimitsConfigurationDisposable: Disposable? private var userLimitsConfigurationDisposable: Disposable?
public private(set) var userLimits: EngineConfiguration.UserLimits public private(set) var userLimits: EngineConfiguration.UserLimits
public let imageCache: AnyObject?
public init(sharedContext: SharedAccountContextImpl, account: Account, limitsConfiguration: LimitsConfiguration, contentSettings: ContentSettings, appConfiguration: AppConfiguration, temp: Bool = false) public init(sharedContext: SharedAccountContextImpl, account: Account, limitsConfiguration: LimitsConfiguration, contentSettings: ContentSettings, appConfiguration: AppConfiguration, temp: Bool = false)
{ {
self.sharedContextImpl = sharedContext self.sharedContextImpl = sharedContext
self.account = account self.account = account
self.engine = TelegramEngine(account: account) self.engine = TelegramEngine(account: account)
self.imageCache = DirectMediaImageCache(account: account)
self.userLimits = EngineConfiguration.UserLimits(UserLimitsConfiguration.defaultValue) self.userLimits = EngineConfiguration.UserLimits(UserLimitsConfiguration.defaultValue)
self.downloadedMediaStoreManager = DownloadedMediaStoreManagerImpl(postbox: account.postbox, accountManager: sharedContext.accountManager) self.downloadedMediaStoreManager = DownloadedMediaStoreManagerImpl(postbox: account.postbox, accountManager: sharedContext.accountManager)

View File

@ -37,7 +37,7 @@ enum Keyframes {
extension KeyframeGroup { extension KeyframeGroup {
/// Whether or not all of the keyframes in this `KeyframeGroup` have the same /// Whether or not all of the keyframes in this `KeyframeGroup` have the same
/// timing parameters as the corresponding keyframe in the other given `KeyframeGroup` /// timing parameters as the corresponding keyframe in the other given `KeyframeGroup`
func hasSameTimingParameters<T>(as other: KeyframeGroup<T>) -> Bool { func hasSameTimingParameters<A>(as other: KeyframeGroup<A>) -> Bool {
guard keyframes.count == other.keyframes.count else { guard keyframes.count == other.keyframes.count else {
return false return false
} }
@ -50,7 +50,7 @@ extension KeyframeGroup {
extension Keyframe { extension Keyframe {
/// Whether or not this keyframe has the same timing parameters as the given keyframe /// Whether or not this keyframe has the same timing parameters as the given keyframe
func hasSameTimingParameters<T>(as other: Keyframe<T>) -> Bool { func hasSameTimingParameters<A>(as other: Keyframe<A>) -> Bool {
time == other.time time == other.time
&& isHold == other.isHold && isHold == other.isHold
&& inTangent == other.inTangent && inTangent == other.inTangent

View File

@ -289,7 +289,7 @@ void bn_mul_comba4(BN_ULONG r[8], const BN_ULONG a[4], const BN_ULONG b[4]);
void bn_mul_comba8(BN_ULONG r[16], const BN_ULONG a[8], const BN_ULONG b[8]); void bn_mul_comba8(BN_ULONG r[16], const BN_ULONG a[8], const BN_ULONG b[8]);
// bn_sqr_comba8 sets |r| to |a|^2. // bn_sqr_comba8 sets |r| to |a|^2.
void bn_sqr_comba8(BN_ULONG r[16], const BN_ULONG a[4]); void bn_sqr_comba8(BN_ULONG r[16], const BN_ULONG a[8]);
// bn_sqr_comba4 sets |r| to |a|^2. // bn_sqr_comba4 sets |r| to |a|^2.
void bn_sqr_comba4(BN_ULONG r[8], const BN_ULONG a[4]); void bn_sqr_comba4(BN_ULONG r[8], const BN_ULONG a[4]);

View File

@ -1,5 +1,5 @@
{ {
"app": "10.0.2", "app": "10.0.2",
"bazel": "6.3.2", "bazel": "6.3.2",
"xcode": "14.3" "xcode": "14.2.1"
} }