| 1 | 
           efrain | 
           1 | 
           // Copyright 2021 Google LLC
  | 
        
        
            | 
            | 
           2 | 
           //
  | 
        
        
            | 
            | 
           3 | 
           // Licensed under the Apache License, Version 2.0 (the "License");
  | 
        
        
            | 
            | 
           4 | 
           // you may not use this file except in compliance with the License.
  | 
        
        
            | 
            | 
           5 | 
           // You may obtain a copy of the License at
  | 
        
        
            | 
            | 
           6 | 
           //
  | 
        
        
            | 
            | 
           7 | 
           //      http://www.apache.org/licenses/LICENSE-2.0
  | 
        
        
            | 
            | 
           8 | 
           //
  | 
        
        
            | 
            | 
           9 | 
           // Unless required by applicable law or agreed to in writing, software
  | 
        
        
            | 
            | 
           10 | 
           // distributed under the License is distributed on an "AS IS" BASIS,
  | 
        
        
            | 
            | 
           11 | 
           // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  | 
        
        
            | 
            | 
           12 | 
           // See the License for the specific language governing permissions and
  | 
        
        
            | 
            | 
           13 | 
           // limitations under the License.
  | 
        
        
            | 
            | 
           14 | 
              | 
        
        
            | 
            | 
           15 | 
           #import <Foundation/Foundation.h>
  | 
        
        
            | 
            | 
           16 | 
              | 
        
        
            | 
            | 
           17 | 
           /** This class generated the console URLs for a project or a metric.*/
  | 
        
        
            | 
            | 
           18 | 
           @interface FPRConsoleURLGenerator : NSObject
  | 
        
        
            | 
            | 
           19 | 
              | 
        
        
            | 
            | 
           20 | 
           /**
  | 
        
        
            | 
            | 
           21 | 
            * Generates the console URL for the dashboard page of the project.
  | 
        
        
            | 
            | 
           22 | 
            *
  | 
        
        
            | 
            | 
           23 | 
            * @param projectID The Firebase project ID.
  | 
        
        
            | 
            | 
           24 | 
            * @param bundleID The bundle ID of this project.
  | 
        
        
            | 
            | 
           25 | 
            * @return The console URL for the dashboard page.
  | 
        
        
            | 
            | 
           26 | 
            */
  | 
        
        
            | 
            | 
           27 | 
           + (NSString *)generateDashboardURLWithProjectID:(NSString *)projectID bundleID:(NSString *)bundleID;
  | 
        
        
            | 
            | 
           28 | 
              | 
        
        
            | 
            | 
           29 | 
           /**
  | 
        
        
            | 
            | 
           30 | 
            * Generates the console URL for the custom trace page.
  | 
        
        
            | 
            | 
           31 | 
            *
  | 
        
        
            | 
            | 
           32 | 
            * @param projectID The Firebase project ID.
  | 
        
        
            | 
            | 
           33 | 
            * @param bundleID The bundle ID of this project.
  | 
        
        
            | 
            | 
           34 | 
            * @return The console URL for the custom trace page.
  | 
        
        
            | 
            | 
           35 | 
            */
  | 
        
        
            | 
            | 
           36 | 
           + (NSString *)generateCustomTraceURLWithProjectID:(NSString *)projectID
  | 
        
        
            | 
            | 
           37 | 
                                                    bundleID:(NSString *)bundleID
  | 
        
        
            | 
            | 
           38 | 
                                                   traceName:(NSString *)traceName;
  | 
        
        
            | 
            | 
           39 | 
              | 
        
        
            | 
            | 
           40 | 
           /**
  | 
        
        
            | 
            | 
           41 | 
            * Generates the console URL for the screen trace page.
  | 
        
        
            | 
            | 
           42 | 
            *
  | 
        
        
            | 
            | 
           43 | 
            * @param projectID The Firebase project ID.
  | 
        
        
            | 
            | 
           44 | 
            * @param bundleID The bundle ID of this project.
  | 
        
        
            | 
            | 
           45 | 
            * @return The console URL for the custom trace page.
  | 
        
        
            | 
            | 
           46 | 
            */
  | 
        
        
            | 
            | 
           47 | 
           + (NSString *)generateScreenTraceURLWithProjectID:(NSString *)projectID
  | 
        
        
            | 
            | 
           48 | 
                                                    bundleID:(NSString *)bundleID
  | 
        
        
            | 
            | 
           49 | 
                                                   traceName:(NSString *)traceName;
  | 
        
        
            | 
            | 
           50 | 
              | 
        
        
            | 
            | 
           51 | 
           @end
  |