-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature/shortcuts] iOS 13 Add Shortcut parameter support #491
Conversation
- uploads use new OCCoreOptionAutomaticConflictResolutionNameStyle option to automatically resolve naming conflicts during upload - Duplicate action uses the new OCCore name suggestion API to - determine naming conflicts and resolve them automatically - match the name style of the file to duplicate, f.ex. - duplicating "File copy.jpg" will create "File copy 2.jpg" - duplicating "File (1).jpg" will create "File (2).jpg" - duplicating "File Kopie 2.jpg" will create "File Kopie 3.jpg" - folder creation uses the new OCCore name suggestion API to - detect naming conflicts beforehand - pre-fill the new folder name name with an unused name directly
…es will be deleted to give the user a UI feedback
- minor code fixes
…y log file using new SDK protocol - Show SDK commit hash in Settings
…ller style for testing
* Rename updates the currently visible file in the gallery * Keeping gallery alive fix - Don’t pop to the root view controller on destructive action by default - Only pop to the root if all items have been deleted - Select next item upon deletion of the current ones - Update UIPageViewController data source if number of items changes due e.g. to duplication or deletion * Small fixes * Fixed review findings
* Media player implemented using AVKit * Added possibility to stream audio / video * Improved error handling * Fixed review finding * Added background audio, airplay and PiP mode * Propagating safe area to the main view of AVPlayerViewController * Another fix for safe area considering layout of AVPlayerViewController * Updated to latest develop version of SDK
Log device, version and locale info #446
Added an activity indicator for deleting offline copies #438
Naming improvements for upload, duplicate and folder creation #430
…se suggestion is not working in tests
…was dismissed - use the current development SDK
- fixed create folder action - delete local copy, if needed - code review changes
- add additional safeguard so duplicate files are only deleted if they were actually duplicated (previously non-duplicate files could be removed if duplication or folder creation failed) - remove temporary container folder, too - add 2 second delay before returning the core to give the core an opportunity to schedule the upload on a NSURLSession
I cannot reproduce it. I just tried the following:
@jesmrec |
I got a couple of GIFs to clarify the scenario. I have a "Documents" folder which contain:
Something like that: -- Documents The action is: After executing, only the folder "Folder1" was removed (i check the "Deleted" section): These are the sent requests: Now, i add a slash to the folder name in the action: executing again, and the @hosy, did you check with a folder that contains also subfolders? |
After the last commits, this is the behaviour i noticed: Action:
Executions of the shortcut: Execution 1: Folder is deleted correctly |
Attached some logs Action is:
You should find an execution in which the folder |
# Conflicts: # ownCloud.xcodeproj/project.pbxproj
@jesmrec I tried your same setup approx. 30-40 times and I cannot reproduce the error. Please can you test it again? |
I still reproduce it, with two different devices. Since we are in a deadlock with this issue, these are options to take:
|
@jesmrec please add more information:
Is it possible to test the same scenario with the demo.owncloud.com server? |
iPhoneX, iOS 13.1.2 Server: 10.2.1 (local docker). Also tested and reproducible with What do you mean with |
@jesmrec in the Shortcuts.app you can export the shortcut, which you have created, and attach it here. |
in order to export, it is required to enable the untrusted shortcuts in device settings (because that, i did not find the option to export). The only way is creating an iCloud link. |
# Conflicts: # ios-sdk
@jesmrec please can you share the folder structure as a zip file? |
This is the structure (to copy in root folder): and the shortcut:
|
The problem is fixed, at least not reproducible anymore. |
# Conflicts: # ios-sdk # ownCloud.xcodeproj/project.pbxproj # ownCloud/Resources/Info.plist # ownCloudAppShared/Client/SortMethod.swift
Description
As an user I want to use the iOS Shortcuts App to interact with the ownCloud App, without opening the App. This can be very useful to save files in an ownCloud account, get files from an ownCloud account and to use this for further Shortcut steps. This is a powerful feature for power users.
With the new automation rules you can also auto backup files and photos in your ownCloud. This is really a game changer!
Implemented Intents:
Get list of bookmarks
Parameters:
Return Value:
Errors:
Get bookmark
Parameters:
Return Value:
Errors:
Get directory listing for a bookmark
Parameters:
Optional:
Return Value:
Errors:
Get file for a bookmark
Parameters:
Return Value:
Errors:
Get file info
Parameters:
Return Value:
Errors:
Create folder in directory for a bookmark
Parameters:
Return Value:
Errors:
Check if Path exists
Parameters:
Return Value:
Errors:
Import file in directory for a bookmark
Parameters:
Return Value:
Errors:
Delete Path Item
Parameters:
Return Value:
Errors:
Related Issue
#463
Motivation and Context
As a power user I want to save and get files via Shortcuts.app.
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
Test plan:
https://github.com/owncloud/QA/blob/master/Mobile/iOS-app/Version%201.2.0/Shortcuts.md
Bugs & improvements