Rename FeatureFlags -> RemoteConfig.

This commit is contained in:
Greyson Parrelli
2024-06-12 14:58:39 -04:00
parent ecbea9fd95
commit d698f74d0b
136 changed files with 460 additions and 478 deletions

View File

@@ -6,24 +6,24 @@ import androidx.annotation.NonNull;
import com.annimon.stream.Stream;
import org.thoughtcrime.securesms.util.FeatureFlags;
import org.thoughtcrime.securesms.util.RemoteConfig;
import org.thoughtcrime.securesms.util.Util;
import java.util.Map;
public class LogSectionFeatureFlags implements LogSection {
public class LogSectionRemoteConfig implements LogSection {
@Override
public @NonNull String getTitle() {
return "FEATURE FLAGS";
return "REMOTE CONFIG";
}
@Override
public @NonNull CharSequence getContent(@NonNull Context context) {
StringBuilder out = new StringBuilder();
Map<String, Object> memory = FeatureFlags.getDebugMemoryValues();
Map<String, Object> disk = FeatureFlags.getDebugDiskValues();
Map<String, Object> pending = FeatureFlags.getDebugPendingDiskValues();
Map<String, Object> memory = RemoteConfig.getDebugMemoryValues();
Map<String, Object> disk = RemoteConfig.getDebugDiskValues();
Map<String, Object> pending = RemoteConfig.getDebugPendingDiskValues();
int remoteLength = Stream.of(memory.keySet()).map(String::length).max(Integer::compareTo).orElse(0);
int diskLength = Stream.of(disk.keySet()).map(String::length).max(Integer::compareTo).orElse(0);
int pendingLength = Stream.of(pending.keySet()).map(String::length).max(Integer::compareTo).orElse(0);

View File

@@ -24,7 +24,7 @@ import org.thoughtcrime.securesms.dependencies.AppDependencies;
import org.thoughtcrime.securesms.net.StandardUserAgentInterceptor;
import org.thoughtcrime.securesms.providers.BlobProvider;
import org.thoughtcrime.securesms.push.SignalServiceNetworkAccess;
import org.thoughtcrime.securesms.util.FeatureFlags;
import org.thoughtcrime.securesms.util.RemoteConfig;
import org.signal.core.util.Stopwatch;
import java.io.IOException;
@@ -77,7 +77,7 @@ public class SubmitDebugLogRepository {
add(new LogSectionCapabilities());
add(new LogSectionMemory());
add(new LogSectionLocalMetrics());
add(new LogSectionFeatureFlags());
add(new LogSectionRemoteConfig());
add(new LogSectionPin());
if (Build.VERSION.SDK_INT >= 28) {
add(new LogSectionPower());
@@ -92,7 +92,7 @@ public class SubmitDebugLogRepository {
add(new LogSectionTrace());
add(new LogSectionThreads());
add(new LogSectionThreadDump());
if (FeatureFlags.internalUser()) {
if (RemoteConfig.internalUser()) {
add(new LogSectionSenderKey());
}
add(new LogSectionDatabaseSchema());