Proyectos de Subversion Iphone Microlearning

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
// Copyright 2020 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 "FirebasePerformance/Sources/Configurations/FPRConfigurations.h"
16
#import "FirebasePerformance/Sources/Configurations/FPRRemoteConfigFlags.h"
17
 
18
NS_ASSUME_NONNULL_BEGIN
19
 
20
/** List of gauges the gauge manager controls. */
21
typedef NS_OPTIONS(NSUInteger, FPRConfigurationSource) {
22
  FPRConfigurationSourceNone = 0,
23
  FPRConfigurationSourceRemoteConfig = (1 << 1),
24
};
25
 
26
/** This extension should only be used for testing. */
27
@interface FPRConfigurations ()
28
 
29
/** @brief Different configuration sources managed by the object. */
30
@property(nonatomic) FPRConfigurationSource sources;
31
 
32
/** @brief Instance of remote config flags. */
33
@property(nonatomic) FPRRemoteConfigFlags *remoteConfigFlags;
34
 
35
/** @brief The class to use when FIRApp is referenced. */
36
@property(nonatomic) Class FIRAppClass;
37
 
38
/** @brief User defaults used for user preference config fetches . */
39
@property(nonatomic) NSUserDefaults *userDefaults;
40
 
41
/** @brief The main bundle identifier used by config system. */
42
@property(nonatomic) NSString *mainBundleIdentifier;
43
 
44
/** @brief The infoDictionary provided by the main bundle. */
45
@property(nonatomic) NSDictionary<NSString *, id> *infoDictionary;
46
 
47
/** @brief Configurations update queue. */
48
@property(nonatomic) dispatch_queue_t updateQueue;
49
 
50
/**
51
 * Creates an instance of the FPRConfigurations class with the specified sources.
52
 *
53
 * @param source Source that needs to be enabled for fetching configurations.
54
 * @return Instance of FPRConfiguration.
55
 */
56
- (instancetype)initWithSources:(FPRConfigurationSource)source NS_DESIGNATED_INITIALIZER;
57
 
58
/**
59
 * Returns the list of SDK versions that are disabled. SDK Versions are ';' separated. If no
60
 * versions are disabled, an empty set is returned.
61
 *
62
 * @return The set of disabled SDK versions.
63
 */
64
- (nonnull NSSet<NSString *> *)sdkDisabledVersions;
65
 
66
/**
67
 * Resets this class by changing the onceToken back to 0, allowing a new singleton to be created,
68
 * while the old one is dealloc'd. This should only be used for testing.
69
 */
70
+ (void)reset;
71
 
72
@end
73
 
74
NS_ASSUME_NONNULL_END