summaryrefslogtreecommitdiff
path: root/platform/ios
diff options
context:
space:
mode:
authorJoseph Heenan <joseph@emobix.co.uk>2014-10-02 22:44:48 +0200
committerJoseph Heenan <joseph@emobix.co.uk>2014-10-05 09:38:12 -0500
commit98f265445da62b0b9965ab9313df6ac5ae7f5e16 (patch)
tree1036ad8f6ac74450d809765cc51e15c917fc31ce /platform/ios
parenteb8184a334e3f9784e5b5dd108fefbcf2f57595a (diff)
downloadmupdf-98f265445da62b0b9965ab9313df6ac5ae7f5e16.tar.xz
iOS: Run at native res on iphone6/6+
All that is necessary is to add a launch xib.
Diffstat (limited to 'platform/ios')
-rw-r--r--platform/ios/Info.plist2
-rw-r--r--platform/ios/MuPDF.xcodeproj/project.pbxproj4
-rw-r--r--platform/ios/MuPDF/Images.xcassets/AppIcon.appiconset/Contents.json69
-rw-r--r--platform/ios/MuPDF/Launch Screen.xib19
4 files changed, 62 insertions, 32 deletions
diff --git a/platform/ios/Info.plist b/platform/ios/Info.plist
index a51210f5..bf23a0d6 100644
--- a/platform/ios/Info.plist
+++ b/platform/ios/Info.plist
@@ -84,6 +84,8 @@
<true/>
<key>UIFileSharingEnabled</key>
<true/>
+ <key>UILaunchStoryboardName</key>
+ <string>Launch Screen</string>
<key>UIPrerenderedIcon</key>
<true/>
<key>UIRequiredDeviceCapabilities</key>
diff --git a/platform/ios/MuPDF.xcodeproj/project.pbxproj b/platform/ios/MuPDF.xcodeproj/project.pbxproj
index f4d4d06f..5fe5d9ef 100644
--- a/platform/ios/MuPDF.xcodeproj/project.pbxproj
+++ b/platform/ios/MuPDF.xcodeproj/project.pbxproj
@@ -8,6 +8,7 @@
/* Begin PBXBuildFile section */
7C6152E819DDD6A90095ECAC /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7C6152E719DDD6A90095ECAC /* Images.xcassets */; };
+ 7C6152EA19DDF05B0095ECAC /* Launch Screen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 7C6152E919DDF05B0095ECAC /* Launch Screen.xib */; };
96C8ED011779A88E00A30AF4 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 96C8ED001779A88E00A30AF4 /* main.m */; };
96C8ED181779A9AE00A30AF4 /* libfreetype.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 96C8ED111779A9AE00A30AF4 /* libfreetype.a */; };
96C8ED191779A9AE00A30AF4 /* libjbig2dec.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 96C8ED121779A9AE00A30AF4 /* libjbig2dec.a */; };
@@ -69,6 +70,7 @@
/* Begin PBXFileReference section */
7C6152E719DDD6A90095ECAC /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = MuPDF/Images.xcassets; sourceTree = "<group>"; };
+ 7C6152E919DDF05B0095ECAC /* Launch Screen.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = "Launch Screen.xib"; path = "MuPDF/Launch Screen.xib"; sourceTree = "<group>"; };
968E1E3D1779A54F0050CEA3 /* MuPDF.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MuPDF.app; sourceTree = BUILT_PRODUCTS_DIR; };
968E1E481779A54F0050CEA3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
96C8ED001779A88E00A30AF4 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
@@ -199,6 +201,7 @@
isa = PBXGroup;
children = (
7C6152E719DDD6A90095ECAC /* Images.xcassets */,
+ 7C6152E919DDF05B0095ECAC /* Launch Screen.xib */,
DADF824C1905241900855662 /* ic_share.png */,
DA7AAA3A18E45FA300A577E3 /* ic_annotation.png */,
DA32FC7218E33CC7001D7902 /* ic_print.png */,
@@ -360,6 +363,7 @@
DAB9F4BE17F1B24000117D2E /* ic_link.png in Resources */,
DAB9F4BF17F1B24000117D2E /* ic_list.png in Resources */,
DAB9F4C017F1B24000117D2E /* ic_magnifying_glass.png in Resources */,
+ 7C6152EA19DDF05B0095ECAC /* Launch Screen.xib in Resources */,
DAB9F4C217F1CB6D00117D2E /* ic_reflow.png in Resources */,
DAD47D2A1832475C00E173A0 /* ic_more.png in Resources */,
DAD47D2E1832615900E173A0 /* ic_highlight.png in Resources */,
diff --git a/platform/ios/MuPDF/Images.xcassets/AppIcon.appiconset/Contents.json b/platform/ios/MuPDF/Images.xcassets/AppIcon.appiconset/Contents.json
index 36d04bd3..622ab4b2 100644
--- a/platform/ios/MuPDF/Images.xcassets/AppIcon.appiconset/Contents.json
+++ b/platform/ios/MuPDF/Images.xcassets/AppIcon.appiconset/Contents.json
@@ -2,8 +2,18 @@
"images" : [
{
"idiom" : "iphone",
- "scale" : "1x",
- "size" : "29x29"
+ "size" : "29x29",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "iphone",
+ "size" : "29x29",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "iphone",
+ "size" : "40x40",
+ "scale" : "2x"
},
{
"size" : "57x57",
@@ -24,68 +34,63 @@
"scale" : "2x"
},
{
- "size" : "72x72",
+ "idiom" : "iphone",
+ "size" : "60x60",
+ "scale" : "3x"
+ },
+ {
"idiom" : "ipad",
- "filename" : "Icon-72.png",
+ "size" : "29x29",
"scale" : "1x"
},
{
- "size" : "72x72",
"idiom" : "ipad",
- "filename" : "Icon-72@2x.png",
+ "size" : "29x29",
"scale" : "2x"
},
{
- "size" : "76x76",
"idiom" : "ipad",
- "filename" : "Icon-76.png",
+ "size" : "40x40",
"scale" : "1x"
},
{
- "size" : "76x76",
"idiom" : "ipad",
- "filename" : "Icon-76@2x.png",
+ "size" : "40x40",
"scale" : "2x"
},
{
- "idiom" : "iphone",
- "scale" : "2x",
- "size" : "29x29"
- },
- {
- "idiom" : "iphone",
- "scale" : "2x",
- "size" : "40x40"
- },
- {
"idiom" : "ipad",
- "scale" : "1x",
- "size" : "50x50"
+ "size" : "50x50",
+ "scale" : "1x"
},
{
"idiom" : "ipad",
- "scale" : "2x",
- "size" : "50x50"
+ "size" : "50x50",
+ "scale" : "2x"
},
{
+ "size" : "72x72",
"idiom" : "ipad",
- "scale" : "1x",
- "size" : "40x40"
+ "filename" : "Icon-72.png",
+ "scale" : "1x"
},
{
+ "size" : "72x72",
"idiom" : "ipad",
- "scale" : "2x",
- "size" : "40x40"
+ "filename" : "Icon-72@2x.png",
+ "scale" : "2x"
},
{
+ "size" : "76x76",
"idiom" : "ipad",
- "scale" : "1x",
- "size" : "29x29"
+ "filename" : "Icon-76.png",
+ "scale" : "1x"
},
{
+ "size" : "76x76",
"idiom" : "ipad",
- "scale" : "2x",
- "size" : "29x29"
+ "filename" : "Icon-76@2x.png",
+ "scale" : "2x"
}
],
"info" : {
diff --git a/platform/ios/MuPDF/Launch Screen.xib b/platform/ios/MuPDF/Launch Screen.xib
new file mode 100644
index 00000000..35933029
--- /dev/null
+++ b/platform/ios/MuPDF/Launch Screen.xib
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6245" systemVersion="13F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
+ <dependencies>
+ <deployment defaultVersion="1552" identifier="iOS"/>
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6238"/>
+ </dependencies>
+ <objects>
+ <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
+ <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
+ <view contentMode="scaleToFill" id="iN0-l3-epB">
+ <rect key="frame" x="0.0" y="0.0" width="480" height="480"/>
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+ <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
+ <nil key="simulatedStatusBarMetrics"/>
+ <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
+ <point key="canvasLocation" x="404" y="445"/>
+ </view>
+ </objects>
+</document>