Commit Graph

25012 Commits

Author SHA1 Message Date
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
Adlai Holler
e233a1cccc [Unit Testing] Add Realistic Text Data Set (#2188)
* Add a mechanism to save attributed strings given to text nodes

* Setup performance tests to have an iteration variable

* Use realistic data in new text node performance test case

* Revert temporary changes
2016-09-05 12:30:06 -07:00
Levi McCallum
5db57802b0 Add preprocessor definition for disabling container state changes (#2193) 2016-09-05 12:00:45 -07:00
Benjamin Scholtysik (Reimold)
8241300023 Merge pull request #276 from bitstadium/feature/fix-appicon-detection
Fix AppIcon detection with exotic filenames
2016-09-05 10:31:12 -07:00
Levi McCallum
76107ae466 Use NS_VALID_UNTIL_END_OF_SCOPE macro (#2192) 2016-09-04 17:44:38 -07:00
Adlai Holler
90c59e0de7 Remove completely unused layoutManagerDelegate things (#2189) 2016-09-04 12:01:42 -07:00
Levi McCallum
4dd5189f6c Remove unnecessary explicit bool check (#2190) 2016-09-04 12:00:35 -07:00
Michael Schneider
37416f1696 Set alignItems to ASStackLayoutAlignItemsStretch in ASStackLayoutSpec (#2187)
To align with the CSS `align-items` property we should set alignItems to `ASStackLayoutAlignItemsStretch` instead of `ASStackLayoutAlignItemsStart`: https://drafts.csswg.org/css-flexbox-1/#propdef-align-items
2016-09-03 21:05:59 -07:00
Adlai Holler
2c8a2d0bbd Use CACurrentMediaTime for performance benchmarks (#2185) 2016-09-02 18:42:39 -07:00
Benjamin Scholtysik (Reimold)
4aecfac8aa Upgrading xscheme’s to Xcode 8 and adding suggested compiler warnings 2016-09-02 16:40:24 -07:00
Adlai Holler
5c42bb4e2f Add tests to confirm CALayer behaviors (#2184) 2016-09-02 15:10:15 -07:00