Commit Graph

13022 Commits

Author SHA1 Message Date
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
Andreas Linde
375994c125 Merge branch 'hotfix/3.5.7' into develop 2014-09-10 18:44:03 +02:00
Andreas Linde
3072c15b66 Merge branch 'hotfix/3.5.7' 2014-09-10 18:20:09 +02:00
Andreas Linde
8e96793675 3.5.7 release and documentation updates 2014-09-10 17:49:47 +02:00
Andreas Linde
14a8cd332a Add workaround for iOS 8 update process issue
In iOS 8 the app is not moved to background once the users accepts the iOS install alert button. Without this, the install process doesn't start. So for now we exit the app once that alert disappears.

Important: The iOS dialog offers the user to deny installation, we can't find out which button was tapped, so we assume the user agreed.
2014-09-10 12:52:09 +02:00
Andreas Linde
c102fcd247 Update scheme setting for XCTest 2014-09-10 12:51:47 +02:00
Andreas Linde
d81e7381f5 Upgrade project to Xcode 6 2014-09-10 00:38:27 +02:00
Andreas Linde
3e52b09c0b Convert to XCTest 2014-09-10 00:38:17 +02:00
Nadine Salter
0053e00a52 Add image-modification support to ASImageNode. 2014-09-08 17:09:14 -07:00
Andreas Linde
49e3df9cfa Update setup doc for Swift 2014-09-08 14:34:48 +02:00
Andreas Linde
9b7cb24351 Fix documentation warning in BITCrashAttachment 2014-09-08 14:34:26 +02:00
Andreas Linde
fe3c1cda7d Make swift integration easier
iOS Frameworks use an extra `Modules/module.modulemap` file that is used with the `import` statement to get all required information for integration. We simulate this behavior by writing our own file manually. So in apps using Swift the Objective-C bridging header is not required any longer (when using the binary distribution of the framework).
2014-09-08 14:34:12 +02:00
Andreas Linde
5cd861dbb0 Fix formatting of appname in crash reports
Fixes highlights on HockeyApp backend of apps with special chars in their name
2014-09-08 14:25:02 +02:00
Andreas Linde
735792ed99 Fix a small typo in an alert of BITAuthenticator 2014-09-08 14:07:58 +02:00
Andreas Linde
b309613b71 Make keychain data better accessible
Use `kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly` instead of `kSecAttrAccessibleWhenUnlockedThisDeviceOnly` when storing data into the keychain to allow the data to be also fetched when the app is launched in the background
2014-09-08 14:07:47 +02:00
Andreas Linde
37ed085436 Add warnings to the console for the last commit
Notify the developer about the issues by logging a warning to the console when the SDK is initialized more than once or startManager is invoked multiple times
2014-09-08 14:07:41 +02:00
Andreas Linde
f6d717265e Make sure multiple setup runs are ignored
If the `configure` initializers or `startManager` are invoked multiple times, this can cause undefined behaviour and crashes. Hence we simply ignore if they are invoked multiple times.
2014-09-08 14:07:29 +02:00
Andreas Linde
915bae7d0b Fix update view for resizable iPhone
Resizable iPhone causes modal presentations not to be full screen any longer, so we always should use the views width and never the device-width for the version update data presentation. This also works just fine when build with iOS <= 7.1.x
2014-09-08 14:07:12 +02:00
Andreas Linde
58dde365a9 Fix broken auth
The commit 1678d7550a did break BITAuthenticator
2014-09-08 14:07:00 +02:00
Andreas Linde
53510f64cc Send install uuid with BITAuthenticator requests 2014-09-08 14:06:39 +02:00
Andreas Linde
aa7b2e018f Change attachmentData property of BITCrashAttachment to crashAttachmentData 2014-09-08 14:06:04 +02:00
Andreas Linde
8eaa029536 Fix incorrect error log message
The warning about `delegate` setting after calling `startManager` being incorrect, should actually only be shown if it was called after it and not before it. Doh.
2014-09-06 01:55:52 +02:00
Nadine Salter
4da9912e2c Merge pull request #17 from lorixx/master
Use `ClassName` instead of _ClassName_ in ASDisplayNode.h.
2014-09-05 11:03:42 -07:00
Nadine Salter
5721b6c6d3 Merge pull request #18 from raphaelmor/fix-failing-unit-tests
Use XCTAssertEqualWithAccuracy in ASTextNodeWordKernerTests.
2014-09-05 11:02:35 -07:00
Raphaël Mor
06e3f1e062 Replaced magic number by FLT_EPSILON 2014-09-05 07:55:22 +02:00
Andreas Linde
e9f3d7dde2 Update setup doc for Swift 2014-09-05 01:47:19 +02:00
Andreas Linde
393a27906e Make swift integration easier
iOS Frameworks use an extra `Modules/module.modulemap` file that is used with the `import` statement to get all required information for integration. We simulate this behavior by writing our own file manually. So in apps using Swift the Objective-C bridging header is not required any longer (when using the binary distribution of the framework).
2014-09-05 01:33:55 +02:00
Andreas Linde
aa5e68536d Fix formatting of appname in crash reports
Fixes highlights on HockeyApp backend of apps with special chars in their name
2014-09-03 14:14:34 +02:00
Andreas Linde
ccd04e1bcd Fix a small typo in an alert of BITAuthenticator 2014-09-03 14:13:59 +02:00
Raphaël Mor
99fb196407 Fix unit tests in ASTextNodeWordKernerTests
Tests were comparing CGFloats with ==. XCTAssertTrue has been replaced
by XCTAssertEqualWithAccuracy
2014-09-03 08:12:36 +02:00
Joachim Garth
1e8d646d2f Notify delegate before starting download and update. Concerns #111 2014-09-01 17:39:45 +02:00
Zhisheng Huang
2ea7ca7747 Remove the underscore doc style copied from README.md 2014-08-29 16:04:16 -07:00
Peter
90494f2568 Use modern gallery for profile pictures 2014-08-29 02:03:06 +03:00
Nadine Salter
5aa90aebc3 Fix ASTextNode default background colour. (Whoops!) 2014-08-28 13:59:17 -07:00
Nadine Salter
baaff5e0f4 Set ASTextNode default background colour. 2014-08-28 13:57:12 -07:00
Andreas Linde
7b61bfa2a6 Make keychain data better accessible
Use `kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly` instead of `kSecAttrAccessibleWhenUnlockedThisDeviceOnly` when storing data into the keychain to allow the data to be also fetched when the app is launched in the background
2014-08-26 20:12:50 +02:00
Andreas Linde
09d2e5089f Some localization updates
Change some strings for the new attachment feature. Translations still pending.
2014-08-26 17:39:48 +02:00
Andreas Linde
b2a40717c0 Add warnings to the console for the last commit
Notify the developer about the issues by logging a warning to the console when the SDK is initialized more than once or startManager is invoked multiple times
2014-08-26 17:37:24 +02:00
Andreas Linde
d7e17d2f1c Make sure multiple setup runs are ignored
If the `configure` initializers or `startManager` are invoked multiple times, this can cause undefined behaviour and crashes. Hence we simply ignore if they are invoked multiple times.
2014-08-26 17:31:57 +02:00
Andreas Linde
20a777ccf8 Fix update view for resizable iPhone
Resizable iPhone causes modal presentations not to be full screen any longer, so we always should use the views width and never the device-width for the version update data presentation. This also works just fine when build with iOS <= 7.1.x
2014-08-23 20:52:41 +02:00
Andreas Linde
41fab8ae29 Add missing framework to xcconfig 2014-08-21 22:04:39 +02:00
Peter
ae2d2eb702 Gallery improvements 2014-08-21 18:35:12 +04:00
Nadine Salter
49bfaaedd9 Fix minor typo in README. 2014-08-20 15:43:30 -07:00