What is the proper (or “most recommended”) way to disable Packages for specific build targets?
The best example I have is disabling Google Play Services-dependent packages (looking at you, Firebase!) when building for UDP or Amazon AppStore
Currently, for Firebase Remote Config, we rename the DLL and its meta, adding a “.disabled” extension to them. Yes, we rename the files in the PackageCache directory…
Just being able to disable a few package files (without changing the manifest) would be very nice.
doesn’t work with native plugins (.so, .framework, native .dll…)
doesn’t work with scripts
doesn’t work with non-code assets
basically, doesn’t work with anything but managed DLLs in packages
This API is obscure, hard to use, confusingly documented. It was intended for a very specific purpose and will probably be removed in the future, but I would expect that this won’t be before it goes through a proper deprecation flow (Obsolete warning), and is replaced with a better set of APIs to cover use cases such as yours.