1 |
efrain |
1 |
/*
|
|
|
2 |
* Copyright 2019 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 <Foundation/Foundation.h>
|
|
|
18 |
|
|
|
19 |
typedef NS_ENUM(NSInteger, RCNDeviceModel) {
|
|
|
20 |
RCNDeviceModelOther,
|
|
|
21 |
RCNDeviceModelPhone,
|
|
|
22 |
RCNDeviceModelTablet,
|
|
|
23 |
RCNDeviceModelTV,
|
|
|
24 |
RCNDeviceModelGlass,
|
|
|
25 |
RCNDeviceModelCar,
|
|
|
26 |
RCNDeviceModelWearable,
|
|
|
27 |
};
|
|
|
28 |
|
|
|
29 |
/// CocoaPods SDK version
|
|
|
30 |
NSString *FIRRemoteConfigPodVersion(void);
|
|
|
31 |
|
|
|
32 |
/// App version.
|
|
|
33 |
NSString *FIRRemoteConfigAppVersion(void);
|
|
|
34 |
|
|
|
35 |
/// App build version
|
|
|
36 |
NSString *FIRRemoteConfigAppBuildVersion(void);
|
|
|
37 |
|
|
|
38 |
/// Device country, in lowercase.
|
|
|
39 |
NSString *FIRRemoteConfigDeviceCountry(void);
|
|
|
40 |
|
|
|
41 |
/// Device locale, in language_country format, e.g. en_US.
|
|
|
42 |
NSString *FIRRemoteConfigDeviceLocale(void);
|
|
|
43 |
|
|
|
44 |
/// Device subtype.
|
|
|
45 |
RCNDeviceModel FIRRemoteConfigDeviceSubtype(void);
|
|
|
46 |
|
|
|
47 |
/// Device timezone.
|
|
|
48 |
NSString *FIRRemoteConfigTimezone(void);
|
|
|
49 |
|
|
|
50 |
/// Update device context to the given dictionary.
|
|
|
51 |
NSMutableDictionary *FIRRemoteConfigDeviceContextWithProjectIdentifier(
|
|
|
52 |
NSString *GMPProjectIdentifier);
|
|
|
53 |
|
|
|
54 |
/// Check whether client has changed device context, including app version,
|
|
|
55 |
/// iOS version, device country etc. This is used to determine whether to throttle.
|
|
|
56 |
BOOL FIRRemoteConfigHasDeviceContextChanged(NSDictionary *deviceContext,
|
|
|
57 |
NSString *GMPProjectIdentifier);
|