File tree Expand file tree Collapse file tree 2 files changed +0
-30
lines changed
Crashlytics/Crashlytics/Components Expand file tree Collapse file tree 2 files changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -83,10 +83,6 @@ UIApplication* FIRCLSApplicationSharedInstance(void);
8383id FIRCLSApplicationSharedInstance (void );
8484#endif
8585
86- void FIRCLSApplicationOpenURL (NSURL * url,
87- NSExtensionContext * extensionContext,
88- void (^completionBlock)(BOOL success));
89-
9086id <NSObject > FIRCLSApplicationBeginActivity (NSActivityOptions options, NSString * reason);
9187void FIRCLSApplicationEndActivity (id <NSObject > activity);
9288
Original file line number Diff line number Diff line change @@ -155,32 +155,6 @@ id FIRCLSApplicationSharedInstance(void) {
155155}
156156#endif
157157
158- void FIRCLSApplicationOpenURL (NSURL * url,
159- NSExtensionContext * extensionContext,
160- void (^completionBlock)(BOOL success)) {
161- if (extensionContext) {
162- [extensionContext openURL: url completionHandler: completionBlock];
163- return ;
164- }
165-
166- BOOL result = NO ;
167-
168- #if TARGET_OS_IOS
169- // What's going on here is the value returned is a scalar, but we really need an object to
170- // call this dynamically. Hoops must be jumped.
171- NSInvocationOperation * op =
172- [[NSInvocationOperation alloc ] initWithTarget: FIRCLSApplicationSharedInstance ()
173- selector: @selector (openURL: )
174- object: url];
175- [op start ];
176- [op.result getValue: &result];
177- #elif CLS_TARGET_OS_OSX
178- result = [[NSClassFromString (@" NSWorkspace" ) sharedWorkspace ] openURL: url];
179- #endif
180-
181- completionBlock (result);
182- }
183-
184158id <NSObject > FIRCLSApplicationBeginActivity (NSActivityOptions options, NSString * reason) {
185159 if ([[NSProcessInfo processInfo ] respondsToSelector: @selector (beginActivityWithOptions:
186160 reason: )]) {
You can’t perform that action at this time.
0 commit comments