Skip to content

Commit

Permalink
Try reduce the ABI breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleibow committed Sep 30, 2022
1 parent 6ac46c1 commit 4f1aca0
Show file tree
Hide file tree
Showing 41 changed files with 722 additions and 256 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ public ActivityIndicatorHandler() : base(Mapper, CommandMapper)

}

public ActivityIndicatorHandler(IPropertyMapper? mapper, CommandMapper? commandMapper = null)
public ActivityIndicatorHandler(IPropertyMapper? mapper)
: base(mapper ?? Mapper, CommandMapper)
{
}

public ActivityIndicatorHandler(IPropertyMapper? mapper, CommandMapper? commandMapper)
: base(mapper ?? Mapper, commandMapper ?? CommandMapper)
{
}
Expand Down
7 changes: 6 additions & 1 deletion src/Core/src/Handlers/Application/ApplicationHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ public ApplicationHandler()
{
}

public ApplicationHandler(IPropertyMapper? mapper, CommandMapper? commandMapper = null)
public ApplicationHandler(IPropertyMapper? mapper)
: base(mapper ?? Mapper, CommandMapper)
{
}

public ApplicationHandler(IPropertyMapper? mapper, CommandMapper? commandMapper)
: base(mapper ?? Mapper, commandMapper ?? CommandMapper)
{
}
Expand Down
9 changes: 7 additions & 2 deletions src/Core/src/Handlers/Border/BorderHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,13 @@ public BorderHandler() : base(Mapper, CommandMapper)

}

public BorderHandler(IPropertyMapper mapper, CommandMapper? commandMapper = null)
: base(mapper, commandMapper ?? CommandMapper)
public BorderHandler(IPropertyMapper? mapper)
: base(mapper ?? Mapper, CommandMapper)
{
}

public BorderHandler(IPropertyMapper? mapper, CommandMapper? commandMapper)
: base(mapper ?? Mapper, commandMapper ?? CommandMapper)
{
}

Expand Down
7 changes: 6 additions & 1 deletion src/Core/src/Handlers/Button/ButtonHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ public ButtonHandler() : base(Mapper, CommandMapper)

}

public ButtonHandler(IPropertyMapper? mapper, CommandMapper? commandMapper = null)
public ButtonHandler(IPropertyMapper? mapper)
: base(mapper ?? Mapper, CommandMapper)
{
}

public ButtonHandler(IPropertyMapper? mapper, CommandMapper? commandMapper)
: base(mapper ?? Mapper, commandMapper ?? CommandMapper)
{
}
Expand Down
7 changes: 6 additions & 1 deletion src/Core/src/Handlers/CheckBox/CheckBoxHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ public CheckBoxHandler() : base(Mapper)

}

public CheckBoxHandler(IPropertyMapper? mapper, CommandMapper? commandMapper = null)
public CheckBoxHandler(IPropertyMapper? mapper)
: base(mapper ?? Mapper, CommandMapper)
{
}

public CheckBoxHandler(IPropertyMapper? mapper, CommandMapper? commandMapper)
: base(mapper ?? Mapper, commandMapper ?? CommandMapper)
{
}
Expand Down
9 changes: 7 additions & 2 deletions src/Core/src/Handlers/ContentView/ContentViewHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,13 @@ public ContentViewHandler() : base(Mapper, CommandMapper)

}

public ContentViewHandler(IPropertyMapper mapper, CommandMapper? commandMapper = null)
: base(mapper, commandMapper ?? CommandMapper)
public ContentViewHandler(IPropertyMapper? mapper)
: base(mapper ?? Mapper, CommandMapper)
{
}

public ContentViewHandler(IPropertyMapper? mapper, CommandMapper? commandMapper)
: base(mapper ?? Mapper, commandMapper ?? CommandMapper)
{
}

Expand Down
7 changes: 6 additions & 1 deletion src/Core/src/Handlers/DatePicker/DatePickerHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ public DatePickerHandler() : base(Mapper)
{
}

public DatePickerHandler(IPropertyMapper? mapper, CommandMapper? commandMapper = null)
public DatePickerHandler(IPropertyMapper? mapper)
: base(mapper ?? Mapper, CommandMapper)
{
}

public DatePickerHandler(IPropertyMapper? mapper, CommandMapper? commandMapper)
: base(mapper ?? Mapper, commandMapper ?? CommandMapper)
{
}
Expand Down
7 changes: 6 additions & 1 deletion src/Core/src/Handlers/Editor/EditorHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ public EditorHandler() : base(Mapper)
{
}

public EditorHandler(IPropertyMapper? mapper, CommandMapper? commandMapper = null)
public EditorHandler(IPropertyMapper? mapper)
: base(mapper ?? Mapper, CommandMapper)
{
}

public EditorHandler(IPropertyMapper? mapper, CommandMapper? commandMapper)
: base(mapper ?? Mapper, commandMapper ?? CommandMapper)
{
}
Expand Down
7 changes: 6 additions & 1 deletion src/Core/src/Handlers/Entry/EntryHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ public EntryHandler() : base(Mapper)
{
}

public EntryHandler(IPropertyMapper? mapper, CommandMapper? commandMapper = null)
public EntryHandler(IPropertyMapper? mapper)
: base(mapper ?? Mapper, CommandMapper)
{
}

public EntryHandler(IPropertyMapper? mapper, CommandMapper? commandMapper)
: base(mapper ?? Mapper, commandMapper ?? CommandMapper)
{
}
Expand Down
7 changes: 6 additions & 1 deletion src/Core/src/Handlers/FlyoutView/FlyoutViewHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ public FlyoutViewHandler() : base(Mapper)
{
}

public FlyoutViewHandler(IPropertyMapper? mapper, CommandMapper? commandMapper = null)
public FlyoutViewHandler(IPropertyMapper? mapper)
: base(mapper ?? Mapper, CommandMapper)
{
}

public FlyoutViewHandler(IPropertyMapper? mapper, CommandMapper? commandMapper)
: base(mapper ?? Mapper, commandMapper ?? CommandMapper)
{
}
Expand Down
7 changes: 6 additions & 1 deletion src/Core/src/Handlers/GraphicsView/GraphicsViewHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ public GraphicsViewHandler() : base(Mapper, CommandMapper)
{
}

public GraphicsViewHandler(IPropertyMapper? mapper, CommandMapper? commandMapper = null)
public GraphicsViewHandler(IPropertyMapper? mapper)
: base(mapper ?? Mapper, CommandMapper)
{
}

public GraphicsViewHandler(IPropertyMapper? mapper, CommandMapper? commandMapper)
: base(mapper ?? Mapper, commandMapper ?? CommandMapper)
{
}
Expand Down
7 changes: 6 additions & 1 deletion src/Core/src/Handlers/Image/ImageHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ public ImageHandler() : base(Mapper)
{
}

public ImageHandler(IPropertyMapper? mapper, CommandMapper? commandMapper = null)
public ImageHandler(IPropertyMapper? mapper)
: base(mapper ?? Mapper, CommandMapper)
{
}

public ImageHandler(IPropertyMapper? mapper, CommandMapper? commandMapper)
: base(mapper ?? Mapper, commandMapper ?? CommandMapper)
{
}
Expand Down
7 changes: 6 additions & 1 deletion src/Core/src/Handlers/ImageButton/ImageButtonHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ public ImageButtonHandler() : base(Mapper)
{
}

public ImageButtonHandler(IPropertyMapper? mapper, CommandMapper? commandMapper = null)
public ImageButtonHandler(IPropertyMapper? mapper)
: base(mapper ?? Mapper, CommandMapper)
{
}

public ImageButtonHandler(IPropertyMapper? mapper, CommandMapper? commandMapper)
: base(mapper ?? Mapper, commandMapper ?? CommandMapper)
{
}
Expand Down
7 changes: 6 additions & 1 deletion src/Core/src/Handlers/IndicatorView/IndicatorViewHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ public IndicatorViewHandler() : base(Mapper)
{
}

public IndicatorViewHandler(IPropertyMapper? mapper, CommandMapper? commandMapper = null)
public IndicatorViewHandler(IPropertyMapper? mapper)
: base(mapper ?? Mapper, CommandMapper)
{
}

public IndicatorViewHandler(IPropertyMapper? mapper, CommandMapper? commandMapper)
: base(mapper ?? Mapper, commandMapper ?? CommandMapper)
{
}
Expand Down
7 changes: 6 additions & 1 deletion src/Core/src/Handlers/Label/LabelHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ public LabelHandler() : base(Mapper)
{
}

public LabelHandler(IPropertyMapper? mapper, CommandMapper? commandMapper = null)
public LabelHandler(IPropertyMapper? mapper)
: base(mapper ?? Mapper, CommandMapper)
{
}

public LabelHandler(IPropertyMapper? mapper, CommandMapper? commandMapper)
: base(mapper ?? Mapper, commandMapper ?? CommandMapper)
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ public NavigationViewHandler() : base(Mapper, CommandMapper)
{
}

public NavigationViewHandler(IPropertyMapper? mapper, CommandMapper? commandMapper = null)
public NavigationViewHandler(IPropertyMapper? mapper)
: base(mapper ?? Mapper, CommandMapper)
{
}

public NavigationViewHandler(IPropertyMapper? mapper, CommandMapper? commandMapper)
: base(mapper ?? Mapper, commandMapper ?? CommandMapper)
{
}
Expand Down
7 changes: 6 additions & 1 deletion src/Core/src/Handlers/Page/PageHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ public PageHandler() : base(Mapper, CommandMapper)
{
}

public PageHandler(IPropertyMapper? mapper, CommandMapper? commandMapper = null)
public PageHandler(IPropertyMapper? mapper)
: base(mapper ?? Mapper, CommandMapper)
{
}

public PageHandler(IPropertyMapper? mapper, CommandMapper? commandMapper)
: base(mapper ?? Mapper, commandMapper ?? CommandMapper)
{
}
Expand Down
7 changes: 6 additions & 1 deletion src/Core/src/Handlers/Picker/PickerHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ public PickerHandler() : base(Mapper, CommandMapper)
{
}

public PickerHandler(IPropertyMapper? mapper, CommandMapper? commandMapper = null)
public PickerHandler(IPropertyMapper? mapper)
: base(mapper ?? Mapper, CommandMapper)
{
}

public PickerHandler(IPropertyMapper? mapper, CommandMapper? commandMapper)
: base(mapper ?? Mapper, commandMapper ?? CommandMapper)
{
}
Expand Down
7 changes: 6 additions & 1 deletion src/Core/src/Handlers/ProgressBar/ProgressBarHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ public ProgressBarHandler() : base(Mapper)
{
}

public ProgressBarHandler(IPropertyMapper? mapper, CommandMapper? commandMapper = null)
public ProgressBarHandler(IPropertyMapper? mapper)
: base(mapper ?? Mapper, CommandMapper)
{
}

public ProgressBarHandler(IPropertyMapper? mapper, CommandMapper? commandMapper)
: base(mapper ?? Mapper, commandMapper ?? CommandMapper)
{
}
Expand Down
7 changes: 6 additions & 1 deletion src/Core/src/Handlers/RadioButton/RadioButtonHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ public RadioButtonHandler() : base(Mapper)
{
}

public RadioButtonHandler(IPropertyMapper? mapper, CommandMapper? commandMapper = null)
public RadioButtonHandler(IPropertyMapper? mapper)
: base(mapper ?? Mapper, CommandMapper)
{
}

public RadioButtonHandler(IPropertyMapper? mapper, CommandMapper? commandMapper)
: base(mapper ?? Mapper, commandMapper ?? CommandMapper)
{
}
Expand Down
7 changes: 6 additions & 1 deletion src/Core/src/Handlers/RefreshView/RefreshViewHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ public RefreshViewHandler() : base(Mapper, CommandMapper)
{
}

public RefreshViewHandler(IPropertyMapper? mapper, CommandMapper? commandMapper = null)
public RefreshViewHandler(IPropertyMapper? mapper)
: base(mapper ?? Mapper, CommandMapper)
{
}

public RefreshViewHandler(IPropertyMapper? mapper, CommandMapper? commandMapper)
: base(mapper ?? Mapper, commandMapper ?? CommandMapper)
{
}
Expand Down
7 changes: 6 additions & 1 deletion src/Core/src/Handlers/ScrollView/ScrollViewHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ public ScrollViewHandler() : base(Mapper, CommandMapper)

}

public ScrollViewHandler(IPropertyMapper? mapper, CommandMapper? commandMapper = null)
public ScrollViewHandler(IPropertyMapper? mapper)
: base(mapper ?? Mapper, CommandMapper)
{
}

public ScrollViewHandler(IPropertyMapper? mapper, CommandMapper? commandMapper)
: base(mapper ?? Mapper, commandMapper ?? CommandMapper)
{
}
Expand Down
7 changes: 6 additions & 1 deletion src/Core/src/Handlers/SearchBar/SearchBarHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@ public SearchBarHandler() : base(Mapper)
{
}

public SearchBarHandler(IPropertyMapper? mapper, CommandMapper? commandMapper = null)
public SearchBarHandler(IPropertyMapper? mapper)
: base(mapper ?? Mapper, CommandMapper)
{
}

public SearchBarHandler(IPropertyMapper? mapper, CommandMapper? commandMapper)
: base(mapper ?? Mapper, commandMapper ?? CommandMapper)
{
}
Expand Down
7 changes: 6 additions & 1 deletion src/Core/src/Handlers/ShapeView/ShapeViewHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ public ShapeViewHandler() : base(Mapper)
{
}

public ShapeViewHandler(IPropertyMapper? mapper, CommandMapper? commandMapper = null)
public ShapeViewHandler(IPropertyMapper? mapper)
: base(mapper ?? Mapper, CommandMapper)
{
}

public ShapeViewHandler(IPropertyMapper? mapper, CommandMapper? commandMapper)
: base(mapper ?? Mapper, commandMapper ?? CommandMapper)
{
}
Expand Down
7 changes: 6 additions & 1 deletion src/Core/src/Handlers/Slider/SliderHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ public SliderHandler() : base(Mapper)
{
}

public SliderHandler(IPropertyMapper? mapper, CommandMapper? commandMapper = null)
public SliderHandler(IPropertyMapper? mapper)
: base(mapper ?? Mapper, CommandMapper)
{
}

public SliderHandler(IPropertyMapper? mapper, CommandMapper? commandMapper)
: base(mapper ?? Mapper, commandMapper ?? CommandMapper)
{
}
Expand Down
7 changes: 6 additions & 1 deletion src/Core/src/Handlers/Stepper/StepperHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ public StepperHandler() : base(Mapper)
{
}

public StepperHandler(IPropertyMapper? mapper, CommandMapper? commandMapper = null)
public StepperHandler(IPropertyMapper? mapper)
: base(mapper ?? Mapper, CommandMapper)
{
}

public StepperHandler(IPropertyMapper? mapper, CommandMapper? commandMapper)
: base(mapper ?? Mapper, commandMapper ?? CommandMapper)
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,13 @@ public SwipeItemMenuItemHandler() : base(Mapper, CommandMapper)

}

protected SwipeItemMenuItemHandler(IPropertyMapper mapper, CommandMapper? commandMapper = null)
: base(mapper, commandMapper ?? CommandMapper)
protected SwipeItemMenuItemHandler(IPropertyMapper? mapper)
: base(mapper ?? Mapper, CommandMapper)
{
}

protected SwipeItemMenuItemHandler(IPropertyMapper? mapper, CommandMapper? commandMapper)
: base(mapper ?? Mapper, commandMapper ?? CommandMapper)
{
}

Expand Down
9 changes: 7 additions & 2 deletions src/Core/src/Handlers/SwipeItemView/SwipeItemViewHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,13 @@ public SwipeItemViewHandler() : base(Mapper, CommandMapper)
{
}

protected SwipeItemViewHandler(IPropertyMapper mapper, CommandMapper? commandMapper = null)
: base(mapper, commandMapper ?? CommandMapper)
protected SwipeItemViewHandler(IPropertyMapper? mapper)
: base(mapper ?? Mapper, CommandMapper)
{
}

protected SwipeItemViewHandler(IPropertyMapper? mapper, CommandMapper? commandMapper)
: base(mapper ?? Mapper, commandMapper ?? CommandMapper)
{
}

Expand Down
Loading

0 comments on commit 4f1aca0

Please sign in to comment.