summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfredrossperry <fredrossperry@gmail.com>2015-12-15 16:52:41 -0800
committerfredrossperry <fredrossperry@gmail.com>2015-12-15 17:30:31 -0800
commit15ce2165cc01dabc5a670407e00a0b704da0ee2f (patch)
tree41f1b615012473e4a20c2e997560e11d87f0d12e
parenta093a75e3b7107f33a21398013fd085aa29e1bb0 (diff)
downloadmupdf-15ce2165cc01dabc5a670407e00a0b704da0ee2f.tar.xz
muPDF iOS app: Support for the latest (3.4.1) Crashlytics.
- added four zlib files to Makethird that contain functions needed by the new version. - added -Wno-implicit-function-declaration so these new files, which contain some implicit declarations, would build for iOS - added a section to Info.plist that holds the new API key, with an invalid value that the release build script will fill in. - changes to MuAppDelegate for the new version. <log></log>
-rw-r--r--Makethird4
-rw-r--r--platform/ios/Classes/MuAppDelegate.m3
-rw-r--r--platform/ios/Info.plist14
-rw-r--r--platform/ios/build_libs.sh2
4 files changed, 21 insertions, 2 deletions
diff --git a/Makethird b/Makethird
index 6cc53cfb..70cce88f 100644
--- a/Makethird
+++ b/Makethird
@@ -281,6 +281,10 @@ ZLIB_SRC := \
trees.c \
uncompr.c \
zutil.c \
+ gzlib.c \
+ gzwrite.c \
+ gzclose.c \
+ gzread.c \
$(ZLIB_LIB): $(addprefix $(ZLIB_OUT)/, $(ZLIB_SRC:%.c=%.o))
$(ZLIB_OUT):
diff --git a/platform/ios/Classes/MuAppDelegate.m b/platform/ios/Classes/MuAppDelegate.m
index b3ff1481..5751cb1e 100644
--- a/platform/ios/Classes/MuAppDelegate.m
+++ b/platform/ios/Classes/MuAppDelegate.m
@@ -4,6 +4,7 @@
#import "MuAppDelegate.h"
#ifdef CRASHLYTICS_ENABLE
+#import <Fabric/Fabric.h>
#import <Crashlytics/Crashlytics.h>
#endif
@@ -29,7 +30,7 @@
#ifdef CRASHLYTICS_ENABLE
NSLog(@"Starting Crashlytics");
- [Crashlytics startWithAPIKey:CRASHLYTICS_API_KEY];
+ [Fabric with:@[[Crashlytics class]]];
#endif
screenScale = [[UIScreen mainScreen] scale];
diff --git a/platform/ios/Info.plist b/platform/ios/Info.plist
index 757fc8a7..d310b312 100644
--- a/platform/ios/Info.plist
+++ b/platform/ios/Info.plist
@@ -81,6 +81,20 @@
<string>????</string>
<key>CFBundleVersion</key>
<string>1.8</string>
+ <key>Fabric</key>
+ <dict>
+ <key>APIKey</key>
+ <string>invalid key</string>
+ <key>Kits</key>
+ <array>
+ <dict>
+ <key>KitInfo</key>
+ <dict/>
+ <key>KitName</key>
+ <string>Crashlytics</string>
+ </dict>
+ </array>
+ </dict>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIFileSharingEnabled</key>
diff --git a/platform/ios/build_libs.sh b/platform/ios/build_libs.sh
index cae76750..0d280b58 100644
--- a/platform/ios/build_libs.sh
+++ b/platform/ios/build_libs.sh
@@ -14,7 +14,7 @@ fi
export OS=ios
export build=$(echo $CONFIGURATION | tr A-Z a-z)
-FLAGS="-Wno-unused-function -Wno-empty-body"
+FLAGS="-Wno-unused-function -Wno-empty-body -Wno-implicit-function-declaration"
for A in $ARCHS
do
FLAGS="$FLAGS -arch $A"