mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Temporarily disable lottie triangulation experiment
This commit is contained in:
parent
1054b38220
commit
8ee8cf8ac7
6 changed files with 13 additions and 11 deletions
|
|
@ -20,7 +20,7 @@ swift_library(
|
|||
"//submodules/Postbox:Postbox",
|
||||
"//submodules/TelegramCore:TelegramCore",
|
||||
"//submodules/MusicAlbumArtResources:MusicAlbumArtResources",
|
||||
"//submodules/MeshAnimationCache:MeshAnimationCache"
|
||||
#"//submodules/MeshAnimationCache:MeshAnimationCache"
|
||||
],
|
||||
visibility = [
|
||||
"//visibility:public",
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import AsyncDisplayKit
|
|||
import Display
|
||||
import DeviceLocationManager
|
||||
import TemporaryCachedPeerDataManager
|
||||
import MeshAnimationCache
|
||||
//import MeshAnimationCache
|
||||
|
||||
public final class TelegramApplicationOpenUrlCompletion {
|
||||
public let completion: (Bool) -> Void
|
||||
|
|
@ -737,7 +737,7 @@ public protocol AccountContext: AnyObject {
|
|||
var currentAppConfiguration: Atomic<AppConfiguration> { get }
|
||||
|
||||
var cachedGroupCallContexts: AccountGroupCallContextCache { get }
|
||||
var meshAnimationCache: MeshAnimationCache { get }
|
||||
//var meshAnimationCache: MeshAnimationCache { get }
|
||||
|
||||
func storeSecureIdPassword(password: String)
|
||||
func getStoredSecureIdPassword() -> String?
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ import Postbox
|
|||
import SwiftSignalKit
|
||||
import GZip
|
||||
|
||||
#error("Exclude")
|
||||
|
||||
public final class MeshAnimationCache {
|
||||
private final class Item {
|
||||
var isPending: Bool = false
|
||||
|
|
|
|||
|
|
@ -243,8 +243,8 @@ swift_library(
|
|||
"//submodules/AdUI:AdUI",
|
||||
"//submodules/SparseItemGrid:SparseItemGrid",
|
||||
"//submodules/CalendarMessageScreen:CalendarMessageScreen",
|
||||
"//submodules/LottieMeshSwift:LottieMeshSwift",
|
||||
"//submodules/MeshAnimationCache:MeshAnimationCache",
|
||||
#"//submodules/LottieMeshSwift:LottieMeshSwift",
|
||||
#"//submodules/MeshAnimationCache:MeshAnimationCache",
|
||||
"//submodules/DirectMediaImageCache:DirectMediaImageCache",
|
||||
] + select({
|
||||
"@build_bazel_rules_apple//apple:ios_armv7": [],
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import TelegramCallsUI
|
|||
import TelegramBaseController
|
||||
import AsyncDisplayKit
|
||||
import PresentationDataUtils
|
||||
import MeshAnimationCache
|
||||
//import MeshAnimationCache
|
||||
|
||||
private final class DeviceSpecificContactImportContext {
|
||||
let disposable = MetaDisposable()
|
||||
|
|
@ -156,7 +156,7 @@ public final class AccountContextImpl: AccountContext {
|
|||
private var experimentalUISettingsDisposable: Disposable?
|
||||
|
||||
public let cachedGroupCallContexts: AccountGroupCallContextCache
|
||||
public let meshAnimationCache: MeshAnimationCache
|
||||
//public let meshAnimationCache: MeshAnimationCache
|
||||
|
||||
public init(sharedContext: SharedAccountContextImpl, account: Account, limitsConfiguration: LimitsConfiguration, contentSettings: ContentSettings, appConfiguration: AppConfiguration, temp: Bool = false)
|
||||
{
|
||||
|
|
@ -189,7 +189,7 @@ public final class AccountContextImpl: AccountContext {
|
|||
}
|
||||
|
||||
self.cachedGroupCallContexts = AccountGroupCallContextCacheImpl()
|
||||
self.meshAnimationCache = MeshAnimationCache(mediaBox: account.postbox.mediaBox)
|
||||
//self.meshAnimationCache = MeshAnimationCache(mediaBox: account.postbox.mediaBox)
|
||||
|
||||
let updatedLimitsConfiguration = account.postbox.preferencesView(keys: [PreferencesKeys.limitsConfiguration])
|
||||
|> map { preferences -> LimitsConfiguration in
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ import ShimmerEffect
|
|||
import WallpaperBackgroundNode
|
||||
import LocalMediaResources
|
||||
import AppBundle
|
||||
import LottieMeshSwift
|
||||
//import LottieMeshSwift
|
||||
|
||||
private let nameFont = Font.medium(14.0)
|
||||
private let inlineBotPrefixFont = Font.regular(14.0)
|
||||
|
|
@ -1435,7 +1435,7 @@ class ChatMessageAnimatedStickerItemNode: ChatMessageItemView {
|
|||
|
||||
let incomingMessage = item.message.effectivelyIncoming(item.context.account.peerId)
|
||||
|
||||
if #available(iOS 13.0, *), item.context.sharedContext.immediateExperimentalUISettings.acceleratedStickers, let meshAnimation = item.context.meshAnimationCache.get(resource: file.resource) {
|
||||
/*if #available(iOS 13.0, *), item.context.sharedContext.immediateExperimentalUISettings.acceleratedStickers, let meshAnimation = item.context.meshAnimationCache.get(resource: file.resource) {
|
||||
var overlayMeshAnimationNode: ChatMessageTransitionNode.DecorationItemNode?
|
||||
if let current = self.overlayMeshAnimationNode {
|
||||
overlayMeshAnimationNode = current
|
||||
|
|
@ -1466,7 +1466,7 @@ class ChatMessageAnimatedStickerItemNode: ChatMessageItemView {
|
|||
if let meshRenderer = overlayMeshAnimationNode?.contentView as? MeshRenderer {
|
||||
meshRenderer.add(mesh: meshAnimation, offset: CGPoint(x: CGFloat.random(in: -30.0 ... 30.0), y: CGFloat.random(in: -30.0 ... 30.0)))
|
||||
}
|
||||
} else {
|
||||
} else*/ do {
|
||||
let pathPrefix = item.context.account.postbox.mediaBox.shortLivedResourceCachePathPrefix(file.resource.id)
|
||||
let additionalAnimationNode = AnimatedStickerNode()
|
||||
additionalAnimationNode.setup(source: source, width: Int(animationSize.width * 2.0), height: Int(animationSize.height * 2.0), playbackMode: .once, mode: .direct(cachePathPrefix: pathPrefix))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue