Proyectos de Subversion Iphone Microlearning

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
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
#if defined(__IPHONE_15_0)
17
#define CLS_METRICKIT_SUPPORTED (__has_include(<MetricKit/MetricKit.h>) && TARGET_OS_IOS)
18
#else
19
#define CLS_METRICKIT_SUPPORTED 0
20
#endif
21
 
22
#if CLS_METRICKIT_SUPPORTED
23
#import <MetricKit/MetricKit.h>
24
 
25
/*
26
 * Helper class for parsing the `MXCallStackTree` that we receive from MetricKit. Flattens the
27
 * nested structure into a structure similar to what is used in Crashlytics.
28
 */
29
@interface FIRCLSCallStackTree : NSObject
30
 
31
- (instancetype)initWithMXCallStackTree:(MXCallStackTree *)callStackTree API_AVAILABLE(ios(14.0));
32
- (NSArray *)getArrayRepresentation;
33
- (NSArray *)getFramesOfBlamedThread;
34
- (instancetype)init NS_UNAVAILABLE;
35
 
36
@end
37
#endif