Releases: jonathanpeppers/spice
Releases · jonathanpeppers/spice
0.2.0-beta.1
What's New?
I've migrated some of the source code from BlazorWebView
from .NET MAUI to Spice 🌶, making it available as a new control:
public class App : Application
{
public App()
{
Main = new BlazorWebView
{
HostPage = "wwwroot/index.html",
RootComponents =
{
new RootComponent { Selector = "#app", ComponentType = typeof(Main) }
},
};
}
}
From here, you can write Index.razor
as the Blazor you know and love:
@page "/"
<h1>Hello, world!</h1>
Welcome to your new app.
To arrive at Blazor web content inside iOS/Android apps:
Getting Started
Simply install the template:
dotnet new install Spice.Templates
Create either a plain Spice project, or a hybrid "Spice+Blazor" project:
dotnet new spice
# Or if you want hybrid/web support
dotnet new spice-blazor
Or use the project template from Visual Studio:
What's Changed
- ignore jetbrains temp files by @SimonCropp in #3
- [build] try macOS ventura pool by @jonathanpeppers in #5
- Implement WebView by @jonathanpeppers in #4
- Implement Entry by @jonathanpeppers in #6
- Use
apkdiff
for app size regression test by @jonathanpeppers in #8 - Blazor Support by @jonathanpeppers in #7
apkdiff
app size regression for Blazor sample by @jonathanpeppers in #9- Add
spice-blazor
project template by @jonathanpeppers in #10 - [android] add custom AOT profiles by @jonathanpeppers in #11
- Bump CommunityToolkit.Mvvm from 8.1.0 to 8.2.0 by @dependabot in #14
- Bump Microsoft.Maui.Graphics from 7.0.58 to 7.0.86 by @dependabot in #16
- [docs] for Blazor by @jonathanpeppers in #18
New Contributors
- @SimonCropp made their first contribution in #3
- @dependabot made their first contribution in #14
Full Changelog: 0.1.0-alpha.2...0.2.0-beta.1
0.1.0-alpha.2
Initial release!
Getting Started
Simply install the template:
dotnet new install Spice.Templates
Create the project and build it as you would for other .NET MAUI
projects:
dotnet new spice
dotnet build
# To run on Android
dotnet build -f net7.0-android -t:Run
# To run on iOS
dotnet build -f net7.0-ios -t:Run
Of course, you can also just open the project in Visual Studio and hit F5.
On NuGet at: