Skip to content

Commit e0a37a9

Browse files
authored
Merge pull request #1984 from firebase/pb-dl-311
DynamicLinks patch version for c99 compatibility fix
2 parents 9fe54ed + 614de80 commit e0a37a9

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

Firebase/DynamicLinks/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# v3.1.1
2+
- Use c99 compatible __typeof__() operator. (#1982)
3+
14
# v3.1.0
25
- Firebase Dynamic Links is now open source and delivered as a source pod. (#1842)
36

Firebase/DynamicLinks/FIRDLDefaultRetrievalProcessV2.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ - (void)retrievePendingDynamicLinkInternal {
123123
}
124124
NSURL *uniqueMatchLinkToCheck = [self uniqueMatchLinkToCheck];
125125

126-
__weak typeof(self) weakSelf = self;
126+
__weak __typeof__(self) weakSelf = self;
127127
FIRPostInstallAttributionCompletionHandler completionHandler =
128128
^(NSDictionary *_Nullable dynamicLinkParameters, NSString *_Nullable matchMessage,
129129
NSError *_Nullable error) {
130-
typeof(self) strongSelf = weakSelf;
130+
__typeof__(self) strongSelf = weakSelf;
131131
if (!strongSelf) {
132132
return;
133133
}

Firebase/DynamicLinks/FIRDynamicLinks.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,10 +422,10 @@ - (nullable FIRDynamicLink *)dynamicLinkFromUniversalLinkURL:(NSURL *)url {
422422
- (BOOL)handleUniversalLink:(NSURL *)universalLinkURL
423423
completion:(FIRDynamicLinkUniversalLinkHandler)completion {
424424
if ([self matchesShortLinkFormat:universalLinkURL]) {
425-
__weak typeof(self) weakSelf = self;
425+
__weak __typeof__(self) weakSelf = self;
426426
[self resolveShortLink:universalLinkURL
427427
completion:^(NSURL *url, NSError *error) {
428-
typeof(self) strongSelf = weakSelf;
428+
__typeof__(self) strongSelf = weakSelf;
429429
if (strongSelf) {
430430
FIRDynamicLink *dynamicLink = [strongSelf dynamicLinkFromCustomSchemeURL:url];
431431
dispatch_async(dispatch_get_main_queue(), ^{

FirebaseDynamicLinks.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'FirebaseDynamicLinks'
3-
s.version = '3.1.0'
3+
s.version = '3.1.1'
44
s.summary = 'Firebase DynamicLinks for iOS'
55

66
s.description = <<-DESC

0 commit comments

Comments
 (0)