From 59f1681983421eab3db3a233e5475162ea040c02 Mon Sep 17 00:00:00 2001 From: Jack Greenlee Date: Thu, 4 Apr 2024 12:26:17 -0400 Subject: [PATCH 1/2] add "app_config" to usercache keys The app config is stored as a document under the key "config/app_ui_config". With this key added, we will now be able to query the usercache for the app config from other parts of the native code. --- res/android/usercachekeys.xml | 1 + res/ios/usercachekeys.plist | 2 ++ 2 files changed, 3 insertions(+) diff --git a/res/android/usercachekeys.xml b/res/android/usercachekeys.xml index 1a833de..4bf3d46 100644 --- a/res/android/usercachekeys.xml +++ b/res/android/usercachekeys.xml @@ -12,5 +12,6 @@ stats/client_time stats/client_nav_event stats/client_error + config/app_ui_config write_ts diff --git a/res/ios/usercachekeys.plist b/res/ios/usercachekeys.plist index 377d0f1..82fb8c3 100644 --- a/res/ios/usercachekeys.plist +++ b/res/ios/usercachekeys.plist @@ -26,6 +26,8 @@ stats/client_nav_event key.usercache.client_error stats/client_error + key.usercache.app_config + config/app_ui_config metadata.usercache.write_ts write_ts From e58d9ff469bbbb455ba66bf9873ed2de5f070a75 Mon Sep 17 00:00:00 2001 From: Jack Greenlee Date: Thu, 4 Apr 2024 12:49:01 -0400 Subject: [PATCH 2/2] use tabs, not spaces, for new app_config key The rest of this file uses tabs, apparently, so I'm just going to match that --- res/ios/usercachekeys.plist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/res/ios/usercachekeys.plist b/res/ios/usercachekeys.plist index 82fb8c3..ed7977d 100644 --- a/res/ios/usercachekeys.plist +++ b/res/ios/usercachekeys.plist @@ -26,8 +26,8 @@ stats/client_nav_event key.usercache.client_error stats/client_error - key.usercache.app_config - config/app_ui_config + key.usercache.app_config + config/app_ui_config metadata.usercache.write_ts write_ts