From 75d455ae14088a00a80f16b5dc54680a489a89c0 Mon Sep 17 00:00:00 2001 From: gewfy Date: Wed, 30 Dec 2020 22:10:52 +0100 Subject: [PATCH] feat(analytics): add support for analytics_auto_collection_enabled in firebase.json (#4730) --- ios_config.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ios_config.sh b/ios_config.sh index 7a02b1291d..31c6f9d715 100755 --- a/ios_config.sh +++ b/ios_config.sh @@ -86,6 +86,14 @@ if [[ ${_SEARCH_RESULT} ]]; then _PLIST_ENTRY_TYPES+=("string") _PLIST_ENTRY_VALUES+=("$_JSON_OUTPUT_BASE64") + # config.analytics_auto_collection_enabled + _ANALYTICS_AUTO_COLLECTION=$(getFirebaseJsonKeyValue "$_JSON_OUTPUT_RAW" "analytics_auto_collection_enabled") + if [[ $_ANALYTICS_AUTO_COLLECTION ]]; then + _PLIST_ENTRY_KEYS+=("FIREBASE_ANALYTICS_COLLECTION_ENABLED") + _PLIST_ENTRY_TYPES+=("bool") + _PLIST_ENTRY_VALUES+=("$(jsonBoolToYesNo "$_ANALYTICS_AUTO_COLLECTION")") + fi + # config.messaging_auto_init_enabled _MESSAGING_AUTO_INIT=$(getFirebaseJsonKeyValue "$_JSON_OUTPUT_RAW" "messaging_auto_init_enabled") if [[ $_MESSAGING_AUTO_INIT ]]; then