AddonLibrary has api functions to get addons by variant, not just "production" and "staging" but dev bundles too.
Technical details
Modified get_active_versions to also collect addon versions for dev bundles. Implemented helper methods get_addon_versions_by_variant, get_addons_by_variant and get_addon_by_variant as api functions. Function get_addon_by_variant is also used by get_production_addon and get_staging_addon.
Description of changes
AddonLibrary
has api functions to get addons by variant, not just"production"
and"staging"
but dev bundles too.Technical details
Modified
get_active_versions
to also collect addon versions for dev bundles. Implemented helper methodsget_addon_versions_by_variant
,get_addons_by_variant
andget_addon_by_variant
as api functions. Functionget_addon_by_variant
is also used byget_production_addon
andget_staging_addon
.