Commit Graph

13022 Commits

Author SHA1 Message Date
Adlai Holler
bc59b96ca9 [ASDisplayNode] Add onDidLoad Method to Perform Work When Loaded (#2128)
* [ASDisplayNode] Add `onDidLoad:` method

* Prevent user from rasterizing wrapper nodes – they can't be reloaded in the future
2016-09-08 14:18:35 -07:00
Hannah Troisi
593f13d800 Improve crash logging [@johnepinterest] (#2210) 2016-09-08 14:06:49 -07:00
Benjamin Scholtysik (Reimold)
525a98eb18 Switch back to Xcode 7.3 for travic ci 2016-09-08 14:06:39 -07:00
Benjamin Scholtysik (Reimold)
9011912213 Replace NSLog with BITHockeyLogger calls 2016-09-08 14:02:14 -07:00
Adlai Holler
12ab2e3759 Fix equality in ASTextKitRendererKey (#2215) 2016-09-08 12:59:03 -07:00
Michael Schneider
0d8518912e Initial commit to throw an exception if manually adding / removing subnodes if node has automaticallyManagesSubnodes enabled (#2214) 2016-09-08 11:59:57 -07:00
Benjamin Scholtysik (Reimold)
311bb8f454 Remove two asserts that don’t make much sense and cause a crash in iOS 10 simulators. 2016-09-08 11:53:57 -07:00
Michael Schneider
53a6743908 Don't use automaticallyManageSubnodes in ASTextCellNode (#2212) 2016-09-08 11:17:50 -07:00
Adlai Holler
5593bfa4d1 [ASDisplayNode] Majorly Improve Descriptions (#2208)
* Up our description game big time

* Couple tweaks

* Explain logic

* Fix indentation
2016-09-07 20:11:27 -07:00
Benjamin Scholtysik (Reimold)
66a33c04cc Fix yml for travis CI 2016-09-07 17:20:12 -07:00
Benjamin Scholtysik (Reimold)
2d6221ec73 Switch Travis CI test matrix back to iOS 9.X because of iOS 10 simulator bugs 2016-09-07 16:21:12 -07:00
Benjamin Scholtysik (Reimold)
be22fe5fab Merge branch 'release/4.1.1' into feature/xcode8-beta6 2016-09-07 16:18:12 -07:00
Benjamin Scholtysik (Reimold)
ed7bbb6148 Merge remote-tracking branch 'origin/develop' into feature/xcode8-beta6 2016-09-07 16:17:52 -07:00
Benjamin Scholtysik (Reimold)
98bae5c30c Merge pull request #328 from bitstadium/feature/fix-multithreading-issue-in-bitchannel
Feature/fix multithreading issue in bitchannel
2016-09-07 15:19:12 -07:00
Benjamin Scholtysik (Reimold)
c00b787a67 Bump SDK version number 2016-09-07 15:16:48 -07:00
Benjamin Scholtysik (Reimold)
04c9b160ce Merge remote-tracking branch 'origin/feature/xcode8-beta6' into release/4.1.1-testing 2016-09-07 12:59:43 -07:00
Benjamin Scholtysik (Reimold)
ccf6771cf1 Merge remote-tracking branch 'origin/develop' into release/4.1.1-testing 2016-09-07 12:58:12 -07:00
Michael Schneider
0aeefaf25f [Layout] Automatic measurement on layout fixes (#2206)
* Don't measure range managed nodes automatically in the layout pass

* Fix auto measure a node mid transition
2016-09-07 12:46:05 -07:00
Benjamin Scholtysik (Reimold)
863f45e624 Adding synchronize back after discussion but checking for iOS8 to avoid unneccessary calls in iOS8+ 2016-09-07 09:09:07 -07:00
Michael Schneider
8897614f0e [Layout] Layout API based on content area (#2110)
* Initial commit for adding a size constraint to ASLayoutable's

* Some more commits

* Fix sample projects in extra/

* Remove preferredFrameSize test of ASEditableTextNode

* Remove preferredFrameSize from examples_extra

* Add deprecation warning to -[ASDisplayNode preferredFrameSize]

* Add deprecation warning to -[ASDisplayNode measureWithSizeRange:]

* Commit

* Commit

* Remove ASRelativeSizeRange

* Make ASRelativeSize private

* Adjust examples

* Improve setting of -[ASLayoutable size] with points or fractions

* Add ASWrapperLayoutSpec

* Improve creation of ASRelativeDimension

* Add `preferredFrameSize` back and add deprecated logging

* Add `layoutSpecBlock` setter and getter and add locking for it

* Add better documentation and fix macros to create ASRelativeDimension

* Create new ASSizeRangeMake with just a CGSize as parameter

* Update Kitten and Social App Layout example

* Add layoutThatFits: and deprecate measure:

* Rename ASRelativeDimension to ASDimension

* Fix examples for ASDimension renaming

* Remove fancy height and width setter

* Fix ASDimension helper

* Rename -[ASLayout layoutableObject] to -[ASLayout layoutable]

* Update layout related methods and more clearer documentation around how to use it

* Deprecate old ASLayout class constructors

* Don't unnecessary recalculate layout if constrained or parent size did not change

* Use shared pointer for ASDisplayNodeLayout

* Fix rebase conflicts

* Add documentation and move implementation in mm file of ASDisplayNodeLayout

* Fix test errors

* Rename ASSize to ASLayoutableSize

* Address comments

* Rename setSizeFromCGSize to setSizeWithCGSize

* Improve inline functions in ASDimension

* Fix rebase conflicts
2016-09-07 08:44:48 -07:00
Benjamin Scholtysik (Reimold)
3612af4cc1 Merge pull request #327 from bitstadium/feature/fix-long-feedback
Update BITAttributedLabel with changes from TTTAttributedLabel 1.13.4
2016-09-07 08:44:06 -07:00
Benjamin Scholtysik (Reimold)
04ac42b7f2 Adding one synchronize call back as suggested in PR comments 2016-09-07 08:41:16 -07:00
Benjamin Scholtysik (Reimold)
890e899589 Removing synchronize calls as they are async anyway
check http://dscoder.com/defaults.html by the engineer who actually works on NSUserDefaults
2016-09-06 21:34:27 -07:00
Benjamin Scholtysik (Reimold)
3cec0a380d Adding a safeguard to startNewSessionIfNeeded and removing safeguard that never helped anyone as appBackgroundTimeBeforeSessionExpires is always 20! 2016-09-06 21:31:33 -07:00
Benjamin Scholtysik (Reimold)
2a85e65652 Adding two unit test to make sure we don’t create sessions for the wrong timestamps 2016-09-06 20:59:41 -07:00
Adlai Holler
2bfeb6de92 Add a failing unit test for automeasuring a node mid-transition (#2204) 2016-09-06 17:58:12 -07:00
ricky
180fcbbc5e [ASViewController] stop propagating traits in the viewWill... methods (#2202)
* [ASTraitCollection] Fix 2 bugs dealing with trait propagation

* Don’t propagate on `viewWillTransitionToTraitCollection`. This is too early
* Pass the size from `viewWillTransitionToSize` as the container size in `traitCollectionDidChange`

* using the old trait collection’s size doesn’t actually make sense.

* Instead of propagating on viewWillTransitionToSize, do it in viewWillLayoutSubviews
2016-09-06 15:23:32 -07:00
Michael Schneider
2388f67474 [ASTextNode] Add NSCache based cache for ASTextKitRenderer (#2199)
* Add cache implementation

* Remove old ASEqualityHashHelpers

* Some more ASEquality and ASEqualityHashHelper cleanup

* Add cache for text renderer in ASTextNode

* Move from C++ LRU renderer cache to NSCache based renderer cache
2016-09-06 15:23:21 -07:00
Huy Nguyen
6124830b23 Fix assertion messages in ASCollectionViewFlowLayoutInspector (#2196) 2016-09-06 11:43:13 -07:00
Hannah Troisi
03c21830a5 improve layoutSpecThatFits: assertion message (#2201) 2016-09-06 11:42:59 -07:00
Benjamin Scholtysik (Reimold)
4a491b0deb Merge remote-tracking branch 'origin/develop' into feature/xcode8-beta6
# Conflicts:
#	Classes/BITHockeyHelper.m
2016-09-06 10:43:53 -07:00
Benjamin Scholtysik (Reimold)
aeebd5b2d7 Merge pull request #281 from bitstadium/feature/port-corefoundation-fixes
Port CoreFoundation improvements from OS X SDK
2016-09-06 09:06:34 -07:00
Adlai Holler
b233122604 Check the image alpha value correctly (#2198) 2016-09-05 21:27:50 -07:00
Adlai Holler
607ec8f4a5 [ASImageNode] Use kCGBlendModeCopy when Possible (#2197)
* [ASImageNode] Use kCGBlendModeCopy when possible

* Make the blend mode logic more readable
2016-09-05 20:52:06 -07:00
Benjamin Scholtysik (Reimold)
42d1d4ea11 Merge remote-tracking branch 'origin/develop' into feature/port-corefoundation-fixes 2016-09-05 18:31:12 -07:00
Benjamin Scholtysik (Reimold)
5bd76850d2 Update BITAttributedLabel with changes from TTTAttributedLabel 1.13.4 2016-09-05 18:20:01 -07:00
Peter
0d2ab2b03a no message 2016-09-06 01:43:26 +03:00
Peter
952688d02c no message 2016-09-06 01:32:43 +03:00
Peter
12068fd805 no message 2016-09-06 00:07:26 +03:00
Peter
21c5e800e3 no message 2016-09-06 00:07:02 +03:00
Peter
39d571aa3c no message 2016-09-06 00:06:27 +03:00
Peter
51377d919f no message 2016-09-05 23:51:46 +03:00
Peter
086ce402b0 Merge commit '24d097edbc174162662cc18ecffaa44b4d9bc46f'
# Conflicts:
#	MTProtoKit/MTSerialization.h
2016-09-05 23:46:22 +03:00
Peter
ad50b40210 no message 2016-09-05 23:21:49 +03:00
Peter
18b1a3f62c no message 2016-09-05 23:21:13 +03:00
Peter
69785d10e6 no message 2016-09-05 23:20:51 +03:00
Peter
7d8e299bc6 no message 2016-09-05 23:20:27 +03:00
Peter
99a116914d no message 2016-09-05 23:20:07 +03:00
Peter
91b11ac6af no message 2016-09-05 23:19:51 +03:00
Peter
684ab193c8 no message 2016-09-05 23:19:33 +03:00