"Fossies" - the Fresh Open Source Software Archive

Member "jitsi-meet-5187/ios/app/src/FIRUtilities.m" (2 Aug 2021, 1428 Bytes) of package /linux/misc/jitsi-meet-5187.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Matlab source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 /*
    2  * Copyright 2017 Google
    3  *
    4  * Licensed under the Apache License, Version 2.0 (the "License");
    5  * you may not use this file except in compliance with the License.
    6  * You may obtain a copy of the License at
    7  *
    8  *      http://www.apache.org/licenses/LICENSE-2.0
    9  *
   10  * Unless required by applicable law or agreed to in writing, software
   11  * distributed under the License is distributed on an "AS IS" BASIS,
   12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   13  * See the License for the specific language governing permissions and
   14  * limitations under the License.
   15  */
   16 
   17 #import "FIRUtilities.h"
   18 
   19 @import JitsiMeetSDK;
   20 
   21 @implementation FIRUtilities
   22 
   23 + (BOOL)appContainsRealServiceInfoPlist {
   24   static BOOL containsRealServiceInfoPlist = NO;
   25   static dispatch_once_t onceToken;
   26   dispatch_once(&onceToken, ^{
   27     NSBundle *bundle = [NSBundle mainBundle];
   28     containsRealServiceInfoPlist = [InfoPlistUtil containsRealServiceInfoPlistInBundle:bundle];
   29   });
   30   return containsRealServiceInfoPlist;
   31 }
   32 
   33 + (NSURL *)extractURL: (FIRDynamicLink*)dynamicLink {
   34   NSURL *url = nil;
   35   if (dynamicLink != nil) {
   36     NSURL *dynamicLinkURL = dynamicLink.url;
   37     if (dynamicLinkURL != nil
   38         && (dynamicLink.matchType == FIRDLMatchTypeUnique
   39             || dynamicLink.matchType == FIRDLMatchTypeDefault)) {
   40           // Strong match, process it.
   41           url = dynamicLinkURL;
   42         }
   43   }
   44 
   45   return url;
   46 }
   47 
   48 @end