Non-descriptive commit

This commit is contained in:
amazing-username
2019-05-26 19:27:38 -04:00
parent 7fc0743316
commit b22f97346f
15 changed files with 2261 additions and 1925 deletions
+2
View File
@@ -7,6 +7,8 @@ using Android.Views;
using Android.Widget;
using Android.OS;
using MediaManager;
namespace Mear.Droid
{
[Activity(Label = "Mear", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
+3
View File
@@ -52,6 +52,9 @@
<Reference Include="System.Numerics.Vectors" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Plugin.MediaManager">
<Version>0.6.1</Version>
</PackageReference>
<PackageReference Include="Xamarin.Forms" Version="4.0.0.425677" />
<PackageReference Include="Xamarin.Android.Support.Design" Version="28.0.0.1" />
<PackageReference Include="Xamarin.Android.Support.v7.AppCompat" Version="28.0.0.1" />
File diff suppressed because it is too large Load Diff
+3 -1
View File
@@ -2,6 +2,8 @@
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
using Mear.Views;
namespace Mear
{
public partial class App : Application
@@ -10,7 +12,7 @@ namespace Mear
{
InitializeComponent();
MainPage = new MainPage();
MainPage = new MusicLibrary();
}
protected override void OnStart()
+26
View File
@@ -12,7 +12,33 @@
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
<PackageReference Include="Plugin.MediaManager" Version="0.6.1" />
<PackageReference Include="Xamarin.Forms" Version="4.0.0.425677" />
<PackageReference Include="Xamarin.Essentials" Version="1.1.0" />
</ItemGroup>
<ItemGroup>
<Folder Include="ViewModel\" />
</ItemGroup>
<ItemGroup>
<Compile Update="Views\ArtistView.xaml.cs">
<DependentUpon>ArtistView.xaml</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Views\AlbumView.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
</EmbeddedResource>
<EmbeddedResource Update="Views\ArtistView.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
</EmbeddedResource>
<EmbeddedResource Update="Views\MusicLibrary.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
</EmbeddedResource>
<EmbeddedResource Update="Views\SongView.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
</EmbeddedResource>
</ItemGroup>
</Project>
+13
View File
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Mear.Models
{
public class PlayCount
{
public int? Id { get; set; }
public int? PlayCounter { get; set; }
public int? SongId { get; set; }
}
}
+2 -2
View File
@@ -17,11 +17,11 @@ namespace Mear.Models
[JsonProperty("artist")]
public string Artist { get; set; }
[JsonProperty("year")]
public int Year { get; set; }
public int? Year { get; set; }
[JsonProperty("genre")]
public string Genre { get; set; }
[JsonProperty("duration")]
public int Duration { get; set; }
public int? Duration { get; set; }
[JsonProperty("filename")]
public string Filename { get; set; }
[JsonProperty("song_path")]
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Class="Mear.Views.AlbumView">
<ContentView.Content>
<StackLayout>
<Label Text="Album view!" />
</StackLayout>
</ContentView.Content>
</ContentView>
+20
View File
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace Mear.Views
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class AlbumView : ContentView
{
public AlbumView()
{
InitializeComponent();
}
}
}
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Class="Mear.Views.ArtistView">
<ContentView.Content>
<StackLayout>
<Label Text="Artist view!" />
</StackLayout>
</ContentView.Content>
</ContentView>
+20
View File
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace Mear.Views
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class ArtistView : ContentView
{
public ArtistView()
{
InitializeComponent();
}
}
}
+53
View File
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8" ?>
<TabbedPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
xmlns:views="clr-namespace:Mear.Views"
x:Class="Mear.Views.MusicLibrary">
<!--Pages can be added as references or inline-->
<!--
<ContentPage Title="Songs" />
<ContentPage Title="Albums" />
<ContentPage Title="Artists" />
-->
<TabbedPage.Children>
<!--
<NavigationPage Title="Songs">
<NavigationPage.Icon>
<OnPlatform x:TypeArguments="FileImageSource">
<On Platform="iOS" Value="tab_feed.png" />
</OnPlatform>
</NavigationPage.Icon>
<x:Arguments>
<views:SongView />
</x:Arguments>
</NavigationPage>
-->
<NavigationPage Title="Albums">
<NavigationPage.Icon>
<OnPlatform x:TypeArguments="FileImageSource">
<On Platform="iOS" Value="tab_feed.png" />
</OnPlatform>
</NavigationPage.Icon>
</NavigationPage>
<!--
<NavigationPage Title="Artists">
<NavigationPage.Icon>
<OnPlatform x:TypeArguments="FileImageSource">
<On Platform="iOS" Value="tab_feed.png" />
</OnPlatform>
</NavigationPage.Icon>
<x:Arguments>
<views:ArtistView />
</x:Arguments>
</NavigationPage>
-->
</TabbedPage.Children>
</TabbedPage>
+20
View File
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace Mear.Views
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class MusicLibrary : TabbedPage
{
public MusicLibrary()
{
InitializeComponent();
}
}
}
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Class="Mear.Views.SongView">
<ContentView.Content>
<StackLayout>
<Label Text="Song view!" />
</StackLayout>
</ContentView.Content>
</ContentView>
+20
View File
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace Mear.Views
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class SongView : ContentView
{
public SongView()
{
InitializeComponent();
}
}
}