Skip to content

Commit d8bdc5d

Browse files
committed
As reported in #7340, RemoteConfig interactions are removed from AppStartTrace (RemoteConfig is no longer supported, thus is safe to delete).
1 parent e2f5b26 commit d8bdc5d

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

firebase-perf/src/main/java/com/google/firebase/perf/config/ConfigResolver.java

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -822,33 +822,16 @@ public double getFragmentSamplingRate() {
822822

823823
/** Returns if _experiment_app_start_ttid should be captured. */
824824
public boolean getIsExperimentTTIDEnabled() {
825-
// Order of precedence is:
826-
// 1. If the value exists in Android Manifest, return this value.
827-
// 2. If the value exists through Firebase Remote Config, cache and return this value.
828-
// 3. If the value exists in device cache, return this value.
829-
// 4. Otherwise, return default value.
830825
ExperimentTTID config = ExperimentTTID.getInstance();
831826

832-
// 1. Reads value in Android Manifest (it is set by developers during build time).
827+
// Reads value in Android Manifest (it is set by developers during build time).
833828
Optional<Boolean> metadataValue = getMetadataBoolean(config);
834829
if (metadataValue.isAvailable()) {
835830
return metadataValue.get();
836831
}
837832

838-
// 2. Reads value from Firebase Remote Config, saves this value in cache layer if valid.
839-
Optional<Boolean> rcValue = getRemoteConfigBoolean(config);
840-
if (rcValue.isAvailable()) {
841-
deviceCacheManager.setValue(config.getDeviceCacheFlag(), rcValue.get());
842-
return rcValue.get();
843-
}
844833

845-
// 3. Reads value from cache layer.
846-
Optional<Boolean> deviceCacheValue = getDeviceCacheBoolean(config);
847-
if (deviceCacheValue.isAvailable()) {
848-
return deviceCacheValue.get();
849-
}
850-
851-
// 4. Returns default value if there is no valid value from above approaches.
834+
// Returns default value if there is no valid value from above approaches.
852835
return config.getDefault();
853836
}
854837

0 commit comments

Comments
 (0)