Skip to content

Commit

Permalink
Merge branch 'release/9.0.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheesebaron committed Jan 12, 2023
2 parents 4e85893 + 459fd01 commit 0a5e623
Show file tree
Hide file tree
Showing 121 changed files with 680 additions and 690 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,17 @@
# Changelog

## [9.0.6](https://github.com/MvvmCross/MvvmCross/tree/9.0.6) (2023-01-12)

[Full Changelog](https://github.com/MvvmCross/MvvmCross/compare/9.0.5...9.0.6)

**Fixed bugs:**

- Fix nullable warnings with a lot of Mvx.IoCProvider usages [\#4543](https://github.com/MvvmCross/MvvmCross/pull/4543) ([Cheesebaron](https://github.com/Cheesebaron))

**Merged pull requests:**

- Bump Microsoft.NET.Test.Sdk from 17.4.0 to 17.4.1 [\#4535](https://github.com/MvvmCross/MvvmCross/pull/4535) ([dependabot[bot]](https://github.com/apps/dependabot))

## [9.0.5](https://github.com/MvvmCross/MvvmCross/tree/9.0.5) (2023-01-09)

[Full Changelog](https://github.com/MvvmCross/MvvmCross/compare/9.0.4...9.0.5)
Expand Down
Expand Up @@ -60,21 +60,21 @@ public static IMvxTemplateSelector BuildItemTemplateSelector(Context context, IA
"Sorry but type with class name: {TemplateSelectorClassName} does not exist." +
"Make sure you have provided full Type name: namespace + class name, AssemblyName." +
"Example (check Example.Droid sample!): Example.Droid.Common.TemplateSelectors.MultiItemTemplateModelTemplateSelector, Example.Droid";
MvxAndroidLog.Instance.Log(LogLevel.Error, message, templateSelectorClassName);
MvxAndroidLog.Instance?.Log(LogLevel.Error, message, templateSelectorClassName);
throw new InvalidOperationException(message);
}

if (!typeof(IMvxTemplateSelector).IsAssignableFrom(type))
{
const string message = "Sorry but type: {Type} does not implement {TemplateSelectorType} interface.";
MvxAndroidLog.Instance.Log(LogLevel.Error, message, type, nameof(IMvxTemplateSelector));
MvxAndroidLog.Instance?.Log(LogLevel.Error, message, type, nameof(IMvxTemplateSelector));
throw new InvalidOperationException(message);
}

if (type.IsAbstract)
{
const string message = "Sorry can not instatiate {TemplateSelectorType} as provided type: {Type} is abstract/interface.";
MvxAndroidLog.Instance.Log(LogLevel.Error, message, nameof(IMvxTemplateSelector), type);
MvxAndroidLog.Instance?.Log(LogLevel.Error, message, nameof(IMvxTemplateSelector), type);
throw new InvalidOperationException(message);
}

Expand Down

0 comments on commit 0a5e623

Please sign in to comment.