Skip to content

Commit f69072f

Browse files
author
Thomas Taschauer
committed
add NSPhotoLibraryAddUsageDescription for copying photos out of a document
1 parent 9556e4b commit f69072f

2 files changed

Lines changed: 82 additions & 78 deletions

File tree

OpenDocumentReader/Info-Lite.plist

Lines changed: 80 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -2,83 +2,85 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5-
<key>CFBundleDevelopmentRegion</key>
6-
<string>$(DEVELOPMENT_LANGUAGE)</string>
7-
<key>CFBundleDocumentTypes</key>
8-
<array>
9-
<dict>
10-
<key>CFBundleTypeIconFiles</key>
11-
<array/>
12-
<key>CFBundleTypeName</key>
13-
<string>ODT</string>
14-
<key>CFBundleTypeRole</key>
15-
<string>Viewer</string>
16-
<key>LSHandlerRank</key>
17-
<string>Alternate</string>
18-
<key>LSItemContentTypes</key>
19-
<array>
20-
<string>public.zip-archive</string>
21-
</array>
22-
</dict>
23-
<dict>
24-
<key>CFBundleTypeIconFiles</key>
25-
<array/>
26-
<key>CFBundleTypeName</key>
27-
<string>Others</string>
28-
<key>CFBundleTypeRole</key>
29-
<string>Viewer</string>
30-
<key>LSHandlerRank</key>
31-
<string>Alternate</string>
32-
<key>LSItemContentTypes</key>
33-
<array>
34-
<string>public.text</string>
35-
<string>public.image</string>
36-
<string>public.audiovisual-content</string>
37-
<string>public.composite-content</string>
38-
</array>
39-
</dict>
40-
</array>
41-
<key>CFBundleExecutable</key>
42-
<string>$(EXECUTABLE_NAME)</string>
43-
<key>CFBundleIdentifier</key>
44-
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
45-
<key>CFBundleInfoDictionaryVersion</key>
46-
<string>6.0</string>
47-
<key>CFBundleName</key>
48-
<string>$(PRODUCT_NAME)</string>
49-
<key>CFBundlePackageType</key>
50-
<string>APPL</string>
51-
<key>CFBundleShortVersionString</key>
52-
<string>$(MARKETING_VERSION)</string>
53-
<key>CFBundleVersion</key>
54-
<string>$(CURRENT_PROJECT_VERSION)</string>
55-
<key>GADApplicationIdentifier</key>
56-
<string>ca-app-pub-8161473686436957~5688952247</string>
57-
<key>LSRequiresIPhoneOS</key>
58-
<true/>
59-
<key>UILaunchStoryboardName</key>
60-
<string>LaunchScreen</string>
61-
<key>UIMainStoryboardFile</key>
62-
<string>Main</string>
63-
<key>UIRequiredDeviceCapabilities</key>
64-
<array>
65-
<string>armv7</string>
66-
</array>
67-
<key>UISupportedInterfaceOrientations</key>
68-
<array>
69-
<string>UIInterfaceOrientationPortrait</string>
70-
<string>UIInterfaceOrientationLandscapeLeft</string>
71-
<string>UIInterfaceOrientationLandscapeRight</string>
72-
<string>UIInterfaceOrientationPortraitUpsideDown</string>
73-
</array>
74-
<key>UISupportedInterfaceOrientations~ipad</key>
75-
<array>
76-
<string>UIInterfaceOrientationPortrait</string>
77-
<string>UIInterfaceOrientationPortraitUpsideDown</string>
78-
<string>UIInterfaceOrientationLandscapeLeft</string>
79-
<string>UIInterfaceOrientationLandscapeRight</string>
80-
</array>
81-
<key>UISupportsDocumentBrowser</key>
82-
<true/>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>$(DEVELOPMENT_LANGUAGE)</string>
7+
<key>CFBundleDocumentTypes</key>
8+
<array>
9+
<dict>
10+
<key>CFBundleTypeIconFiles</key>
11+
<array/>
12+
<key>CFBundleTypeName</key>
13+
<string>ODT</string>
14+
<key>CFBundleTypeRole</key>
15+
<string>Viewer</string>
16+
<key>LSHandlerRank</key>
17+
<string>Alternate</string>
18+
<key>LSItemContentTypes</key>
19+
<array>
20+
<string>public.zip-archive</string>
21+
</array>
22+
</dict>
23+
<dict>
24+
<key>CFBundleTypeIconFiles</key>
25+
<array/>
26+
<key>CFBundleTypeName</key>
27+
<string>Others</string>
28+
<key>CFBundleTypeRole</key>
29+
<string>Viewer</string>
30+
<key>LSHandlerRank</key>
31+
<string>Alternate</string>
32+
<key>LSItemContentTypes</key>
33+
<array>
34+
<string>public.text</string>
35+
<string>public.image</string>
36+
<string>public.audiovisual-content</string>
37+
<string>public.composite-content</string>
38+
</array>
39+
</dict>
40+
</array>
41+
<key>CFBundleExecutable</key>
42+
<string>$(EXECUTABLE_NAME)</string>
43+
<key>CFBundleIdentifier</key>
44+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
45+
<key>CFBundleInfoDictionaryVersion</key>
46+
<string>6.0</string>
47+
<key>CFBundleName</key>
48+
<string>$(PRODUCT_NAME)</string>
49+
<key>CFBundlePackageType</key>
50+
<string>APPL</string>
51+
<key>CFBundleShortVersionString</key>
52+
<string>$(MARKETING_VERSION)</string>
53+
<key>CFBundleVersion</key>
54+
<string>$(CURRENT_PROJECT_VERSION)</string>
55+
<key>GADApplicationIdentifier</key>
56+
<string>ca-app-pub-8161473686436957~5688952247</string>
57+
<key>LSRequiresIPhoneOS</key>
58+
<true/>
59+
<key>UILaunchStoryboardName</key>
60+
<string>LaunchScreen</string>
61+
<key>UIMainStoryboardFile</key>
62+
<string>Main</string>
63+
<key>UIRequiredDeviceCapabilities</key>
64+
<array>
65+
<string>armv7</string>
66+
</array>
67+
<key>UISupportedInterfaceOrientations</key>
68+
<array>
69+
<string>UIInterfaceOrientationPortrait</string>
70+
<string>UIInterfaceOrientationLandscapeLeft</string>
71+
<string>UIInterfaceOrientationLandscapeRight</string>
72+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
73+
</array>
74+
<key>UISupportedInterfaceOrientations~ipad</key>
75+
<array>
76+
<string>UIInterfaceOrientationPortrait</string>
77+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
78+
<string>UIInterfaceOrientationLandscapeLeft</string>
79+
<string>UIInterfaceOrientationLandscapeRight</string>
80+
</array>
81+
<key>UISupportsDocumentBrowser</key>
82+
<true/>
83+
<key>NSPhotoLibraryAddUsageDescription</key>
84+
<string>Copy image from document to your Photos</string>
8385
</dict>
8486
</plist>

OpenDocumentReader/Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,7 @@
8080
</array>
8181
<key>UISupportsDocumentBrowser</key>
8282
<true/>
83+
<key>NSPhotoLibraryAddUsageDescription</key>
84+
<string>Copy image from document to your Photos</string>
8385
</dict>
8486
</plist>

0 commit comments

Comments
 (0)