Skip to content

Commit

Permalink
#1293 added a share action extension "Save to ownCloud"
Browse files Browse the repository at this point in the history
  • Loading branch information
hosy committed Nov 20, 2023
1 parent a27068d commit 0c1856d
Show file tree
Hide file tree
Showing 5 changed files with 322 additions and 1 deletion.
38 changes: 38 additions & 0 deletions ownCloud Action Extension/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>OCKeychainAccessGroupIdentifier</key>
<string>group.com.owncloud.ios-app</string>
<key>OCHasFileProvider</key>
<true/>
<key>OCAppComponentIdentifier</key>
<string>shareExtension</string>
<key>OCAppIdentifierPrefix</key>
<string>$(AppIdentifierPrefix)</string>
<key>OCAppGroupIdentifier</key>
<string>group.com.owncloud.ios-app</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionAttributes</key>
<dict>
<key>NSExtensionActivationRule</key>
<string>SUBQUERY (
extensionItems,
$extensionItem,
SUBQUERY (
$extensionItem.attachments,
$attachment,
(
ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO &quot;public.data&quot;
)
).@count == $extensionItem.attachments.@count
).@count &gt; 0</string>
</dict>
<key>NSExtensionPrincipalClass</key>
<string>ShareExtensionViewController</string>
<key>NSExtensionPointIdentifier</key>
<string>com.apple.ui-services</string>
</dict>
</dict>
</plist>
22 changes: 22 additions & 0 deletions ownCloud Action Extension/de.lproj/InfoPlist.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
InfoPlist.strings
ownCloud

Created by Matthias Hühne on 11/20/2023.
Copyright © 2020 ownCloud GmbH. All rights reserved.
*/

/*
* Copyright (C) 2020, ownCloud GmbH.
*
* This code is covered by the GNU Public License Version 3.
*
* For distribution utilizing Apple mechanisms please see https://owncloud.org/contribute/iOS-license-exception/
* You should have received a copy of this license along with this program. If not, see <http://www.gnu.org/licenses/gpl-3.0.en.html>.
*
*/

"CFBundleDisplayName" = "Speichern in ownCloud";

"The Share Extension is not available on this system." = "Die Erweiterung ist auf diesem System nicht verfügbar.";
"Share Extension unavailable" = "Erweiterung nicht verfügbar";
22 changes: 22 additions & 0 deletions ownCloud Action Extension/en.lproj/InfoPlist.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
InfoPlist.strings
ownCloud

Created by Matthias Hühne on 11/20/2023.
Copyright © 2020 ownCloud GmbH. All rights reserved.
*/

/*
* Copyright (C) 2020, ownCloud GmbH.
*
* This code is covered by the GNU Public License Version 3.
*
* For distribution utilizing Apple mechanisms please see https://owncloud.org/contribute/iOS-license-exception/
* You should have received a copy of this license along with this program. If not, see <http://www.gnu.org/licenses/gpl-3.0.en.html>.
*
*/

"CFBundleDisplayName" = "Save to ownCloud";

"The Share Extension is not available on this system." = "The Share Extension is not available on this system.";
"Share Extension unavailable" = "Share Extension unavailable";
14 changes: 14 additions & 0 deletions ownCloud Action Extension/ownCloud Action Extension.entitlements
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.application-groups</key>
<array>
<string>group.com.owncloud.ios-app</string>
</array>
<key>keychain-access-groups</key>
<array>
<string>$(AppIdentifierPrefix)group.com.owncloud.ios-app</string>
</array>
</dict>
</plist>
Loading

0 comments on commit 0c1856d

Please sign in to comment.