14914 Commits

Author SHA1 Message Date
Nadine Salter
0d017673d2 Merge pull request #39 from ianolito/fix-retain-cycles
Fix retain cycles in ASDisplayNode and ASTableView.
2014-10-10 12:03:13 -07:00
Nadine Salter
4bcd086d8a Merge pull request #24 from acoomans/travis_config_only
Add Travis configuration.
2014-10-10 12:01:21 -07:00
Nadine Salter
c02c660583 Merge pull request #36 from RCacheaux/master
Wrap transaction async dispatches with autorelease pools.
2014-10-09 16:26:27 -07:00
Ian Cloutier
41c3289a11 Fix retain cycles in ASDisplayNode and ASTableView 2014-10-09 19:00:38 -04:00
Andreas Linde
d840cfd964 Don't store the updatemanager file in non beta
The BITUpdateManager did store an empty file even if the app is run via the App Store.
2014-10-08 06:15:45 -07:00
Andreas Linde
606344c730 Fixed feedback compose issue with predefined text
If there was predefined text to appear in a feedback compose view and the user added some more text and then added an attachment, the user added text was removed and only the predefined text appeared.
2014-10-08 06:07:08 -07:00
Nadine Salter
f83f113493 Documentation.
Generated with jekyll & appledoc.  Image assets are temporary.
2014-10-07 19:31:46 -07:00
René Cacheaux
7ea0963b65 Wraps transaction async dispatches with autorelease pools. 2014-10-07 15:25:04 -05:00
Peter
c034db4abd Conversation activities 2014-10-07 19:31:27 +04:00
Nadine Salter
bd612fd725 Example projects. 2014-10-01 16:27:00 -07:00
Nadine Salter
0adab165ec Minor ASRangeController correctness fix. 2014-10-01 16:02:41 -07:00
Nadine Salter
aa7b545592 Provide default ASTextNode linkAttributeNames.
TextKit machinery automatically applies styling to text marked with the
NSLink attribute, but because ASTextNode is unaware of it, the node's
tap handler doesn't treat NSLinks as links.  Add NSLinkAttributeName to
the default linkAttributeNames property.
2014-10-01 15:55:16 -07:00
Nadine Salter
17fcca19ce s/richTextNode/textNode/g.
ASTextNode's delegate methods are all prefixed with "richTextNode".
Rename these to "textNode" for consistency.
2014-10-01 15:54:03 -07:00
Nadine Salter
a82364a54b Don't expose hierarchy notifs in public node API.
`-[ASDisplayNode willEnterHierarchy]` and `-didExitHierarchy` are
subclass hooks and should not be called directly -- doing so will
trigger an assertion!  Move these declarations to the subclassing
header.
2014-10-01 13:40:27 -07:00
Nadine Salter
20631a632f Fix unsafe unretained references in ASControlNode.
Fix regression from the ARC conversion.  Change the raw, unretained
pointers in ASControlNode to weak references.  Use NSMapTable instead of
the pointer-as-NSValue system.
2014-09-30 14:26:08 -07:00
Andreas Linde
f1c54a5783 Merge pull request #120 from 0xced/fix-analyzer-warning
Fix static analyzer warning
2014-09-30 16:06:06 +02:00
Cédric Luthi
f74cacb4c7 Fix static analyzer warning
When compiling for the iOS simulator, it would produce this warning.

The receiver of message 'resultType' is nil and returns a value of type 'NSTextCheckingType' that will be garbage
            switch (result.resultType) {
                    ~~~~~~ ^~~~~~~~~~
2014-09-30 15:40:26 +02:00
Andreas Linde
266270153e Fix feedbackActivity resources 2014-09-30 14:25:29 +02:00
Nadine Salter
af6c11ade7 Remove unused methods.
`-[ASDisplayNode addSubnodeAsynchronously::]` and
`-replaceSubnodeAsynchronously:::` are unused and confusingly increase
AsyncDisplayKit's API surface.  `-addSubnode:` and friends are
thread-safe and can be used on background threads, so removing these
methods does not constitute a decrease in functionality.
2014-09-29 14:55:26 -07:00
Peter
d05275665e Info 2014-09-27 23:11:42 +04:00
Nadine Salter
c51a58cd85 Update ASDisplayNodeInternal.h. 2014-09-26 15:17:46 -07:00
Andreas Linde
8e062738bd Merge branch 'release/3.6.1' 2014-09-26 18:06:46 +02:00
Andreas Linde
538cfffeaf Merge tag '3.6.1' into develop
Version 3.6.1
2014-09-26 18:06:46 +02:00
Andreas Linde
071adb91de 3.6.1 release and documentation updates 2014-09-26 18:06:36 +02:00
Andreas Linde
34f78ebbef Fix feedback compose view in landscape and iOS 8
In landscape the text couldn't be seen, since the text view was moved up due to iOS 8 returning the keyboard height now as `height` in landscape, while it did return it as `width` in previous iOS versions.
2014-09-26 17:31:28 +02:00
Andreas Linde
8bf77291aa Merge branch 'release/3.6' 2014-09-26 14:07:33 +02:00
Andreas Linde
6874e00fbc Merge tag '3.6' into develop
Version 3.6
2014-09-26 14:07:33 +02:00
Andreas Linde
476a4de232 3.6 release and documentation updates 2014-09-26 14:07:18 +02:00
Peter
e5002fc92f RC2 2014-09-26 04:08:44 +04:00
Andreas Linde
cdf6691579 More updates on extension support
- Added iOS 8 extension setup documentation
- Added a crash reporting only framework build to the binary distribution target
2014-09-25 17:29:45 +02:00
Andreas Linde
3354a36f11 Don't warn for missing resource with extensions
App extensions can't display UIAlerts for crashes anyway, so we don't need the extensions in the extension bundle.
2014-09-25 15:14:23 +02:00
Andreas Linde
3b9482c32a Improve iOS version runtime checks
Hardcode the iOS 6.1 and iOS 7.1 NSFoundationVersionNumber values, so the checks also work when compiling the source with iOS 6.1 or iOS 7.1 as base iOS version.
2014-09-25 10:21:55 +02:00
Andreas Linde
4f05060adb Fix extension check code to be iOS 6/7 compatible 2014-09-25 10:15:15 +02:00
Nadine Salter
77e1337f3c Beta 2. 2014-09-24 17:59:42 -07:00
Nadine Salter
57092baad7 Work around rdar://18448377. Fixes #29. 2014-09-24 17:56:19 -07:00
Nadine Salter
b8afd06b37 Fix issue #28. 2014-09-24 14:23:42 -07:00
Nadine Salter
f77f63878d Fix issue #27. 2014-09-24 14:23:31 -07:00
Nadine Salter
05cb52ad21 Fix ASDealloc2MainObject header export. 2014-09-24 14:23:09 -07:00
Andreas Linde
2040206101 Add support for App Extensions
- Added simple detection method to check wether the SDK runs in an extension
- BITCrashManager will send crash reports without UI (UIAlertViews aren't allowed in extensions anyway)
- Don't start BITUpdateManager, BITStoreUpdateManager, BITFeedbackManager and BITAuthenticator in app extensions
2014-09-24 17:06:22 +02:00
Andreas Linde
03767a63ef Add migration text for BITCrashManagerCallbacks 2014-09-24 14:20:15 +02:00
Nadine Salter
d993730a7d Merge pull request #25 from toulouse/master
Minor ASTableView bugfix.
2014-09-23 16:42:06 -07:00
Nadine Salter
803585164c Convert AsyncDisplayKit to ARC. 2014-09-23 15:30:30 -07:00
Andreas Linde
24a6756ba7 Update image resources 2014-09-23 13:48:23 +02:00
Andreas Linde
a44d77805d Update localizations
Also removed romanian, since it is not handled by Wordcrafts.
2014-09-23 12:07:35 +02:00
Andrew Toulouse
1b3cf4d8b5 Annotate -didLoad with an attribute (if supported) that will flag missing didLoad calls 2014-09-22 21:58:49 -07:00
Andrew Toulouse
3aa6fc0d38 Mehod -numberOfSectionsInTableView: is optional but not conditionally checked
The documentation for `UITableViewDataSource` specifies that the default value is 1, and that its implementation is optional. However, ASTableView's forwarding doesn't account for the unimplemented case. The desired behavior is to return 1 in the case that the method is not implemented.
2014-09-22 21:19:43 -07:00
Nadine Salter
7dd94a6102 Merge in downstream changes.
Introduce `ASTableView`, a UITableView subclass that uses `ASCellNode`
instead of UITableViewCell.  Add working range support via
`ASRangeController`, which observes the visible range, maintains a
working range, and handles most ASDK machinery.  ASRangeController is
loosely-enough coupled that it should be easily adapted to
UICollectionView if that's desired in the future.

Notable considerations in the ASRangeController architecture:

* There's no sense rewriting UITableView -- the real win comes from
  using nodes instead of UITableViewCells (easily parallelisable
  computation, large number of cells vs. few table views, etc.).  So,
  use a UITableView with empty cells, using UITableViewCell's
  contentView as a host for arbitrary node hierarchies.

* Instead of lazy-loading cells the instant they're needed by
  UITableView, load them in advance.  Preload a substantial number of
  nodes in the direction of scroll, as well as a small buffer in the
  other direction.

* Maintain compatibility with UITableView's API, with one primary change
  -- consumer code yields configured ASCellNodes, not UITableViewCells.

* Don't use -tableView:heightForRowAtIndexPath:.  Nodes already compute
  their preferred sizes and cache results for use at layout-time, so
  ASTableView uses their calculatedSizes directly.

* Corollary:  ASTableView is only aware of nodes that have been sized.
  This means that, if a cell appears onscreen, it has layout data and
  can display a "realistic placeholder", e.g. by making its subnodes'
  background colour grey.

Other improvements:

* Remove dead references and update headers (fixes #7, #20).

* Rename `-[ASDisplayNode sizeToFit:]` to `-measure:` and fix
  `constrainedSizeForCalulatedSize` typo (fixes #15).

* Rename `-willAppear` and `-didDisappear` to `-willEnterHierarchy` and
  `-didExitHierarchy`.  Remove `-willDisappear` -- it was redundant, and
  there was no counterpart `-didAppear`.

* Rename `viewLoaded` to `nodeLoaded`.
2014-09-22 14:33:39 -07:00
Arnaud Coomans
6385599a35 Added Travis configuration 2014-09-22 11:08:11 -07:00
Andreas Linde
c53cd6facd Request update of a specific version
Even though the UI showed the newest version that the device can install, the download request always triggered downloading the latest version.

This commit fixes this bug.
2014-09-19 15:03:08 +02:00
Andreas Linde
70d2573cbd Update podspec
We don't need to include the PLCR headers any longer, this wasn't needed sincee a few 3.5 releases also.
2014-09-12 14:40:18 +02:00