Skip to content

Static typing for AssetLoader #524

@alexeyinkin

Description

@alexeyinkin

Currently EasyLocalization.assetLoader is dynamic.
It defaults to RootBundleAssetLoader that extends a local AssetLoader class.

easy_localization_loader has its own abstract AssetLoader, and its loaders extend it.

The following change will improve type safety:

  1. Limit EasyLocalization.assetLoader to the local AssetLoader class.
  2. Remove AssetLoader duplicate from easy_localization_loader.
  3. In easy_localization_loader, depend on easy_localization and make all loaders extend its AssetLoader.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions