mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-15 21:45:19 +00:00
Improvements
This commit is contained in:
parent
5886c6225b
commit
110d9a79f8
2
.bazelrc
2
.bazelrc
@ -1,5 +1,7 @@
|
||||
build --strategy=Genrule=local
|
||||
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
|
||||
|
10
Wallet/BUILD
10
Wallet/BUILD
@ -22,6 +22,13 @@ genrule(
|
||||
cmd = version_info_plist_source,
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "Strings",
|
||||
srcs = glob([
|
||||
"Strings/**/*",
|
||||
], exclude = ["Strings/**/.*"]),
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "Main",
|
||||
srcs = [
|
||||
@ -34,6 +41,9 @@ swift_library(
|
||||
srcs = glob([
|
||||
"Sources/**/*.swift",
|
||||
]),
|
||||
data = [
|
||||
":Strings",
|
||||
],
|
||||
deps = [
|
||||
"//submodules/GZip:GZip",
|
||||
"//submodules/AsyncDisplayKit:AsyncDisplayKit",
|
||||
|
@ -7,7 +7,7 @@
|
||||
// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
|
||||
#import "_ASCoreAnimationExtras.h"
|
||||
#import <AsyncDisplayKit/_ASCoreAnimationExtras.h>
|
||||
#import <AsyncDisplayKit/_ASAsyncTransaction.h>
|
||||
#import <AsyncDisplayKit/_ASDisplayLayer.h>
|
||||
#import <AsyncDisplayKit/ASAssert.h>
|
||||
|
@ -7,7 +7,7 @@
|
||||
// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
|
||||
#import "_ASCoreAnimationExtras.h"
|
||||
#import <AsyncDisplayKit/_ASCoreAnimationExtras.h>
|
||||
#import "_ASPendingState.h"
|
||||
#import <AsyncDisplayKit/ASInternalHelpers.h>
|
||||
#import "ASDisplayNodeInternal.h"
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
#import <AsyncDisplayKit/_ASAsyncTransaction.h>
|
||||
#import "_ASAsyncTransactionContainer+Private.h"
|
||||
#import "_ASCoreAnimationExtras.h"
|
||||
#import <AsyncDisplayKit/_ASCoreAnimationExtras.h>
|
||||
#import <AsyncDisplayKit/_ASDisplayLayer.h>
|
||||
#import <AsyncDisplayKit/_ASDisplayView.h>
|
||||
#import "_ASPendingState.h"
|
||||
|
@ -7,7 +7,7 @@
|
||||
// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
|
||||
#import "_ASCoreAnimationExtras.h"
|
||||
#import <AsyncDisplayKit/_ASCoreAnimationExtras.h>
|
||||
#import <AsyncDisplayKit/ASEqualityHelpers.h>
|
||||
#import <AsyncDisplayKit/ASAssert.h>
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
#import <AsyncDisplayKit/_ASDisplayView.h>
|
||||
#import "_ASDisplayViewAccessiblity.h"
|
||||
|
||||
#import "_ASCoreAnimationExtras.h"
|
||||
#import <AsyncDisplayKit/_ASCoreAnimationExtras.h>
|
||||
#import <AsyncDisplayKit/_ASDisplayLayer.h>
|
||||
#import "ASDisplayNodeInternal.h"
|
||||
#import <AsyncDisplayKit/ASDisplayNode+Convenience.h>
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
#import "_ASPendingState.h"
|
||||
|
||||
#import "_ASCoreAnimationExtras.h"
|
||||
#import <AsyncDisplayKit/_ASCoreAnimationExtras.h>
|
||||
#import <AsyncDisplayKit/_ASAsyncTransactionContainer.h>
|
||||
#import <AsyncDisplayKit/ASAssert.h>
|
||||
#import <AsyncDisplayKit/ASEqualityHelpers.h>
|
||||
|
@ -6,8 +6,16 @@ open class ASImageNode: ASDisplayNode {
|
||||
public var image: UIImage? {
|
||||
didSet {
|
||||
if self.isNodeLoaded {
|
||||
self.contents = self.image?.cgImage
|
||||
//(self.view as? ASImageNodeView)?.image = self.image
|
||||
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
|
||||
}
|
||||
} else {
|
||||
self.contents = nil
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -16,15 +24,5 @@ open class ASImageNode: ASDisplayNode {
|
||||
|
||||
override public init() {
|
||||
super.init()
|
||||
|
||||
/*self.setViewBlock({
|
||||
return ASImageNodeView(frame: CGRect())
|
||||
})*/
|
||||
}
|
||||
|
||||
override open func didLoad() {
|
||||
super.didLoad()
|
||||
|
||||
//(self.view as? ASImageNodeView)?.image = self.image
|
||||
}
|
||||
}
|
||||
|
@ -1,21 +1,5 @@
|
||||
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library")
|
||||
|
||||
'''apple_resource(
|
||||
name = "WalletUIResources",
|
||||
files = glob([
|
||||
"Resources/**/*",
|
||||
], exclude = ["Resources/**/.*"]),
|
||||
visibility = ["PUBLIC"],
|
||||
)'''
|
||||
|
||||
'''apple_asset_catalog(
|
||||
name = 'WalletUIAssets',
|
||||
dirs = [
|
||||
"WalletImages.xcassets",
|
||||
],
|
||||
visibility = ["PUBLIC"],
|
||||
)'''
|
||||
|
||||
filegroup(
|
||||
name = "WalletUIResources",
|
||||
srcs = glob([
|
||||
|
Loading…
x
Reference in New Issue
Block a user