Drop iOS 14 Support: Update Share Extensions#20866
Conversation
bb3e151 to
4c0d7c8
Compare
|
| App Name | Jetpack Alpha |
|
| Configuration | Release-Alpha | |
| Build Number | pr20866-4c0d7c8 | |
| Version | 22.6 | |
| Bundle ID | com.jetpack.alpha | |
| Commit | 4c0d7c8 | |
| App Center Build | jetpack-installable-builds #4990 |
|
| App Name | WordPress Alpha |
|
| Configuration | Release-Alpha | |
| Build Number | pr20866-4c0d7c8 | |
| Version | 22.6 | |
| Bundle ID | org.wordpress.alpha | |
| Commit | 4c0d7c8 | |
| App Center Build | WPiOS - One-Offs #5962 |
guarani
left a comment
There was a problem hiding this comment.
👋 Hey @kean, thanks for the PR! The testing steps worked as expected except for a crash which I've detailed below (but I haven't yet checked if it's present in trunk).
These are the steps to reproduce the crash (reproducible on 2 out of 2 attempts):
- Shared text (highlight text in an online text editor, long-press, Share, choose Jetpack)
- Opened a different app and shared text (highlighted text in notes field of Contacts app, long-press, Share, choose Jetpack
- Share extension crashes in Xcode
* thread #31, queue = 'com.apple.NSURLSession-delegate', stop reason = EXC_BREAKPOINT (code=1, subcode=0x10c6c11b8)
frame #0: 0x000000010c6c11b8 CoreData`_PFAssertSafeMultiThreadedAccess_impl + 520
frame #1: 0x000000010c6c8f90 CoreData`-[NSManagedObjectContext executeRequest:error:] + 2552
frame #2: 0x000000010c61f488 CoreData`__C.NSManagedObjectContext.fetch<τ_0_0 where τ_0_0: __C.NSFetchRequestResult>(__C.NSFetchRequest<τ_0_0>) throws -> Swift.Array<τ_0_0> + 80
* frame #3: 0x00000001029d80bc Jetpack`SharedCoreDataStack.fetchSessionUploadOps(taskIdentifier=1, sessionID="group.org.wordpress.06C9B0C5-26E7-427C-9551-6143F857DD49", self=0x00000002951df010) at SharedCoreDataStack.swift:194:44
frame #4: 0x00000001025d2270 Jetpack`ShareExtensionSessionManager.urlSession(session=0x0000000295cb37f0, task=0x00000002952a2f40, error=nil, self=0x0000000295c8f920) at ShareExtensionSessionManager.swift:338:45
frame #5: 0x00000001025d3034 Jetpack`@objc ShareExtensionSessionManager.urlSession(_:task:didCompleteWithError:) at <compiler-generated>:0
frame #6: 0x00000001168540e0 CFNetwork`___lldb_unnamed_symbol2749 + 32
frame #7: 0x000000011ccec528 libdispatch.dylib`_dispatch_call_block_and_release + 24
frame #8: 0x000000011ccedd50 libdispatch.dylib`_dispatch_client_callout + 16
frame #9: 0x000000011ccf6014 libdispatch.dylib`_dispatch_lane_serial_drain + 924
frame #10: 0x000000011ccf6da4 libdispatch.dylib`_dispatch_lane_invoke + 480
frame #11: 0x000000011cd04b74 libdispatch.dylib`_dispatch_workloop_worker_thread + 1716
frame #12: 0x00000001b1834878 libsystem_pthread.dylib`_pthread_wqthread + 284
The changes I made to TextBundle.m do not affect any of the functionality because this code is unused, but I tested it manually just to make sure it still works:
What do you mean by unused? Does this mean dead code that could be removed?
|
Testing on |
Yes, but it's the library code, so I would suggest keeping it. It'll make it easier to update it in the future if needed. P.S. I looked into the library and there is some development happening, but I don't see any new stable releases. |


Related: #20860
Update* share extensions to support iOS 15 as minimum deployment target.
To test:
Test the following supported types (all or at least some of them):
The changes I made to TextBundle.m do not affect any of the functionality because this code is unused, but I tested it manually just to make sure it still works:
Regression Notes
PR submission checklist:
RELEASE-NOTES.txtif necessary.