Switch to Artifex Team.
Fix coding style issues and remove C99 mid-block declaration.
Remove some trailing space.
Bug #694104 - Allow using MuPDFReaderView from GUI layout tool.

The GUI layout tool instantiates custom controls classes to display a
preview in the IDE. It relies on the 2-argument constructor being
implemented.

Use a different means to get the window manager that works for non-activity
contexts, and avoid creating gesture recognizers in this situation.

Based on a patch supplied by Masaki Muranaka
Fix bug #695346 - iOS app does not register to open CBZ files.

Use the UTI 'public.cbz-archive' instead of the more generic
'public.zip-archive'. It's likely another app (or the OS) has an
Exported UTI for 'public.zip-archive' which would take precedence over
our Imported UTI and not have a 'cbz' extension.

It's not entirely clear what the correct UTI to use for CBZs is (there
are a few), but public.cbz-archive seems to be most likely candidate.

Remove the 'zip' extension, as we probably don't want to load arbitrary
zip files.

Add mimetypes for all completeness, and separate OXPS from XPS as it has
a different mimetype.
Fix opening files from Email app.

On 2.3.x, opening files from the Android email app (not Gmail), was causing
a crash due to a SecurityException. On 4.x, it was failing with an error
message.

I think we should have just been calling
getContentResolver().openInputStream(uri) to get the file data, rather than
reading the row from the content resolver and looking at the _data field.
On 2.3.x querying this row caused a security error. On 4.x, we got back
a _data field containing a path, but this path was internal to the email
app, and not for our consumption.

Previously we were calling openInputStream() only as a fallback; now we try
it first, and fall back to the other method if that fails. I suspect we can
delete the other code, but I can't test on the 3.x version of the Transformer
Prime, so I'm leaving it be for now.
Pass mimetype when opening a document from a stream.

Fixes opening non-PDF files from email programs that use a ContentProvider
to supply attachments.
Handle the application/xps mimetype.

I think this is non-standard, but some applications seem to use it.

The email app on Android uses it, despite the fact the original email
actually embedded it as application/octet-stream. I guess the email app
is looking at the filename.
Fix incorrect syntax for class names in JNI.

Causes a crash on Android L/ART.
Android: Prevent editing of files opened from a memory buffer.

Memory buffers are used for implementing content:// URLs, which are
(in most cases) readonly. If we ever encounter a read/write content://
URL in the future, we could consider supporting saving to it.

(An example of a content:// URI is an email attachment, where IPC is used
to transfer the file from the email client, rather than relying on a local
file).
Don't crash if a document fails to open on iOS.

Handle exceptions from fz_open_document().
Fix memory leak in MuDocRef.m.

Remember to release self, if we're returning nil from the initialiser.

Also, there is no need for fz_var(doc), because doc is an ivar and
effectively equivalent to 'self->doc'.
Disable document interaction features when reflow enabled.

The features do not work in reflow mode - Android already disables them.
Use tabs rather than spaces for the MuPDF project.
Fix disabled state of bar buttons on iPhone/iPod Touch.

Previously on iOS 7, bar buttons didn't change visually when disabled.

Also improves the look and feel - the buttons are now tinted in the
highlighted state rather than showing a grey background. On iOS 7, the
iPhone/iPad buttons style match.

Tested on iOS 6 iPad/iPod and iOS 7 iPad/iPod.
cbz: Use natural string comparison to sort file names.

Sort case insensitively in this order:
	page-1.jpg
	page-2.jpg
	page-10.jpg
Fix #693228 - Android has counter intuitive finger dragging behaviour

Patch from Michaël Cadilhac.

Continue to pass events to panning GestureDetector when zooming (but do not
act on the reported gesture).

Previously we just stopped sending events to the GestureDetector until the
start of the next gesture.
Enable modules in iOS build.

Speeds up compilation, and means we can avoid having to list all the system
frameworks (so I've deleted them).
Crashlytics support for official builds.

Add hooks to allow us to pass in the Crashlytics SDK location and the
API key from the command line. The SDK and API key will be held in a
separate private repository.

Should have no effect on regular builds.
Convert Xcode schemes to shared schemes, so that they are tracked in git.

It is recommended that you delete any personal schemes that have the same
name as the shared ones, for example by cleaning your git tree with:

	cd platform/ios/MuPDF.xcodeproj && git clean -X -f -d

(this will wipe out any .gitignore'd files in your tree - so be careful.
Make sure you use an uppercase -X option; the lowercase version will wipe
non-ignored files!).