diff --git a/mobile/envoy b/mobile/envoy index e4ae2259add5..e711d101ece6 160000 --- a/mobile/envoy +++ b/mobile/envoy @@ -1 +1 @@ -Subproject commit e4ae2259add5a327c4d67de18a82df5d78a801b4 +Subproject commit e711d101ece6253596c154352ef0535817148b13 diff --git a/mobile/envoy_build_config/BUILD b/mobile/envoy_build_config/BUILD index 9d540e6ea3c8..9a1646fdd3cd 100644 --- a/mobile/envoy_build_config/BUILD +++ b/mobile/envoy_build_config/BUILD @@ -15,8 +15,9 @@ envoy_cc_library( "extension_registry_platform_additions", "@envoy//source/common/network:socket_lib", "@envoy//source/common/router:upstream_codec_filter_lib", - "@envoy//source/extensions/clusters/logical_dns:logical_dns_cluster_lib", "@envoy//source/extensions/clusters/dynamic_forward_proxy:cluster", + "@envoy//source/extensions/clusters/logical_dns:logical_dns_cluster_lib", + "@envoy//source/extensions/clusters/static:static_cluster_lib", "@envoy//source/extensions/compression/brotli/decompressor:config", "@envoy//source/extensions/compression/gzip/decompressor:config", "@envoy//source/extensions/filters/http/alternate_protocols_cache:config", diff --git a/mobile/envoy_build_config/extension_registry.cc b/mobile/envoy_build_config/extension_registry.cc index 316f608b93c0..f214129b5f2d 100644 --- a/mobile/envoy_build_config/extension_registry.cc +++ b/mobile/envoy_build_config/extension_registry.cc @@ -5,6 +5,7 @@ #include "source/common/router/upstream_codec_filter.h" #include "source/extensions/clusters/dynamic_forward_proxy/cluster.h" #include "source/extensions/clusters/logical_dns/logical_dns_cluster.h" +#include "source/extensions/clusters/static/static_cluster.h" #include "source/extensions/compression/brotli/decompressor/config.h" #include "source/extensions/compression/gzip/decompressor/config.h" #include "source/extensions/filters/http/alternate_protocols_cache/config.h" @@ -35,6 +36,7 @@ namespace Envoy { void ExtensionRegistry::registerFactories() { + Envoy::Upstream::forceRegisterStaticClusterFactory(); Envoy::Extensions::Clusters::DynamicForwardProxy::forceRegisterClusterFactory(); Envoy::Extensions::Compression::Brotli::Decompressor:: forceRegisterBrotliDecompressorLibraryFactory(); diff --git a/mobile/envoy_build_config/extensions_build_config.bzl b/mobile/envoy_build_config/extensions_build_config.bzl index 19a1ba6cbe19..3b8e6cd4fa88 100644 --- a/mobile/envoy_build_config/extensions_build_config.bzl +++ b/mobile/envoy_build_config/extensions_build_config.bzl @@ -5,6 +5,7 @@ EXTENSION_PACKAGE_VISIBILITY = ["//visibility:public"] EXTENSIONS = { "envoy.clusters.dynamic_forward_proxy": "//source/extensions/clusters/dynamic_forward_proxy:cluster", "envoy.clusters.logical_dns": "//source/extensions/clusters/logical_dns:logical_dns_cluster_lib", + "envoy.clusters.static": "//source/extensions/clusters/static:static_cluster_lib", "envoy.filters.connection_pools.http.generic": "//source/extensions/upstreams/http/generic:config", "envoy.filters.http.alternate_protocols_cache": "//source/extensions/filters/http/alternate_protocols_cache:config", "envoy.filters.http.assertion": "@envoy_mobile//library/common/extensions/filters/http/assertion:config", diff --git a/mobile/library/common/extensions/key_value/platform/config.cc b/mobile/library/common/extensions/key_value/platform/config.cc index a94a74c47a93..49a82d273996 100644 --- a/mobile/library/common/extensions/key_value/platform/config.cc +++ b/mobile/library/common/extensions/key_value/platform/config.cc @@ -62,8 +62,8 @@ PlatformKeyValueStore::PlatformKeyValueStore(Event::Dispatcher& dispatcher, void PlatformKeyValueStore::flush() { std::string output; - for (const auto& [key, value] : store_) { - std::string string_value = value.first; + for (const auto& [key, value_with_ttl] : store()) { + std::string string_value = value_with_ttl.value_; absl::StrAppend(&output, key.length(), "\n", key, string_value.length(), "\n", string_value); } platform_interface_.save(key_, output); diff --git a/mobile/library/common/jni/jni_interface.cc b/mobile/library/common/jni/jni_interface.cc index fe503d35dec0..cc9942f22459 100644 --- a/mobile/library/common/jni/jni_interface.cc +++ b/mobile/library/common/jni/jni_interface.cc @@ -1,5 +1,3 @@ -#include - #include "library/common/api/c_types.h" #include "library/common/data/utility.h" #include "library/common/extensions/filters/http/platform_bridge/c_types.h"