mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-15 21:45:19 +00:00
Functional
This commit is contained in:
parent
110d9a79f8
commit
3fed9f9624
10
.bazelrc
10
.bazelrc
@ -3,5 +3,11 @@ build --strategy=SwiftCompile=standalone
|
||||
build --apple_platform_type=ios
|
||||
build --cxxopt='-std=c++14'
|
||||
build --copt='-w'
|
||||
build --swiftcopt='-Xcc' --swiftcopt='-w'
|
||||
build --features=swift.enable_batch_mode
|
||||
build --swiftcopt='-Xcc'
|
||||
build --swiftcopt='-w'
|
||||
#build --features=swift.enable_batch_mode
|
||||
build --features=swift.use_global_module_cache
|
||||
build --spawn_strategy=local
|
||||
build --swiftcopt=-wmo
|
||||
build --swiftcopt='-num-threads'
|
||||
build --swiftcopt='16'
|
||||
|
@ -828,6 +828,6 @@ struct MergedLocalWalletConfiguration: Codable, Equatable {
|
||||
|
||||
private extension MergedLocalWalletConfiguration {
|
||||
static var `default`: MergedLocalWalletConfiguration {
|
||||
return MergedLocalWalletConfiguration(configuration: LocalWalletConfiguration(source: .url("https://test.ton.org/config.json"), blockchainName: "testnet"), resolved: nil)
|
||||
return MergedLocalWalletConfiguration(configuration: LocalWalletConfiguration(source: .url("https://test.ton.org/config.json"), blockchainName: "testnet2"), resolved: nil)
|
||||
}
|
||||
}
|
||||
|
@ -172,7 +172,7 @@ private final class NavigationButtonItemNode: ImmediateTextNode {
|
||||
}
|
||||
|
||||
override func updateLayout(_ constrainedSize: CGSize) -> CGSize {
|
||||
let superSize = super.calculateSizeThatFits(constrainedSize)
|
||||
let superSize = super.updateLayout(constrainedSize)
|
||||
|
||||
if let node = self.node {
|
||||
let nodeSize = node.measure(constrainedSize)
|
||||
|
@ -5,17 +5,15 @@ import AsyncDisplayKit
|
||||
open class ASImageNode: ASDisplayNode {
|
||||
public var image: UIImage? {
|
||||
didSet {
|
||||
if self.isNodeLoaded {
|
||||
if let image = self.image {
|
||||
let capInsets = image.capInsets
|
||||
if capInsets.left.isZero && capInsets.top.isZero {
|
||||
ASDisplayNodeSetResizableContents(self, image)
|
||||
} else {
|
||||
self.contents = self.image?.cgImage
|
||||
}
|
||||
if let image = self.image {
|
||||
let capInsets = image.capInsets
|
||||
if capInsets.left.isZero && capInsets.top.isZero {
|
||||
self.contents = self.image?.cgImage
|
||||
} else {
|
||||
self.contents = nil
|
||||
ASDisplayNodeSetResizableContents(self, image)
|
||||
}
|
||||
} else {
|
||||
self.contents = nil
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -709,8 +709,6 @@ typedef enum {
|
||||
uint64_t requestId = _nextRequestId;
|
||||
_nextRequestId += 1;
|
||||
|
||||
__weak TON *weakSelf = self;
|
||||
SQueue *queue = _queue;
|
||||
_requestHandlers[@(requestId)] = [[TONRequestHandler alloc] initWithCompletion:^(tonlib_api::object_ptr<tonlib_api::Object> &object) {
|
||||
if (object->get_id() == tonlib_api::error::ID) {
|
||||
auto error = tonlib_api::move_object_as<tonlib_api::error>(object);
|
||||
|
@ -2894,7 +2894,7 @@ private final class WalletWordCheckScreenNode: ViewControllerTracingNode, UIScro
|
||||
|
||||
let buttonFrame = CGRect(origin: CGPoint(x: floor((contentAreaSize.width - buttonWidth) / 2.0), y: max(contentHeight + buttonSpacing, availableAreaSize.height - bottomInset - buttonHeight)), size: CGSize(width: buttonWidth, height: buttonHeight))
|
||||
transition.updateFrame(node: self.buttonNode, frame: buttonFrame)
|
||||
self.buttonNode.updateLayout(width: buttonFrame.width, transition: transition)
|
||||
let _ = self.buttonNode.updateLayout(width: buttonFrame.width, transition: transition)
|
||||
|
||||
transition.animateView {
|
||||
self.scrollNode.view.contentInset = UIEdgeInsets(top: 0.0, left: 0.0, bottom: layout.insets(options: [.input]).bottom + 30.0, right: 0.0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user