Commit Graph

13022 Commits

Author SHA1 Message Date
Benjamin Scholtysik (Reimold)
d2a014bc66 Merge pull request #440 from bitstadium/fix/use-copy-for-NSString
Use copy attribute for properties of type NSString
2017-07-25 19:05:15 -07:00
Benjamin Scholtysik (Reimold)
de5414b683 Use copy attribute for properties of type NSString 2017-07-25 16:46:37 -07:00
Benjamin Scholtysik (Reimold)
488f77a50f Merge branch 'develop' into feature/clean-up-bump-version 2017-07-25 16:06:39 -07:00
Ofer Morag
7b054582cd Update image-modification-block.md (#474)
* Update image-modification-block.md

Just some minor proposals for improvements:
- Removed white spaces, which caused the first line in the image modification block to be shown a bit "messy"
- Using the Null coalescing operator in the following line

* Update image-modification-block.md

Now, with the second change as well.
2017-07-25 14:41:35 -07:00
Benjamin Scholtysik (Reimold)
a398b986d7 Merge pull request #438 from bitstadium/fix/fix-distribution-target
Add macros for different flavors of SDK.
2017-07-25 14:22:23 -07:00
Benjamin Scholtysik (Reimold)
82ae68f282 bump to iOS 8 and some obvious cleanup code 2017-07-24 15:31:14 -07:00
Benjamin Scholtysik (Reimold)
71419b0575 Add macros for different flavors of SDK. 2017-07-24 15:23:32 -07:00
Benjamin Scholtysik (Reimold)
2478642d13 Merge pull request #437 from bmourat/fix/all-warnings
Fix all warnings
2017-07-24 14:44:57 -07:00
Peter
f9bfb3a510 no message 2017-07-24 20:40:31 +02:00
Huy Nguyen
8b397cd04e [Layout transition] Invalidate calculated layout if transitioning using the same size range (#464)
* Invalidate the calculated layout transitioning using the same size range
- It's possible that -transitionLayoutWithSizeRange: can be called with the same size range used for previous layout passes. In that case, it's necessary to invalidate the current layout to avoid it being reused later on in the process.

* Fix CHANGELOG
2017-07-24 11:00:43 -07:00
Murat Baysangurov
3c29622a9f Fixed some warnings in BITCrashManager 2017-07-24 15:16:24 +03:00
Murat Baysangurov
f0ff714f3d Replaced “tgmath.h” with <tgmath.h> 2017-07-24 15:16:04 +03:00
Murat Baysangurov
88e93efe82 Added Wno-covered-switch-default, Wno-switch-enum, Wno-format-nonliteral flags 2017-07-23 21:18:07 +03:00
Murat Baysangurov
eb8ed9dac7 Reverted CTTextAlignment switch 2017-07-23 21:16:56 +03:00
Murat Baysangurov
02531ea7be Miscellaneous warnings fixed 2017-07-23 21:02:21 +03:00
Peter
737903b6cc no message 2017-07-23 15:43:10 +02:00
Peter
2cb1e9538e no message 2017-07-22 01:05:13 +03:00
overtake
d96ee19bf1 no message 2017-07-21 16:28:58 +03:00
overtake
79863fe44c Merge branch 'master' of https://github.com/peter-iakovlev/Signals
Conflicts:
	SSignalKit.xcodeproj/project.pbxproj
2017-07-21 16:28:44 +03:00
Murat Baysangurov
404560f029 Fixed defaultLogHandler declaration 2017-07-21 14:47:52 +03:00
Murat Baysangurov
0b44a33b95 Fixed “declaration shadows local variable” warnings 2017-07-21 14:35:53 +03:00
Murat Baysangurov
f480c8d140 Fixed “No previous extern declaration” warnings 2017-07-21 14:35:27 +03:00
Murat Baysangurov
6247e02de7 Fixed “weak property is accessed multiple times” warnings 2017-07-21 14:22:11 +03:00
Murat Baysangurov
020c7dfc7e Fixed unused variables warnings 2017-07-21 12:43:22 +03:00
Murat Baysangurov
66eb10600c Fixed “ivar is being directly accessed” warnings. Part 3 2017-07-21 12:18:38 +03:00
Murat Baysangurov
5164095c7a Fixed “ivar is being directly accessed” warnings. Part 2 2017-07-21 01:11:34 +03:00
Peter
673b12b529 no message 2017-07-20 15:56:27 +03:00
Murat Baysangurov
a4fd1d72ca Fixed “ivar is being directly accessed” warnings. Part 1 2017-07-20 13:02:46 +03:00
Grishka
e42287b6f4 Fixes 2017-07-20 00:00:13 +03:00
Peter
bf1c9bebeb no message 2017-07-19 20:26:28 +03:00
Peter
138469c9fd Initial Commit 2017-07-19 15:58:59 +03:00
Huy Nguyen
01715f09d8 [ASDisplayNode] Fix infinite layout loop (#455)
* Fix infinite layout loop

- The problem will occur if a node does either of the followings:
1. Keeps using a stale pending layout over a calculated layout
2. Doesn't update the next layout's version after calling _setNeedsLayoutFromAbove.

* Update CHANGELOG
2017-07-18 19:44:27 +00:00
Huy Nguyen
6880ed4aa9 Add ASPagerNode+Beta to umbrella header (#454) 2017-07-18 17:05:59 +00:00
Murat Baysangurov
7345f4ac08 Fixed warnings in BITHockeyManager 2017-07-18 15:49:21 +03:00
Murat Baysangurov
a36161fae5 Fixed ‘implicit conversion increases/decreases precision’ warnings 2017-07-18 14:57:24 +03:00
Murat Baysangurov
a30c4084f2 Fixed “no explicit ownership” warnings 2017-07-18 13:16:15 +03:00
Murat Baysangurov
cdb845a8bd Fixed “macro not used ” warnings 2017-07-18 13:10:09 +03:00
Huy Nguyen
78c133e44c [ASCollectionLayout] Add ASCollectionGalleryLayoutSizeProviding (#451)
* Add ASCollectionGalleryLayoutSizeProviding
- This allows users to return different sizes based on certain conditions, such as the collection node's bounds or grid constants.
- ASPagerNode will also act as a size provider to ensure all pages have an up-to-date size that is its bounds.

* Update CHANGELOG

* ASPagerNode to use gallery layout delegate if told to
2017-07-18 10:08:12 +00:00
Murat Baysangurov
47664a3389 Fixed “conversion from nullable to non-nullable pointer” warnings 2017-07-18 13:07:45 +03:00
Murat Baysangurov
77f532749c Warning flags added 2017-07-18 12:42:54 +03:00
Huy Nguyen
7af8f91e62 Remove unused flow layout reference in ASPagerNode (#452) 2017-07-17 21:01:00 +00:00
Peter
e3a70b659f no message 2017-07-17 21:14:02 +03:00
Peter
ab1267b7f6 Merge commit '0487414c7273e211aa68f4b9c621f33523990a17' 2017-07-17 20:42:13 +03:00
Peter
cef934468e no message 2017-07-17 20:41:58 +03:00
Huy Nguyen
eb5bde0791 [ASDataController ] Merge willUpdateWithChangeSet and didUpdateWithChangeSet delegate methods #trivial (#445)
* Merge willUpdateWithChangeSet and didUpdateWithChangeSet delegate methods into one
- After #420, there is no change occurs between those 2 methods. Having them separately doesn't achieve anything and can cause confusions.

* Minor change
2017-07-17 11:43:31 +00:00
Huy Nguyen
292dc3c70b [ASDataController] Clean up (#443)
* Clean up ASDataController
- Parameters passed to ASDataControllerCompletionBlock are no longer used. Remove them.
- The value returned by _allocateNodesFromElements:andLayout:completion is not used. Remove it.
- Elements are not allocated and measured in batches anymore. Remove the code that does batch allocation.
- Remove RETURN_IF_NO_DATASOURCE. It's used only once and is not worth it.

* Remove +parallelProcessorCount

* Update CHANGELOG
2017-07-17 11:42:52 +00:00
Huy Nguyen
7302816b2f [ASDataController] Avoid asking for size ranges of soon-to-be-delete elements during relayouts (#442)
* ASDataController to avoid asking for size ranges of soon-to-be-deleted elements during relayouts

* Remove outdated TODOs
2017-07-17 11:37:40 +00:00
appleguy
5115f660c8 [ASCollectionView] Add delegate bridging and index space translation for missing UICollectionViewLayout properties. (#440)
* [ASCollectionView] Add delegate bridging and index space translation for missing UICollectionViewLayout properties

This is a first attempt at resolving #438.

I know there is already one similar method to do indexPath conversions, and that the #define for
accessing properties on the UICollectionViewFlowLayout should probably be moved somewhere else.

Looking for feedback on the general direction here. In particular, I'm a bit surprised that so much
has changed in how these calls occur, as I believe especially constrainedSizeForNodeAtIndexPath: is
now called with inconsistent index path spaces (but was not before this PR landed in March:
https://github.com/facebookarchive/AsyncDisplayKit/pull/3136/files)

Since the impact of mixing the spaces is fairly serious (can cause crashes), I'm also wondering if
I am misinterpreting some aspects of the code, or if maybe the crashing impact wasn't noticed yet.

* [ASCollectionView] Cleanup and final changes for UIKit passthrough fixes.
2017-07-17 11:30:46 +00:00
Benjamin Scholtysik (Reimold)
cfa830c163 Merge pull request #436 from MatkovIvan/using-jazzy-for-documentation-and-guides
Using jazzy for documentation and guides
2017-07-14 16:19:13 -07:00
Huy Nguyen
3ccc2f0f15 Introduce ASCollectionGalleryLayoutDelegate (#76)
* Implement ASCollectionGalleryLayoutDelegate
- It arranges items of the same size into a multi-line stack (say photo gallery or pager). It takes advantage of the fact that its items always have a fixed size to measure as few items as possible while still being able to track their positions at all time. This helps reduce startup/reloadData time, as well as memory footprint.
- It then uses a measure range, which also works as a allocate range, to figure out which items to measure ahead of time. And it guarantees that each item is scheduled to measure only once.
- Lastly, ASCollectionLayoutDelegate has some new methods that allow delegates to hook up and stay ahead of layout attributes requests from the backing view. ASCollectionGalleryLayoutDelegate for example uses these methods to ensure elements that have their layout attributes requested are always ready for consumption, and to measure more elements in the background.

* Handle items that span multiple pages and other improvements in gallery delegate

* Minor fixes

* Fix failing tests

* Fix custom collection example

* Implement missing method in gallery layout delegate

* Fix warnings

* Some improvements
- Collection layout delegates must have a crollable directions property.
- Simplify gallery delegate by not storing unmeasured attributes since calling measure on already measured elements should be cache hits and super fast.
- Abstact some code in gallery delegate to ASCollectionLayoutState+Private and _ASCollectionGalleryLayoutItem.
- Other improvements in gallery delegate

* Fix file licenses

* Move measure range logic to ASCollectionLayout

* Track unmeasured elements

* Remove pending layout in ASCollectionLayout

* Get back pending layout because the timing to latch new data is not ideal

* Add ASCollectionLayoutCache

* Fix file licenses

* Fix xcodeproj

* Add async collection layout to examples/ASCollectionView

* Measure method in ASCollectionLayout to be a class method

* Encourage more immutable states
- Make -calculateLayoutWithContext: to be class methods in ASDataControllerLayoutDelegate and ASCollectionLayoutDelegate.
- Add layout delegate class and layout cache to ASCollectionLayoutContext+Private, to be use by ASCollectionLayout only.
- ASDataController no longer allocates all nodes but lets ASCollectionLayout determine.
- Add scrollableDirections to the layout context since it's often needed by the layout pass. Otherwise users have to wrap it in an info object.
- Update built-in layout delegates and CustomCollectionView example.
- Publish ASHashing. It might be helpful for clients that implement custom collection info objects.

* Remove additionalInfo property in ASCollectionLayoutState

* ASCollectionLayoutState to correctly filter unmeasured elements

* Add ASHashing to umbrella header

* Fix file licenses

* Add ASDispatchAsync and use it in ASCollectionLayout

* Improve code comment in ASCollectionLayoutState
2017-07-14 18:50:26 +00:00