Commit Graph

25012 Commits

Author SHA1 Message Date
Brandon Withrow
d06a02721d Added precomp support 2017-02-24 09:47:18 -08:00
Brandon Withrow
48d35667a3 Move main layerContainer over to compLayer 2017-02-24 09:47:18 -08:00
Brandon Withrow
0967f30f67 Rework model layer and begin complayer 2017-02-24 09:47:18 -08:00
Brandon Withrow
6dc8e37392 Refactor layers for precomps 2017-02-24 09:47:18 -08:00
Peter
fb5b83ca7c no message 2017-02-24 17:41:39 +03:00
overtake
a5c51ca1c1 Merge branch 'master' of https://github.com/peter-iakovlev/TelegramCore 2017-02-24 15:38:19 +01:00
overtake
acd3f44ebf add supergroup members 2017-02-24 15:38:14 +01:00
Peter
3e83bee909 no message 2017-02-24 16:46:17 +03:00
Benjamin Scholtysik (Reimold)
02249c2141 bump version and build number, update readme and podspec, update changelog 2017-02-23 16:32:00 -08:00
Adlai Holler
9f45788594 ASDataController: Eliminate Mutable State (#3071)
* Finish renaming

* ASDataController: Reduce mutable state

* Update comments
2017-02-23 15:37:21 -08:00
Huy Nguyen
230bfb578e Support native item and section reloads (#3066) 2017-02-23 14:57:43 -08:00
Brandon Withrow
c42702ac2b Merge pull request #121 from airbnb/btw/npmUpdate
Update Static Library Build
2017-02-23 14:53:42 -08:00
Brandon Withrow
e1aa92eec3 Update Static Library Build 2017-02-23 14:52:57 -08:00
Garrett Moon
bf2ed841c2 Don't keep clearing the image if it's already been cleared. (#3069) 2017-02-23 13:10:39 -08:00
Adlai Holler
1d21c0bd55 Clean up actionForLayer:forKey: (#3063) 2017-02-23 11:32:01 -08:00
Garrett Moon
6a9781f64c Update for 2.2 (#3068) 2017-02-23 11:09:54 -08:00
Adlai Holler
6ab92dbd3f Prevent Adding View-Backed Nodes to Layer-Backed Hierarchies (#3062)
* Prevent adding view-backed nodes to layer-backed nodes

* Do that in a different diff

* Fix the message

* Update tests

* Fix the fix
2017-02-22 17:48:13 -08:00
Brandon Withrow
3b7abdf2d8 Merge pull request #116 from airbnb/btw/screenshottests
Add Screenshot UI Testing
2017-02-22 17:22:45 -08:00
Brandon Withrow
f99f69ac8d Updated gitignore 2017-02-22 17:17:03 -08:00
Brandon Withrow
a4818449cf Added Screenshot Testing 2017-02-22 17:14:51 -08:00
Adlai Holler
86dd918143 Promote ASIndexedNodeContext -> ASCollectionElement (#3061)
* Remove indexPath field from ASIndexedNodeContext

* Rename ASIndexedNodeContext -> ASCollectionItem

* Name it ASCollectionElement
2017-02-22 16:55:02 -08:00
Huy Nguyen
74c6cca0b6 [ASDataController] Refactor ASDataController (#3017)
* Refactor ASDataController

Check optional methods in ASDataControllerSource

* Reimplement reloadData

* Refactor new code
- No more new/inserted contexts flag
- Encapsulate code shared between reloadData and updateWithChangeSet
- Remove dataControllerWillDeleteAllData delegate method
- Hierarchy changes no longer needs to conform to NSCopying
- Reword TODOs

* Forgot to call completion block of reloadData :P

* Completion block of -[ASDataController reloadDataWithCompletion:] is nullable

* Data queried from ASCollectionNode and ASTableNode should be in UIKit index space
- This helps to avoid immature node allocation, especially when node virtualization is a thing
- However, this means that -reloadDataInitiallyIfNeeded in ASCollectionNode and ASTableNode must wait until all updates are finished.

* ASDataController shouldn't assume that allocated nodes were also laid out

* Revert "Data queried from ASCollectionNode and ASTableNode should be in UIKit index space"

This reverts commit 7bc977b3808a92f484b297781d0f5b30aa258e17.

* -nodeAtIndexPath: of ASDataController now forces node allocation, with the assumption that clients absolutely need it.
- Revisit this when node virtualization is implemented.

* ASDataController only grab changeSet.completionHandler when needed because it'll be niled out

* Fix ASTableViewTests related to reloadData

* Fix testThatDeletedItemsAreMarkedInvisible in ASCollectionViewTests

* Minor changes in ASCollectionView and ASTableView

* ASCollectionView and ASTableView shouldn't call [super reloadData] before their data controller does anything

* Address comments

* Fuse reloadData into -updateWithChangeSet: of ASDataController

* reloadData shouldn't be called as if it's inside a batch
- It can't be used in conjuntion with other updates.
- Calling it inside a batch update during the initial load can cause data inconsistency thrown by UICollectionView/UITableView

* Refactor ASDataControllerDelegate and ASRangeControllerDelegate
- Replace delegate methods in these protocols with -willUpdateWithChangeSet and -didUpdateWithChangeSet.
- ASRangeController, ASCollectionView and ASTableView are simplified because of this.

* Fix mismatch between sorting orders in ASDataController

* Forgot to call completion handler of reload change sets

* Make sure ASCollectionView is compatible with the behavior of UICollectionView's reloadData
- Since UICollectionView's reloadData doesn't requery data source but defers until the next layout pass,  we need to wait until then to update range controller and do batch fetching.
- `-[ASCollectionView waitUntilAllUpdatesAreCommited]` needs to force a layout pass to make sure
everything is ready after it returns.

* testSectionIndexHandling of ASTableViewTests should only check visible nodes. Other nodes will be re-measured later.

* ASTableView is not ready until the first layout pass finished

* Address comments

* Bug fixes
2017-02-22 13:50:07 -08:00
Peter
8b64a69082 Merge commit '367d8a226234e1abd376832cdcf940e5837a14dc' 2017-02-23 00:08:27 +03:00
Peter
7433c00595 no message 2017-02-23 00:07:43 +03:00
Peter
f1bd3236ba no message 2017-02-23 00:06:58 +03:00
Peter
fc1361c2af no message 2017-02-22 22:42:11 +03:00
Brandon Withrow
d91fc78980 Merge pull request #113 from pawlowskialex/master
Dispatch LOTAnimationView completion to the main thread on macOS (fixes #103)
2017-02-22 11:41:06 -08:00
Peter
38d03fb2ff no message 2017-02-22 22:26:23 +03:00
Hannah Troisi
ea09ad75ef [Sample] Move example screenshot assets to AsyncDisplayKit/docs repo (#3058)
* move example app screenshot assets to AsyncDisplayKit/docs repo & update links

* Update README.md

* Update README.md

* Update README.md
2017-02-22 10:32:51 -08:00
Peter
22d81e15c3 no message 2017-02-22 21:32:39 +03:00
overtake
be482e5bff - added
ChannelParticipants.swift
2017-02-22 19:15:09 +01:00
overtake
b5b0f9722f Merge branch 'master' of https://github.com/peter-iakovlev/TelegramCore 2017-02-22 19:12:24 +01:00
overtake
a8a460fcd3 recentPeers little fix 2017-02-22 19:12:08 +01:00
Peter
317c12a012 no message 2017-02-22 18:30:05 +03:00
Alex Pawlowski
acbdfb776d Dispatch LOTAnimationView completion to the main thread on macOS (fixes #103) 2017-02-22 14:23:38 +02:00
appleguy
36538996c7 [Yoga] Fix ASLayout hierarchy to only include immediate subnodes. (#3054)
This patch also adds ASEdgeInsetsZero, and one fix to passthrough of UIKit Supplementary Views.
2017-02-21 16:47:07 -08:00
Garrett Moon
75fddb1f77 Upgrades to latest PINRemoteImage which should fix GIF rendering. (#3057) 2017-02-21 11:43:36 -08:00
overtake
628e22c688 multi accounts 2017-02-21 11:15:56 +01:00
overtake
32fb89ffc4 Merge branch 'master' of https://github.com/peter-iakovlev/TelegramCore 2017-02-20 17:14:50 +01:00
overtake
a3ed908b0b no message 2017-02-20 17:14:44 +01:00
Peter
c6a13d52d2 no message 2017-02-20 19:13:36 +03:00
Peter
7540c7494c no message 2017-02-20 19:13:17 +03:00
Peter
f0e2cbee88 no message 2017-02-19 23:22:06 +03:00
Peter
367d8a2262 no message 2017-02-19 23:21:50 +03:00
Peter
a9c96e7712 no message 2017-02-19 23:21:31 +03:00
Peter
a0ccb729be no message 2017-02-19 23:21:03 +03:00
Peter
53710d4733 Merge commit '637597a5c1afcc8e0b702f13278474fddf84a1bf' 2017-02-19 23:20:25 +03:00
Peter
b076cf4dd1 no message 2017-02-19 23:20:10 +03:00
Garrett Moon
4e779eeed8 Need to set defaultImage, not image if we're a network image node. (#3041) 2017-02-17 13:16:57 -08:00
overtake
637597a5c1 - no message 2017-02-17 16:49:45 +03:00