Countryen
35d7d5f762
Bugfix Issue #1705 (MAUI: 184): Allow null handling for BaseConverterOneWay<TFrom, TTo> ( #1733 )
...
* Fix typo ArgumenException for unit tests
* Add AllowsNullOrDefault handling for BaseConverterOneWay
Fix summary xml doc for ConvertBack of BaseConverterOneWay
* Add BaseConverterOneWay_Tests for new AllowsNullOrDefault
* Implement recommended changes
- Rename test converter to MockConverterOneWay
- Change ArgumentException to ArgumentNullException in BaseConverterOneWay<TFrom, TTo> when disallowing nulls
- Simplify unit test data generation and execution
* Update null check in BaseConverterOneWay<TFrom, TTo>
* Implement recommended changes
- Change check order back to original in BaseConverterOneWay<TFrom, TTo>
- Fix missing first paramName argument for ArgumentNullException in BaseConverterOneWay<TFrom, TTo>
- Refactor BaseConverterOneWay_Tests
* Rename property AllowsNullOrDefault to AllowsNull of BaseConverterOneWay<TFrom, TTo>
* Update IsNullOrEmptyConverter to inherit from BaseConverterOneWay<TFrom, TTo>
* Migrated more converters to base
* Revert compare converter changes
* Fixed unit tests and code review tidy up
* Switch to separate nullable converter base class
* Add null support to BaseConverter
NullableBaseConverter now completes symmetry with NullableBaseConverterOneWay.
Migrate converters to use NullableBaseConverter where possible.
Migrate tests to new approach.
* Remove Null-Forgiving Operator
* Rename converters to start with Base
* Code review improvement
* Add global.json
Ensures .NET 6.0 is the minimum version in use
* `dotnet format`
* Move global.json to root folder
* `dotnet format`
Co-authored-by: Pascal Ried <p.ried@comventure.de>
Co-authored-by: Shaun Lawrence <shaunrlawrence@gmail.com>
Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
2021-12-03 14:37:41 +00:00
Brandon Minnick
d74ab1d633
Enable Nullable ( #1009 )
...
* Enable Nullable on Unit Tests (#1008 )
* Enable Nullability on Xamarin.CommunityToolkit.Markup (#1013 )
* Enable Nullable on Unit Tests
* Enable Nullable on Xamarin.CommunityToolkit.Markup
* Enable Nullability on Xamarin.CommunityToolkit.Sample (#1014 )
* Enable Nullable on Unit Tests
* Enable Nullable on Xamarin.CommunityToolkit.Markup
* Enable Nullable on Xamarin.CommunityToolkit.Sample
* Enable Nullability for Android, GTK, iOS, Tizen, UWP & WPF Sample Projects (#1015 )
* Enable Nullable on Unit Tests
* Enable Nullable on Xamarin.CommunityToolkit.Markup
* Enable Nullable on Xamarin.CommunityToolkit.Sample
* Enable Nullable on Android, GTK, iOS and Tizen Samples
* Enable Nullable for UWP & WPF Sample Projects
* Enable Nullability on Xamarin.CommunityToolkit (#1016 )
* Enable Nullable on Unit Tests
* Enable Nullable on Xamarin.CommunityToolkit.Markup
* Enable Nullable on Xamarin.CommunityToolkit.Sample
* Enable Nullable on Android, GTK, iOS and Tizen Samples
* Enable Nullable for UWP & WPF Sample Projects
* Add Nullability
* Enable Nullable on XamarinCommunityToolkit (#1023 )
* Enable Nullable on Unit Tests
* Enable Nullable on Xamarin.CommunityToolkit.Markup
* Enable Nullable on Xamarin.CommunityToolkit.Sample
* Enable Nullable on Android, GTK, iOS and Tizen Samples
* Enable Nullable for UWP & WPF Sample Projects
* Add Nullability
* Resolve Possible Null References
* Removed Possible Null References
* Update AppResources.Designer.cs
* Handle Nullability
* Updated Nullabiltiy
* Update Converters & Unit Tests
* Resolve MediaSource Unit Tests
* Fix Unit Tests (#1036 )
* Enable Nullable on Unit Tests
* Enable Nullable on Xamarin.CommunityToolkit.Markup
* Enable Nullable on Xamarin.CommunityToolkit.Sample
* Enable Nullable on Android, GTK, iOS and Tizen Samples
* Enable Nullable for UWP & WPF Sample Projects
* Add Nullability
* Resolve Possible Null References
* Removed Possible Null References
* Update AppResources.Designer.cs
* Handle Nullability
* Updated Nullabiltiy
* Update Converters & Unit Tests
* Resolve MediaSource Unit Tests
* Fix VariableMultiValueConverter
* Fixed ImpliedOrderGridBehavior
* Update NumericValidationBehavior.shared.cs
* Resolve Nullable in SideMenuView
* Move <Nullable>enable</Nullable> to Directory.Build.props
* Update Xamarin.CommunityToolkit.Sample.csproj
* Revert Designer.cs
* Update Xamarin.CommunityToolkit.Sample.csproj
* Update ItemSelectedEventArgsConverter_Tests.cs
* Update SearchViewModel.cs
* Update ItemTappedEventArgsConverter_Tests.cs
* Update Xamarin.CommunityToolkit.UnitTests.csproj
* Add Nullability
* Resolve Compiler Warnings
* Ignore Closing square brackets should be spaced correctly
With Nullable enabled, `byte[]?` is now valid, however SA1011 was still generating a warning
* Update src/CommunityToolkit/Xamarin.CommunityToolkit/Behaviors/ImpliedOrderGridBehavior.shared.cs
Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
* Update CameraFragment.android.cs
* Update CameraFragment.android.cs
* Update ImpliedOrderGridBehavior.shared.cs
* Update MaskedBehavior.shared.cs
* Update PopupRenderer.uwp.cs
* Use .NET 5.0
* Update azure-pipelines.yml
* Update azure-pipelines.yml
* Update azure-pipelines.yml
* Add UWP to Release Build
* Update Nullability
* Update Nullablity
* Update TabView.shared.cs
* Update Nullability
* Revert "Update Nullability"
This reverts commit e391b9c654
.
* Resolved Nullable
* Update azure-pipelines.yml
* Revert UWP Build Properties
* Update azure-pipelines.yml
* Update azure-pipelines.yml
* Revert "Update azure-pipelines.yml"
This reverts commit 0842280e36
.
* Update azure-pipelines.yml
* Revert "Revert UWP Build Properties"
This reverts commit 77226bfd18
.
* Update azure-pipelines.yml
* Update azure-pipelines.yml
* Update azure-pipelines.yml
* Update azure-pipelines.yml
* Update azure-pipelines.yml
* Update azure-pipelines.yml
* Revert "Update azure-pipelines.yml"
This reverts commit 4eb36f4126
.
* Update azure-pipelines.yml
* Revert "Update azure-pipelines.yml"
This reverts commit e41a477dc4
.
* Fix ValidationBehavior.ForceValidate and ValidationBehavior.DefaultForceValidateCommand
* Update SelectAllTextEffect.ios.cs
* Remove Nullabilty from LocalizedString.generator
* Update MediaElementRenderer.ios.cs
* Update PopupRenderer.uwp.cs
* Update PopupRenderer.ios.cs
* Update src/CommunityToolkit/Xamarin.CommunityToolkit/Views/Snackbar/Helpers/iOS/SnackbarViews/BaseSnackBarView.ios.cs
Co-authored-by: Maksym Koshovyi <maximkoshevoi61@gmail.com>
* Update TranslateExtension.shared.cs
* Update src/CommunityToolkit/Xamarin.CommunityToolkit/Views/Snackbar/SnackBar.android.cs
Co-authored-by: Maksym Koshovyi <maximkoshevoi61@gmail.com>
* Update Logic
* Fix Failing ICommand Tests
* Update src/CommunityToolkit/Xamarin.CommunityToolkit/Views/Snackbar/SnackBar.tizen.cs
Co-authored-by: Maksym Koshovyi <maximkoshevoi61@gmail.com>
* Throw Faulted Task
* Use Cast instead of Pattern Matching
* Update RangeSlider.shared.cs
* Fix missing semi-colons
* Throw InvalidOperationException in LocalizationResourceManager
* Make TranslateExtension.StringFormat nullable
* Update UserStoppedTypingBehavior.shared.cs
* Update SearchPage.logic.cs
* Update TouchEffectCollectionViewPage.xaml.cs
* Update AppResources.Designer.cs
* Update AppResources.Designer.cs
* Update EnumToBoolConverterViewModel.cs
* Update EnumToBoolConverter_Tests.cs
* Update IntToBoolConverter_Tests.cs
* Update InvertedBoolConverter_Tests.cs
* Update IsNotNullOrEmptyConverter_Tests.cs
* Update MultiConverter_Tests.cs
* Update NotEqualConverter_Tests.cs
* Update TextCaseConverter_Tests.cs
* Update MockPlatformServices.cs
* Update MockPlatformServices.cs
* Update Namespace_Tests.cs
* Update ObservableRangeCollection_Tests.cs
* Update ObservableRangeCollection_Tests.cs
* Use `async Task` instead of `async void`
* Update MultiValidationBehavior.shared.cs
* Update EnumToBoolConverter.shared.cs
* Update EnumToBoolConverter.shared.cs
* Update src/CommunityToolkit/Xamarin.CommunityToolkit/Converters/NotEqualConverter.shared.cs
Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
* Update src/CommunityToolkit/Xamarin.CommunityToolkit/Converters/StateToBooleanConverter.shared.cs
Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
* Update src/CommunityToolkit/Xamarin.CommunityToolkit/Converters/TextCaseConverter.shared.cs
Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
* Update IconTintColorEffectRouter.android.cs
* Update src/CommunityToolkit/Xamarin.CommunityToolkit/Effects/SelectAllText/SelectAllTextEffect.android.cs
Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
* Update SelectAllTextEffect.android.cs
* Update SelectAllTextEffect.ios.cs
* Update PlatformTouchEffect.ios.cs
* Update PlatformTouchEffect.uwp.cs
* Update PlatformTouchEffect.uwp.cs
* Update PlatformTouchEffect.macos.cs
* Update PlatformTouchEffect.uwp.cs
* Update PlatformTouchEffect.uwp.cs
* Ensure nullable results from BindableProperties are still resolved
* Update ImageResourceExtension.shared.cs
* Update BaseCommand.android.cs
* Use protected private constructor for BaseCommand
* Update BadgeView.shared.cs
* Update CameraFragment.android.cs
* Fix Android Media Bugs
* Update async/await
* Update CameraView_Tests.cs
* Update CameraView
* Update UriTypeConverter.shared.cs
* Update PopupRenderer.uwp.cs
* Update PopoverArrowDirection.shared.cs
* Update PopoverArrowDirection.shared.cs
* Update TabView.shared.cs
* Improve AsyncCommand Tests
* Ensure Context is non nullable
* Remove Missing Translations
* Fix async/await in TouchEffect.shared.cs
* Make Easing Nullable
* Update Samples
* Fix Null Exception
* Resolve NullReferenceExceptions
* Make IBadgeAnimation Nullable
* Add ShutterCommandValueCreator null check
* Add Timeout to prevent race conditions from stalling tests
* Unsubscribe Event Handlers for AsyncCommand Tests
* Update azure-pipelines.yml
* For WPF, Use Cross-Platform Implementation for `BaseCommand.IsMainThread` and `BaseCommand.BeginInvokeOnMainThread` (#965 )
* Add Non-WPF Support to .NET Core 3.1
* Update comments
* Merge .NET Standard and WPF Functionality
* Fix Null Reference
* Update ICommand_AsyncValueCommand_Tests.cs
* Add volatile keyword
* Update AsyncValueCommand_Tests.cs
* Remove Timeouts
* Fix Event Unsubscription
* Add .ConfigureAwait(false);
* Run dotnet test serially
* Use SemaphoreSlim to prevent Race Conditions
Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
Co-authored-by: Maksym Koshovyi <maximkoshevoi61@gmail.com>
2021-03-09 08:24:05 -08:00