瀏覽代碼

restrict share extension to image and text sharing for now

cyberta 5 年之前
父節點
當前提交
ea4fb799cd
共有 1 個文件被更改,包括 10 次插入1 次删除
  1. 10 1
      DcShare/Info.plist

+ 10 - 1
DcShare/Info.plist

@@ -25,7 +25,16 @@
 		<key>NSExtensionAttributes</key>
 		<dict>
 			<key>NSExtensionActivationRule</key>
-			<string>TRUEPREDICATE</string>
+			<dict>
+				<key>NSExtensionActivationDictionaryVersion</key>
+				<integer>2</integer>
+				<key>NSExtensionActivationSupportsImageWithMaxCount</key>
+				<integer>10</integer>
+				<key>NSExtensionActivationSupportsText</key>
+				<true/>
+				<key>NSExtensionActivationSupportsWebURLWithMaxCount</key>
+				<string>10</string>
+			</dict>
 		</dict>
 		<key>NSExtensionMainStoryboard</key>
 		<string>MainInterface</string>