File tree Expand file tree Collapse file tree 4 files changed +23
-3
lines changed
Public/FirebaseAppDistribution Expand file tree Collapse file tree 4 files changed +23
-3
lines changed Original file line number Diff line number Diff line change
1
+ # Unreleased
2
+ - [ added] Added a public ` application(_:openURL:options:) ` method so users
3
+ with swizzling disabled can still use App Distribution (#10418 ).
4
+
1
5
# 10.1.0
2
6
- [ fixed] Fixed inconsistent sign in prompts in single scene apps (#8096 ).
3
7
Original file line number Diff line number Diff line change @@ -336,4 +336,13 @@ - (BOOL)isCodeHashIdentical:(NSString *)codeHash {
336
336
337
337
return codeHash && [codeHash isEqualToString: [machO codeHash ]];
338
338
}
339
+
340
+ #pragma mark - Swizzling disabled
341
+
342
+ - (BOOL )application : (UIApplication *)application
343
+ openURL : (NSURL *)url
344
+ options : (NSDictionary <NSString *, id> *)options {
345
+ return [self .uiService application: application openURL: url options: options];
346
+ }
347
+
339
348
@end
Original file line number Diff line number Diff line change @@ -179,9 +179,7 @@ - (BOOL)application:(UIApplication *)application
179
179
if (self.registrationFlowCompletion ) {
180
180
FIRFADDebugLog (@" Continuing registration flow: %@ " , [self registrationFlowCompletion ]);
181
181
[self resetUIState ];
182
- if (@available (iOS 9.0 , *)) {
183
- [self logRegistrationCompletion: nil authType: [SFSafariViewController description ]];
184
- }
182
+ [self logRegistrationCompletion: nil authType: [SFSafariViewController description ]];
185
183
self.registrationFlowCompletion (nil );
186
184
}
187
185
return NO ;
Original file line number Diff line number Diff line change 13
13
// limitations under the License.
14
14
15
15
@class FIRAppDistributionRelease;
16
+ @class UIApplication;
16
17
#import < Foundation/Foundation.h>
17
18
18
19
NS_ASSUME_NONNULL_BEGIN
@@ -55,6 +56,14 @@ NS_SWIFT_NAME(AppDistribution)
55
56
*/
56
57
- (void )signOutTester;
57
58
59
+ /* *
60
+ * Handle an App Distribution URL, for example a link to download a new pre-release version.
61
+ * Call this method in your app delegate's `openURL` implementation if swizzling is disabled.
62
+ */
63
+ - (BOOL )application:(UIApplication *)application
64
+ openURL:(NSURL *)url
65
+ options:(NSDictionary <NSString *, id > *)options;
66
+
58
67
/* *
59
68
* Accesses the singleton App Distribution instance.
60
69
*
You can’t perform that action at this time.
0 commit comments