Create a build flag in gn extension_safe. When this flag is on, the iOS and macOS embedder will be built without code containing ShareApplication.
This flag is used in gn command while building the engine, eg. ./flutter/tools/gn --no-goma --runtime-mode=debug --unoptimized --ios --extension-safe
This flag only works on iOS and macOS targets
Part of #124287