Skip to content

Commit

Permalink
docs: Updated README.
Browse files Browse the repository at this point in the history
HavenDV committed Dec 11, 2023
1 parent dedb4ee commit b1f5160
Showing 2 changed files with 13 additions and 5 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -4,13 +4,19 @@ Also available as a NuGet package if you don't need customization.

# Usage
- Add NuGet package to your project:
```
```xml
<PackageReference Include="Maui.Android.InAppUpdates" Version="1.0.0" />
```
- Add the following to your `MauiProgram.cs` `CreateMauiApp` method:
```csharp
builder
.UseAndroidInAppUpdates()
```diff
builder
.UseMauiApp<App>()
+ .UseAndroidInAppUpdates()
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
});
```

# Links
4 changes: 3 additions & 1 deletion sample/MauiProgram.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace Maui.Android.InAppUpdates;
using Microsoft.Extensions.Logging;

namespace Maui.Android.InAppUpdates;

public static class MauiProgram
{

0 comments on commit b1f5160

Please sign in to comment.