|
21 | 21 | #import "FirebaseRemoteConfig/Sources/RCNConfigConstants.h" |
22 | 22 | #import "FirebaseRemoteConfig/Sources/RCNConfigDBManager.h" |
23 | 23 | #import "FirebaseRemoteConfig/Sources/RCNConfigValue_Internal.h" |
24 | | -#import "FirebaseRemoteConfig/Sources/RCNDevice.h" |
25 | 24 |
|
26 | 25 | #import <GoogleUtilities/GULAppEnvironmentUtil.h> |
27 | 26 | #import "FirebaseCore/Extension/FirebaseCoreInternal.h" |
@@ -293,7 +292,7 @@ - (void)updateMetadataWithFetchSuccessStatus:(BOOL)fetchSuccess |
293 | 292 | if (fetchSuccess) { |
294 | 293 | [self updateLastFetchTimeInterval:[[NSDate date] timeIntervalSince1970]]; |
295 | 294 | // Note: We expect the googleAppID to always be available. |
296 | | - _deviceContext = FIRRemoteConfigDeviceContextWithProjectIdentifier(_googleAppID); |
| 295 | + _deviceContext = [[Device remoteConfigDeviceContextWith:_googleAppID] mutableCopy]; |
297 | 296 | _lastFetchedTemplateVersion = templateVersion; |
298 | 297 | [_userDefaultsManager setLastFetchedTemplateVersion:templateVersion]; |
299 | 298 | } |
@@ -398,23 +397,25 @@ - (NSString *)nextRequestWithUserProperties:(NSDictionary *)userProperties { |
398 | 397 | _configInstallationsToken]]; |
399 | 398 | ret = [ret stringByAppendingString:[NSString stringWithFormat:@", app_id:'%@'", _googleAppID]]; |
400 | 399 |
|
401 | | - ret = [ret stringByAppendingString:[NSString stringWithFormat:@", country_code:'%@'", |
402 | | - FIRRemoteConfigDeviceCountry()]]; |
| 400 | + ret = |
| 401 | + [ret stringByAppendingString:[NSString stringWithFormat:@", country_code:'%@'", |
| 402 | + [Device remoteConfigDeviceCountry]]]; |
403 | 403 | ret = [ret stringByAppendingString:[NSString stringWithFormat:@", language_code:'%@'", |
404 | | - FIRRemoteConfigDeviceLocale()]]; |
| 404 | + [Device remoteConfigDeviceLocale]]]; |
405 | 405 | ret = [ret |
406 | 406 | stringByAppendingString:[NSString stringWithFormat:@", platform_version:'%@'", |
407 | 407 | [GULAppEnvironmentUtil systemVersion]]]; |
408 | 408 | ret = [ret stringByAppendingString:[NSString stringWithFormat:@", time_zone:'%@'", |
409 | | - FIRRemoteConfigTimezone()]]; |
| 409 | + [Device remoteConfigTimezone]]]; |
410 | 410 | ret = [ret stringByAppendingString:[NSString stringWithFormat:@", package_name:'%@'", |
411 | 411 | _bundleIdentifier]]; |
412 | 412 | ret = [ret stringByAppendingString:[NSString stringWithFormat:@", app_version:'%@'", |
413 | | - FIRRemoteConfigAppVersion()]]; |
414 | | - ret = [ret stringByAppendingString:[NSString stringWithFormat:@", app_build:'%@'", |
415 | | - FIRRemoteConfigAppBuildVersion()]]; |
| 413 | + [Device remoteConfigAppVersion]]]; |
| 414 | + ret = [ret |
| 415 | + stringByAppendingString:[NSString stringWithFormat:@", app_build:'%@'", |
| 416 | + [Device remoteConfigAppBuildVersion]]]; |
416 | 417 | ret = [ret stringByAppendingString:[NSString stringWithFormat:@", sdk_version:'%@'", |
417 | | - FIRRemoteConfigPodVersion()]]; |
| 418 | + [Device remoteConfigPodVersion]]]; |
418 | 419 |
|
419 | 420 | if (userProperties && userProperties.count > 0) { |
420 | 421 | NSError *error; |
|
0 commit comments