Commit Graph

25012 Commits

Author SHA1 Message Date
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
Ilya Laktyushin
b28e18e44f no message 2017-10-05 23:50:33 +03:00
Peter
5c281627c4 no message 2017-10-05 23:28:43 +03:00
Benjamin Scholtysik (Reimold)
7362236adf Merge pull request #468 from MatkovIvan/fix/xcode9-carthage
Disable code coverage for Carthage to work with Xcode 9
2017-10-05 11:08:47 -07:00
Michael Schneider
4379b31ac2 Add assertion in dealloc that it is on main in ASTextKitComponents (#603) 2017-10-05 09:06:50 -07:00
Ivan Matkov
ec9ee9ab8e Disable code coverage for Carthage to work with Xcode 9 2017-10-05 16:36:20 +03:00
Ilya Laktyushin
ff88cb94b7 no message 2017-10-04 19:03:37 +03:00
Peter
88b5d34187 Merge commit '893457ba75dbb847e5318bde333c9b0ffc300420' 2017-10-04 18:12:14 +03:00
Peter
a536f339f4 Merge commit 'a7b34e3817200622ddb76eea1e2da7467b783490' 2017-10-04 18:11:53 +03:00
Peter
92ee4585fb no message 2017-10-04 18:11:48 +03:00
Ilya Laktyushin
893457ba75 no message 2017-10-04 18:11:28 +03:00