Skip to content

Commit

Permalink
iOS pipeline fix
Browse files Browse the repository at this point in the history
  • Loading branch information
akrol95 committed Jan 14, 2025
1 parent 11bd705 commit 057f46f
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 15 deletions.
2 changes: 1 addition & 1 deletion BMM.UI.iOS/Application/TableViewCell/Base/UISwipeMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class UISwipeMenu : UIView

private readonly IList<SwipeMenuBase> _items = new List<SwipeMenuBase>();

public UISwipeMenu(SwipePlacement placement, SwipeableViewCell swipeableViewCell, float itemWidth = 60)
public UISwipeMenu(SwipePlacement placement, SwipeableViewCell swipeableViewCell, float itemWidth = 72)
{
_swipeableViewCell = swipeableViewCell;
ItemWidth = itemWidth;
Expand Down
28 changes: 17 additions & 11 deletions BMM.UI.iOS/Application/TableViewCell/TrackTableViewCell.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,16 +181,6 @@ private SwipeMenuBase CreatePlayNextItem(MvxFluentBindingDescriptionSet<TrackTab
return item;
}

private static void SetDefaultSwipeItemStyle(SwipeMenuSimpleItem item)
{
var textTheme = AppTheme.Subtitle2Label1;
textTheme.MinimumFontSize = 10;

item.LabelTitle.ApplyTextTheme(textTheme);
item.LabelTitle.TextColor = AppColors.GlobalBlackTwoColor;
item.ViewBackground.BackgroundColor = AppColors.TintColor;
}

private static SwipeMenuSimpleItem CreateDeleteFromQueueItem(
MvxFluentBindingDescriptionSet<TrackTableViewCell, TrackPO> set)
{
Expand All @@ -199,7 +189,8 @@ private static SwipeMenuSimpleItem CreateDeleteFromQueueItem(
TreatAsSingleAction = true
};

item.LabelTitle.ApplyTextTheme(AppTheme.Subtitle2Label1);
SetLabelStyle(item);
item.LabelTitle.Lines = 1;
item.LabelTitle.TextColor = AppColors.GlobalWhiteOneColor;
item.ViewBackground.BackgroundColor = AppColors.RadioColor;

Expand All @@ -216,5 +207,20 @@ private static SwipeMenuSimpleItem CreateDeleteFromQueueItem(

return item;
}

private static void SetDefaultSwipeItemStyle(SwipeMenuSimpleItem item)
{
SetLabelStyle(item);
item.LabelTitle.TextColor = AppColors.GlobalBlackTwoColor;
item.ViewBackground.BackgroundColor = AppColors.TintColor;
}

private static void SetLabelStyle(SwipeMenuSimpleItem item)
{
var textTheme = AppTheme.Subtitle2Label1;
textTheme.MinimumFontSize = 10;

item.LabelTitle.ApplyTextTheme(textTheme);
}
}
}
14 changes: 11 additions & 3 deletions azure-pipelines-ios.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pool:
name: Azure Pipelines
vmImage: 'macOS-13'
vmImage: 'macOS-14'
demands:
- xcode
- msbuild
Expand All @@ -14,18 +14,26 @@ trigger:
- hotfix/*

variables:
- name: xcode_version
value: '16.1'
- name: branchName
value: $[ replace(variables['Build.SourceBranch'], 'refs/heads/', '') ]
- group: 'AppleCertificate'

steps:
- bash: |
dotnet workload install ios --version 8.0.402
dotnet workload install ios
displayName: 'Install iOS workload'
- bash: |
dotnet workload install maui-ios --version 8.0.402
dotnet workload install maui-ios
displayName: 'Install MAUI iOS workload'
- script: |
echo "Setting up Xcode $XCODE_VERSION"
sudo xcode-select --switch /Applications/Xcode_${XCODE_VERSION}.app/Contents/Developer
xcodebuild -version
displayName: 'Select and verify Xcode version'
- task: DotNetCoreCLI@2
displayName: 'Run Unit Tests'
Expand Down

0 comments on commit 057f46f

Please sign in to comment.