Skip to content

Commit

Permalink
Migrate to NET8 for the app to not horribly crash when targeting iOS17.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Difegue committed Apr 17, 2024
1 parent 459e9d5 commit bc0481b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions Sources/Stylophone.iOS/Helpers/TrackTableViewDataSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,14 @@ public void MoveRow(UITableView tableView, NSIndexPath sourceIndexPath, NSIndexP

#region Delegate

public override bool ShouldBeginMultipleSelectionInteraction(UITableView tableView, NSIndexPath indexPath)
=> _canReorder;

public override void DidBeginMultipleSelectionInteraction(UITableView tableView, NSIndexPath indexPath)
{
tableView.SetEditing(true, true);
}

// If multiselect isn't enabled, this will show a delete icon on the left side of the cells
public override UITableViewCellEditingStyle EditingStyleForRow(UITableView tableView, NSIndexPath indexPath)
=> UITableViewCellEditingStyle.Delete;
Expand Down
6 changes: 3 additions & 3 deletions Sources/Stylophone.iOS/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
<string>zh</string>
</array>
<key>CFBundleShortVersionString</key>
<string>2.6.1</string>
<string>2.6.0</string>
<key>CFBundleVersion</key>
<string>2.6.1</string>
<string>2.6.0.2</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<false/>
<key>MinimumOSVersion</key>
<string>16.0</string>
<key>UIBackgroundModes</key>
Expand Down
2 changes: 1 addition & 1 deletion Sources/Stylophone.iOS/Stylophone.iOS.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net7.0-ios;net7.0-maccatalyst</TargetFrameworks>
<TargetFrameworks>net8.0-maccatalyst;net8.0-ios</TargetFrameworks>
<OutputType>Exe</OutputType>
<Nullable>enable</Nullable>
<ImplicitUsings>true</ImplicitUsings>
Expand Down

0 comments on commit bc0481b

Please sign in to comment.