Skip to content

Commit

Permalink
feat!: rename project
Browse files Browse the repository at this point in the history
  • Loading branch information
nanikit committed Apr 15, 2022
1 parent 0766734 commit 587ed81
Show file tree
Hide file tree
Showing 30 changed files with 63 additions and 63 deletions.
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[submodule "BetterSongList"]
path = BetterSongList
url = https://github.com/kinsi55/BeatSaber_BetterSongList.git
[submodule "BetterSongList.LastPlayedSort.Test/assert.xunit"]
path = BetterSongList.LastPlayedSort.Test/assert.xunit
[submodule "BetterSort.LastPlayed.Test/assert.xunit"]
path = BetterSort.LastPlayed.Test/assert.xunit
url = https://github.com/xunit/assert.xunit.git
8 changes: 0 additions & 8 deletions BetterSongList.LastPlayedSort.Test/Mocks/FixedClock.cs

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<OutputType>Library</OutputType>
<LangVersion>9</LangVersion>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<RootNamespace>BetterSongList.LastPlayedSort.Test</RootNamespace>
<RootNamespace>BetterSort.LastPlayed.Test</RootNamespace>
<LocalRefsDir Condition="Exists('..\Refs')">..\Refs</LocalRefsDir>
<BeatSaberDir>$(LocalRefsDir)</BeatSaberDir>
<AppOutputBase>$(MSBuildProjectDirectory)\</AppOutputBase>
<Nullable>enable</Nullable>
<Product>BetterSongList.LastPlayedSort.Test</Product>
<Product>BetterSort.LastPlayed.Test</Product>
<Company />
<Authors>nanikit</Authors>
<Copyright>nanikit (c) 2022</Copyright>
Expand Down Expand Up @@ -76,23 +76,23 @@
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\BetterSongList.LastPlayedSort\BetterSongList.LastPlayedSort.csproj" />
<ProjectReference Include="..\BetterSort.LastPlayed\BetterSort.LastPlayed.csproj" />
</ItemGroup>

<PropertyGroup>
<ImportBSMTTargets>True</ImportBSMTTargets>
<BSMTProjectType>BSIPA</BSMTProjectType>
<GenerateManifest>true</GenerateManifest>
<DisableZipRelease>True</DisableZipRelease>
<PluginId>BetterSongList.LastPlayedSort.Test</PluginId>
<PluginName>BetterSongList.LastPlayedSort.Test</PluginName>
<PluginId>BetterSort.LastPlayed.Test</PluginId>
<PluginName>BetterSort.LastPlayed.Test</PluginName>
<Authors>nanikit</Authors>
<Version>0.0.1</Version>
<GameVersion>1.19.1</GameVersion>
<Description>Assembly for mod test</Description>
</PropertyGroup>
<ItemGroup>
<DependsOn Include="BSIPA" Version="^4.2.0" />
<DependsOn Include="BetterSongList.LastPlayedSort" Version="^0.0.1" />
<DependsOn Include="BetterSort.LastPlayed" Version="^0.0.1" />
</ItemGroup>
</Project>
8 changes: 8 additions & 0 deletions BetterSort.LastPlayed.Test/Mocks/FixedClock.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace BetterSort.LastPlayed.Test.Mocks {
using BetterSort.LastPlayed.External;
using System;

internal class FixedClock : IClock {
public DateTime Now { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace BetterSongList.LastPlayedSort.Test.Mocks {
using BetterSongList.LastPlayedSort.External;
namespace BetterSort.LastPlayed.Test.Mocks {
using BetterSort.LastPlayed.External;
using System;
using System.Collections.Generic;
using System.Linq;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace BetterSongList.LastPlayedSort.Test.Mocks {
using BetterSongList.LastPlayedSort.External;
namespace BetterSort.LastPlayed.Test.Mocks {
using BetterSort.LastPlayed.External;
using System;

internal class MockEventSource : IPlayEventSource {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace BetterSongList.LastPlayedSort.Test {
using BetterSongList.LastPlayedSort.Core;
namespace BetterSort.LastPlayed.Test {
using BetterSort.LastPlayed.Core;

class MockPreview : ILevelPreview {
public string LevelId => _id;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BetterSongList.LastPlayedSort.Test {
namespace BetterSort.LastPlayed.Test {
using IPA;
using Nanikit.Test;
using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
namespace BetterSongList.LastPlayedSort.Test {
using BetterSongList.LastPlayedSort.Compatibility;
using BetterSongList.LastPlayedSort.Core;
using BetterSongList.LastPlayedSort.Sorter;
using BetterSongList.LastPlayedSort.Test.Mocks;
namespace BetterSort.LastPlayed.Test {
using BetterSort.LastPlayed.Compatibility;
using BetterSort.LastPlayed.Core;
using BetterSort.LastPlayed.Sorter;
using BetterSort.LastPlayed.Test.Mocks;
using Nanikit.Test;
using System;
using System.Collections.Generic;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ VisualStudioVersion = 17.0.32112.339
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BetterSongList", "BetterSongList\BetterSongList.csproj", "{6752527E-B01D-4457-8ADE-262B2A6A1125}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BetterSongList.LastPlayedSort", "BetterSongList.LastPlayedSort\BetterSongList.LastPlayedSort.csproj", "{14269CDE-DEC8-458D-84A3-ACD5A768A04C}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BetterSort.LastPlayed", "BetterSort.LastPlayed\BetterSort.LastPlayed.csproj", "{14269CDE-DEC8-458D-84A3-ACD5A768A04C}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BetterSongList.LastPlayedSort.Test", "BetterSongList.LastPlayedSort.Test\BetterSongList.LastPlayedSort.Test.csproj", "{248F8761-0D9B-41BB-BC89-E2331D744BC0}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BetterSort.LastPlayed.Test", "BetterSort.LastPlayed.Test\BetterSort.LastPlayed.Test.csproj", "{248F8761-0D9B-41BB-BC89-E2331D744BC0}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{24A6A13D-6539-4783-9F65-2A42848533D3}"
ProjectSection(SolutionItems) = preProject
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<OutputType>Library</OutputType>
<LangVersion>9</LangVersion>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<RootNamespace>BetterSongList.LastPlayedSort</RootNamespace>
<RootNamespace>BetterSort.LastPlayed</RootNamespace>
<LocalRefsDir Condition="Exists('..\Refs')">..\Refs</LocalRefsDir>
<BeatSaberDir>$(LocalRefsDir)</BeatSaberDir>
<AppOutputBase>$(MSBuildProjectDirectory)\</AppOutputBase>
<Nullable>enable</Nullable>
<Product>BetterSongList.LastPlayedSort</Product>
<Product>BetterSort.LastPlayed</Product>
<Company />
<Authors>nanikit</Authors>
<Copyright>nanikit (c) 2022</Copyright>
Expand Down Expand Up @@ -97,8 +97,8 @@
<ImportBSMTTargets>True</ImportBSMTTargets>
<BSMTProjectType>BSIPA</BSMTProjectType>
<GenerateManifest>true</GenerateManifest>
<PluginId>BetterSongList.LastPlayedSort</PluginId>
<PluginName>BetterSongList.LastPlayedSort</PluginName>
<PluginId>BetterSort.LastPlayed</PluginId>
<PluginName>BetterSort.LastPlayed</PluginName>
<Authors>nanikit</Authors>
<Version>1.0.1</Version>
<GameVersion>1.21.0</GameVersion>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace BetterSongList.LastPlayedSort.Compatibility {
namespace BetterSort.LastPlayed.Compatibility {
using BetterSongList.Interfaces;
using BetterSongList.LastPlayedSort.Core;
using BetterSort.LastPlayed.Core;
using BetterSongList.SortModels;
using System.Collections.Generic;
using System.Linq;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#nullable enable
namespace BetterSongList.LastPlayedSort.Core {
namespace BetterSort.LastPlayed.Core {
public interface ILevelPreview {
string LevelId { get; }
string SongName { get; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BetterSongList.LastPlayedSort.Core {
namespace BetterSort.LastPlayed.Core {
using System;
using System.Collections.Generic;
using System.Threading;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BetterSongList.LastPlayedSort.Core {
namespace BetterSort.LastPlayed.Core {
using System.Collections.Generic;

public interface ISortFilterResult {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BetterSongList.LastPlayedSort.External {
namespace BetterSort.LastPlayed.External {
using BS_Utils.Utilities;
using System;
using IPALogger = IPA.Logging.Logger;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace BetterSongList.LastPlayedSort.External {
namespace BetterSort.LastPlayed.External {
public interface IClock {
DateTime Now { get; }
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace BetterSongList.LastPlayedSort.External {
using BetterSongList.LastPlayedSort.Sorter;
namespace BetterSort.LastPlayed.External {
using BetterSort.LastPlayed.Sorter;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BetterSongList.LastPlayedSort.External {
namespace BetterSort.LastPlayed.External {
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace BetterSongList.LastPlayedSort {
using BetterSongList.LastPlayedSort.Compatibility;
using BetterSongList.LastPlayedSort.External;
using BetterSongList.LastPlayedSort.Sorter;
namespace BetterSort.LastPlayed {
using BetterSort.LastPlayed.Compatibility;
using BetterSort.LastPlayed.External;
using BetterSort.LastPlayed.Sorter;
using IPA;
using Zenject;
using IPALogger = IPA.Logging.Logger;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace BetterSongList.LastPlayedSort.Sorter {
using BetterSongList.LastPlayedSort.Core;
namespace BetterSort.LastPlayed.Sorter {
using BetterSort.LastPlayed.Core;
using System;
using System.Collections.Generic;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace BetterSongList.LastPlayedSort.Sorter {
using BetterSongList.LastPlayedSort.Core;
namespace BetterSort.LastPlayed.Sorter {
using BetterSort.LastPlayed.Core;
using System;
using System.Collections.Generic;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace BetterSongList.LastPlayedSort.Sorter {
using BetterSongList.LastPlayedSort.External;
using BetterSongList.LastPlayedSort.Core;
namespace BetterSort.LastPlayed.Sorter {
using BetterSort.LastPlayed.External;
using BetterSort.LastPlayed.Core;
using System;
using System.Collections.Generic;
using System.Linq;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
namespace BetterSongList.LastPlayedSort.Sorter {
using BetterSongList.LastPlayedSort.Compatibility;
using BetterSongList.LastPlayedSort.External;
namespace BetterSort.LastPlayed.Sorter {
using BetterSongList;
using BetterSort.LastPlayed.Compatibility;
using BetterSort.LastPlayed.External;
using System;
using System.Collections.Generic;
using System.Linq;
using IPALogger = IPA.Logging.Logger;

public class SorterEnvironment {
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BetterSongList.LastPlayedSort
# BetterSort.LastPlayed

<img src="docs/preview.webp" alt="preview" width="300"/>

Expand All @@ -8,7 +8,7 @@ Beat saber mod adding last played date sort feature to [BetterSongList](https://

Use [mod assistant](https://github.com/Assistant/ModAssistant/releases/latest). I'll support that.

If it's not available or new features is added later, download [the latest release](https://github.com/nanikit/BetterSongList.LastPlayedSort/releases/latest).
If it's not available or new features is added later, download [the latest release](https://github.com/nanikit/BetterSort.LastPlayed/releases/latest).

## Usage

Expand All @@ -17,7 +17,7 @@ Just click left-bottom sort button in song select scene, and select 'Last played
## Q&A

- Q: Just installed, it doesn't sort at all.<br />
A: After installation there's no play history. So play first.
A: After installation there's no play history. So play first.

- Q: Reverse sort not work.<br />
A: I didn't support it intentionally. Currently BetterSongList doesn't remember sort direction of each sorter, it confused me.
A: I didn't support it intentionally. Currently BetterSongList doesn't remember sort direction of each sorter, it confused me.

0 comments on commit 587ed81

Please sign in to comment.