Commit Graph

13022 Commits

Author SHA1 Message Date
r é m i 
baf1ea2db4 introduce tests for the ASNavigationViewController (#627) 2017-10-24 19:40:28 +01:00
Huy Nguyen
3b91fbaab2 Update "Getting Started" page (#633) 2017-10-24 16:50:50 +01:00
Garrett Moon
d00a58580a Xcode update line should be in 2.6 2017-10-24 08:20:41 -07:00
Garrett Moon
7fffebe293 Update to 2.6 to indicate Xcode upgrade required. 2017-10-24 08:17:43 -07:00
appleguy
68f3468d91 [ASCollectionView] Improve performance and behavior of rotation / bounds changes. (#431)
* [ASCollectionView] Improve performance and behavior of rotation / bounds changes.

See #430 for details.

* Edit CHANGELOG.md

* [ASDataController] Implement -relayoutAllNodesWithInvalidationBlock:, to flush the ASMainSerialQueue before -invalidateLayout is called.

* Don't set download results if no longer in preload range. (#606)

Good catch by @djblake, if you scroll fast enough, you leave images
set on the image node because didExitPreloadRange (which would have
cleared it) was already called.

* Animated WebP support (#605)

* Updating to support animated WebP

* Fix a deadlock with display link

* Fix playhead issue.

* Fix up timing on iOS 10 and above

* Don't redraw the same frame over and over

* Clear out layer contents if we're an animated GIF on exit range

* Clear out cover image on exit of visible range

* Don't set cover image if we're no longer in display range.

* Don't clear out image if we're not an animated image

* Only set image if we're not already animating

* Get rid of changes to podfile

* Add CHANGELOG entry

* Update license

* Update PINRemoteImage

* Remove commented out lines in example

* [ASDataController] Add nullable specifier to invalidationBlock for relayout of nodes.
2017-10-24 13:12:52 +01:00
Garrett Moon
63842e1a39 Fixing changelog 2017-10-22 17:42:57 -07:00
Garrett Moon
7779531810 Update CHANGELOG for 2.5.1 2017-10-22 17:39:14 -07:00
Garrett Moon
53147f0ce6 Updating podspec to 2.5.1 2017-10-22 17:36:52 -07:00
Viktor Oreshkin
85a4287782 Add xcuserdata to gitignore
Signed-off-by: Viktor Oreshkin <imselfish@stek29.rocks>
2017-10-23 01:03:43 +03:00
Erik Kerber
e36deebd3c Mark lottie as extension safe 2017-10-21 21:39:29 -05:00
Garrett Moon
d31af734df Dispatch batch update to main #trivial (#626)
* Dispatch batch update to main

* TableView too
2017-10-20 15:01:38 -07:00
Benjamin Scholtysik (Reimold)
3a3f1ad9f4 Merge pull request #471 from bitstadium/fix/MetricsManager-trackevent-threadsafe
Fix/metrics manager trackevent threadsafe
2017-10-20 11:47:54 -07:00
Garrett Moon
919ec8d32b Check if we need to do a batch update (#624)
* Check if we need to do a batch update

If we've changed our leading screens for batch fetching, we
may need to batch fetch.

* Add CHANGELOG entry
2017-10-20 09:23:07 -07:00
Benjamin Scholtysik (Reimold)
c9cf976f1b Merge pull request #470 from dtweston/add_memory_support_for_extensions
Add low memory and OS kill support for extensions
2017-10-19 17:26:35 -07:00
Aaron
a49379fcaa add @available check to silence warning for userInterfaceLayoutDirectionForSemanticContentAttribute iOS 9.0 availability 2017-10-18 20:48:07 -07:00
Benjamin Scholtysik (Reimold)
42c86c6cb8 Remove unit test because it’s expected to fail – calling appendStringToEventBuffer itself is not threadsafe, it needs to be called inside a @synchronized block which it usually is. 2017-10-18 18:23:47 -07:00
Benjamin Scholtysik (Reimold)
73ae9830e3 Fix one of the asterisks which was off by a space for a pointer declaration. 2017-10-18 17:53:59 -07:00
Benjamin Scholtysik (Reimold)
00e7547883 Rename variables to make the code easier to understand. 2017-10-18 17:46:50 -07:00
Michael Schneider
526a7cfb53 Fix name clash with YYText (#623) 2017-10-18 15:49:58 -07:00
Benjamin Scholtysik (Reimold)
83c1a4b5de Address Gwynne’s comments. 2017-10-18 15:25:06 -07:00
Benjamin Scholtysik (Reimold)
8761aebd5e Add unit test to check thread safety. 2017-10-18 13:31:27 -07:00
Benjamin Scholtysik (Reimold)
2e5b212a43 Implement thread safety 2017-10-18 13:27:17 -07:00
overtake
dbc32ce11f no message 2017-10-18 18:44:56 +03:00
Max Wang
dce7ab3a9b [ASTextNode] Implement an example comparing ASTextNode 1 & 2 behavior. (#570)
* fix SIMULATE_WEB_RESPONSE not imported #449

* add constraint to using catching for layout

* Add TextNode example to test Yoga Layout

* update Yoga version

* add debugging log

* fix lisence

* clean up

* clean up

* fix lisence warning

* add shared scheme

* change sdk version

* revert some metadata

* Merge FlexLayoutExample to TextStressText.
Add flags to control different TextNode used.

* clean up

* fix lisence and syntax

* clean up

* remove xcworkspacedata

* Tiny coding style changes

* Another tiny change related to code style
2017-10-17 15:03:53 +01:00
Huy Nguyen
c12509e67a [ASTextKitComponents] Make sure Main Thread Checker isn't triggered during background calculations #trivial (#612)
* Add unit test

* Make sure TextKit components can calculate size in background without upsetting Main Thread Checker
- Add a new thread-safe text view bounds.
- Temporary components stack doesn't have a text view so it can be safely deallocated off main.

* Add ASTextKitComponentsTextView

* Remove unnecessary change

* Fix minor mistake

* ASTextKitComponentsTextView has only 1 initializer

* Minor change

* Switch to atomic property

* Remove manual synthesization
2017-10-17 14:20:20 +01:00
Mustafa Besnili
1e7d46196f Fix "This block and function declaration is not a prototype" warning. (#619) 2017-10-17 14:18:23 +01:00
Dave Weston
c8ad9bcecc Detect memory pressure in extensions
The UIApplicationDidReceiveMemoryWarningNotification isn't fired when
running in an extension, so we need to resort to a lower-level mechanism.
2017-10-16 16:57:53 -07:00
Dave Weston
83ace9d391 Listen for extension host notifications if needed
The UIApplication... notifications are not fired if Hockey is running
in the context of an extension. In this case, we should be using the
NSExtensionHost... notifications instead.
2017-10-16 16:57:37 -07:00
Ilya Laktyushin
96574b29dd no message 2017-10-13 18:45:15 +03:00
John Preston
651594b3ce Improve paths for Xcode build. 2017-10-13 15:10:25 +03:00
overtake
e64dd27201 no message 2017-10-12 14:53:08 +03:00
Derek Argueta
72d33fc88e Update Pinterest CDN URL in example code (#613) 2017-10-12 12:44:30 +01:00
overtake
f00b22b95c Merge branch 'master' of https://github.com/peter-iakovlev/TelegramCore
* 'master' of https://github.com/peter-iakovlev/TelegramCore:
  no message
2017-10-11 00:21:39 +03:00
Peter
3d22de605d no message 2017-10-11 00:18:55 +03:00
overtake
6809b44ba5 no message 2017-10-11 00:16:01 +03:00
Peter
be316a4db1 Merge commit '8ae77755bf22455a6ab8f839b23c970e11551fab' 2017-10-10 18:47:45 +03:00
Peter
46feeb1d40 no message 2017-10-10 18:47:40 +03:00
Peter
681cb0b5b8 Merge commit 'db106d206bf983e6921432be00bd0c4bf5cda64b'
# Conflicts:
#	TelegramCore/ContactManagement.swift
2017-10-10 18:43:48 +03:00
Peter
00c3e87b11 no message 2017-10-10 18:42:50 +03:00
Huy Nguyen
929bd4c60e [ASTextKitComponents] Temporary components can be deallocated off main (#610) 2017-10-10 16:03:30 +01:00
Garrett Moon
4dbb6441d7 Animated WebP support (#605)
* Updating to support animated WebP

* Fix a deadlock with display link

* Fix playhead issue.

* Fix up timing on iOS 10 and above

* Don't redraw the same frame over and over

* Clear out layer contents if we're an animated GIF on exit range

* Clear out cover image on exit of visible range

* Don't set cover image if we're no longer in display range.

* Don't clear out image if we're not an animated image

* Only set image if we're not already animating

* Get rid of changes to podfile

* Add CHANGELOG entry

* Update license

* Update PINRemoteImage

* Remove commented out lines in example
2017-10-09 11:48:32 -07:00
Garrett Moon
1705ec0140 Don't set download results if no longer in preload range. (#606)
Good catch by @djblake, if you scroll fast enough, you leave images
set on the image node because didExitPreloadRange (which would have
cleared it) was already called.
2017-10-09 10:13:28 -07:00
Meiwin Fu
07c236808f Fix bug where animation stop playing after leaving the screen and coming back, e.g. presenting a modal view controller. 2017-10-10 00:45:54 +08:00
appleguy
c6e3dd7a5d [ASCollectionView] Fix index space translation of Flow Layout Delegate methods. (#467)
* [ASCollectionView] Fix index space translation of Flow Layout Delegate methods.

This includes a few other cleanups, including overflow of signed integer indices.

* [ASCollectionView] Improve code sharing of UIKit size method calls; ensure delegate invalidation re-fetches supplementary sizes too.

* [ASCollectionView] Final method ordering and doc-comment for new _sizeForUIKitCellWithKind:atIndexPath: method.
2017-10-09 17:19:46 +01:00
Olcay Ertaş
550da242b7 Update layout2-layoutspec-types.md (#608)
Objective-C code sample was still showing old syntax:
spacer.flexGrow = true;
I have updated to new one:
spacer.style.flexGrow = true;
2017-10-09 08:21:20 -07:00
overtake
db106d206b no message 2017-10-09 13:59:35 +03:00
overtake
8ae77755bf no message 2017-10-09 13:58:18 +03:00
Flo
4a203db9fc [ASVideoNode] Time observer fix (#604)
* [ASVideoNode] Move time observer handling to player observers methods.

* Update CHANGELOG.md.
2017-10-06 15:04:36 +01:00
Ilya Laktyushin
d81371fbc9 no message 2017-10-06 13:34:13 +03:00
Ilya Laktyushin
6d712e3b37 Merge branch 'master' of bitbucket.org:iakovlevpeterp/legacycomponents 2017-10-05 23:50:44 +03:00