Skip to content

Commit 93273d0

Browse files
committed
Merge branch 'main' of github.com:sentry-demos/dotnet-maui into feat/ci
2 parents 32e4319 + 16e03f7 commit 93273d0

File tree

11 files changed

+15
-55
lines changed

11 files changed

+15
-55
lines changed

AppShell.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Title="EmpowerPlant">
99

1010
<ShellContent
11-
Title="Home"
11+
Title="Welcome to Empower Plant"
1212
ContentTemplate="{DataTemplate local:MainPage}"
1313
Route="MainPage" />
1414
</Shell>

EmpowerPlant.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@
5656
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" />
5757

5858
<!-- Splash Screen -->
59-
<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" />
59+
<MauiSplashScreen Include="Resources\Splash\splash.png" BaseSize="128,128" />
6060

6161
<!-- Images -->
6262
<MauiImage Include="Resources\Images\*" />
63-
<MauiImage Update="Resources\Images\dotnet_bot.png" Resize="True" BaseSize="300,185" />
63+
<MauiImage Update="Resources\Images\logo_empower_plant.png" Resize="True" BaseSize="300,185" />
6464

6565
<!-- Custom Fonts -->
6666
<MauiFont Include="Resources\Fonts\*" />

Configuration.cs renamed to EmpowerPlantConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace EmpowerPlant;
22

3-
public static class Configuration
3+
internal static class EmpowerPlantConfiguration
44
{
55
public const string SentryDsn = "https://[email protected]/1";
66
public const string BackendUrl = "https://aspnetcore.empower-plant.com";

MainPage.xaml

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,37 +11,23 @@
1111
VerticalOptions="Center">
1212

1313
<Image
14-
Source="dotnet_bot.png"
15-
SemanticProperties.Description="Cute dot net bot waving hi to you!"
14+
Source="logo_empower_plant.png"
15+
SemanticProperties.Description="Empower Plant Logo"
1616
HeightRequest="200"
1717
HorizontalOptions="Center" />
1818

1919
<Label
20-
Text="Hello, World!"
20+
Text="Empower Plant!"
2121
SemanticProperties.HeadingLevel="Level1"
2222
FontSize="32"
2323
HorizontalOptions="Center" />
2424

25-
<Label
26-
Text="Welcome to .NET Multi-platform App UI"
27-
SemanticProperties.HeadingLevel="Level2"
28-
SemanticProperties.Description="Welcome to dot net Multi platform App U I"
29-
FontSize="18"
30-
HorizontalOptions="Center" />
31-
32-
<Button
33-
x:Name="CounterBtn"
34-
Text="Click me"
35-
SemanticProperties.Hint="Counts the number of times you click."
36-
Clicked="OnCounterClicked"
37-
HorizontalOptions="Center" />
38-
3925
<Button
40-
x:Name="btnRealWorld"
41-
Text="Real World Sample"
42-
SemanticProperties.Hint="Real World Sample"
43-
AutomationId="Real_World_Sample"
44-
Clicked="BtnRealWorld_OnClicked"
26+
x:Name="btnShopForPlants"
27+
Text="Shop for plants"
28+
SemanticProperties.Hint="Shop for plants at empower plant"
29+
AutomationId="Shop_For_Plants"
30+
Clicked="BtnShopForPlants_OnClicked"
4531
HorizontalOptions="Center" />
4632

4733
<Button

MainPage.xaml.cs

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,6 @@ protected override void OnAppearing()
2727
base.OnAppearing();
2828
}
2929

30-
private void OnCounterClicked(object sender, EventArgs e)
31-
{
32-
_count++;
33-
34-
if (_count == 1)
35-
{
36-
CounterBtn.Text = $"Clicked {_count} time";
37-
}
38-
else
39-
{
40-
CounterBtn.Text = $"Clicked {_count} times";
41-
}
42-
43-
SemanticScreenReader.Announce(CounterBtn.Text);
44-
45-
_logger.LogInformation("The button has been clicked {ClickCount} times", _count);
46-
}
47-
4830
private void OnUnhandledExceptionClicked(object sender, EventArgs e)
4931
{
5032
#pragma warning disable CS0618
@@ -88,7 +70,7 @@ private void OnNativeCrashClicked(object sender, EventArgs e)
8870
#endif
8971
}
9072

91-
async void BtnRealWorld_OnClicked(object? sender, EventArgs e)
73+
async void BtnShopForPlants_OnClicked(object? sender, EventArgs e)
9274
{
9375
await Shell.Current.GoToAsync("ListPage", true);
9476
}

MauiProgram.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static MauiApp CreateMauiApp()
1717
.UseSentry(options =>
1818
{
1919
// The DSN is the only required option.
20-
options.Dsn = Configuration.SentryDsn;
20+
options.Dsn = EmpowerPlantConfiguration.SentryDsn;
2121
options.Debug = true;
2222

2323
// Set to false if you want to prevent your user order data from going to Sentry

Resources/Images/dotnet_bot.png

-68.2 KB
Binary file not shown.
20.1 KB
Loading

Resources/Splash/splash.png

20.1 KB
Loading

Resources/Splash/splash.svg

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)