2 * Copyright 2017 Google
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #import "FIROptions.h"
20 * Keys for the strings in the plist file.
22 extern NSString *const kFIRAPIKey;
23 extern NSString *const kFIRTrackingID;
24 extern NSString *const kFIRGoogleAppID;
25 extern NSString *const kFIRClientID;
26 extern NSString *const kFIRGCMSenderID;
27 extern NSString *const kFIRAndroidClientID;
28 extern NSString *const kFIRDatabaseURL;
29 extern NSString *const kFIRStorageBucket;
30 extern NSString *const kFIRBundleID;
31 extern NSString *const kFIRProjectID;
34 * Keys for the plist file name
36 extern NSString *const kServiceInfoFileName;
38 extern NSString *const kServiceInfoFileType;
41 * This header file exposes the initialization of FIROptions to internal use.
43 @interface FIROptions ()
46 * resetDefaultOptions and initInternalWithOptionsDictionary: are exposed only for unit tests.
48 + (void)resetDefaultOptions;
51 * Initializes the options with dictionary. The above strings are the keys of the dictionary.
52 * This is the designated initializer.
54 - (instancetype)initInternalWithOptionsDictionary:(NSDictionary *)serviceInfoDictionary;
57 * defaultOptions and defaultOptionsDictionary are exposed in order to be used in FIRApp and
58 * other first party services.
60 + (FIROptions *)defaultOptions;
62 + (NSDictionary *)defaultOptionsDictionary;
65 * Indicates whether or not Analytics collection was explicitly enabled via a plist flag or at
68 @property(nonatomic, readonly) BOOL isAnalyticsCollectionExpicitlySet;
71 * Whether or not Analytics Collection was enabled. Analytics Collection is enabled unless
72 * explicitly disabled in GoogleService-Info.plist.
74 @property(nonatomic, readonly) BOOL isAnalyticsCollectionEnabled;
77 * Whether or not Analytics Collection was completely disabled. If YES, then
78 * isAnalyticsCollectionEnabled will be NO.
80 @property(nonatomic, readonly) BOOL isAnalyticsCollectionDeactivated;
83 * The version ID of the client library, e.g. @"1100000".
85 @property(nonatomic, readonly, copy) NSString *libraryVersionID;
88 * The flag indicating whether this object was constructed with the values in the default plist
91 @property(nonatomic) BOOL usingOptionsFromDefaultPlist;
94 * Whether or not Measurement was enabled. Measurement is enabled unless explicitly disabled in
95 * GoogleService-Info.plist.
97 @property(nonatomic, readonly) BOOL isMeasurementEnabled;
100 * Whether or not Analytics was enabled in the developer console.
102 @property(nonatomic, readonly) BOOL isAnalyticsEnabled;
105 * Whether or not SignIn was enabled in the developer console.
107 @property(nonatomic, readonly) BOOL isSignInEnabled;
110 * Whether or not editing is locked. This should occur after FIROptions has been set on a FIRApp.
112 @property(nonatomic, getter=isEditingLocked) BOOL editingLocked;