Skip to content

Commit 8852f45

Browse files
authored
Merge pull request #453 from trimble-oss/452-memory-leakage-on-modus-controls
Memory leakage on modus controls #452
2 parents 61b6804 + 007dc8b commit 8852f45

35 files changed

Lines changed: 467 additions & 541 deletions

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
with:
2929
persist-credentials: false
3030

31-
- name: Setup .NET 8
31+
- name: Setup .NET 9
3232
uses: actions/setup-dotnet@v4
3333
with:
34-
dotnet-version: 8.0.x
34+
dotnet-version: 9.0.x
3535
include-prerelease: true
3636

3737
- uses: actions/setup-java@v4
@@ -51,4 +51,4 @@ jobs:
5151
run: dotnet restore Trimble.Modus.Components.sln
5252

5353
- name: Build MAUI Android
54-
run: dotnet build Trimble.Modus.Components.sln -f net8.0-android -c Release --no-restore
54+
run: dotnet build Trimble.Modus.Components.sln -f net9.0-android -c Release --no-restore

DemoApp/DemoApp/DemoApp.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net8.0-android;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
5-
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.19041.0</TargetFrameworks>
4+
<TargetFrameworks>net9.0-android;net9.0-ios;net9.0-maccatalyst</TargetFrameworks>
5+
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net9.0-windows10.0.19041.0</TargetFrameworks>
66
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
77
<!-- <TargetFrameworks>$(TargetFrameworks);net7.0-tizen</TargetFrameworks> -->
88
<OutputType>Exe</OutputType>
@@ -14,8 +14,8 @@
1414
<!-- Display name -->
1515
<ApplicationTitle>DemoApp</ApplicationTitle>
1616

17-
<!-- App Identifier -->
18-
<ApplicationId>com.trimble.ModusMAUI</ApplicationId>
17+
<!-- App Identifier -->
18+
<ApplicationId>com.trimble.ModusMAUI</ApplicationId>
1919
<ApplicationIdGuid>4ca86287-676e-49cb-9a5d-75d22c1b3771</ApplicationIdGuid>
2020
<PackageVersion>1.0.0</PackageVersion>
2121
<!-- Versions -->

DemoApp/DemoApp/Views/ModalSamplePage.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ private void ShowModalClicked(object sender, EventArgs e)
6666
catch (Exception ex)
6767
{
6868
TMToast tMToast = new(ex.Message);
69-
tMToast.theme = ToastTheme.Danger;
69+
tMToast.theme = ToastTheme.DangerToast;
7070
tMToast.Show();
7171
}
7272
}

DemoApp/DemoApp/Views/ToastSamplePage.xaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@
3434
<Picker.ItemsSource>
3535
<x:Array Type="{x:Type theme:ToastTheme}">
3636
<theme:ToastTheme></theme:ToastTheme>
37-
<theme:ToastTheme>Dark</theme:ToastTheme>
38-
<theme:ToastTheme>Primary</theme:ToastTheme>
39-
<theme:ToastTheme>Secondary</theme:ToastTheme>
40-
<theme:ToastTheme>Danger</theme:ToastTheme>
41-
<theme:ToastTheme>Warning</theme:ToastTheme>
42-
<theme:ToastTheme>Success</theme:ToastTheme>
37+
<theme:ToastTheme>DarkToast</theme:ToastTheme>
38+
<theme:ToastTheme>PrimaryToast</theme:ToastTheme>
39+
<theme:ToastTheme>SecondaryToast</theme:ToastTheme>
40+
<theme:ToastTheme>DangerToast</theme:ToastTheme>
41+
<theme:ToastTheme>WarningToast</theme:ToastTheme>
42+
<theme:ToastTheme>SuccessToast</theme:ToastTheme>
4343
</x:Array>
4444
</Picker.ItemsSource>
4545

DemoApp/DemoApp/Views/ToastSamplePage.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public partial class ToastSamplePage : ContentPage
99
public ToastSamplePage()
1010
{
1111
InitializeComponent();
12-
toastPicker.SelectedItem = ToastTheme.Default;
12+
toastPicker.SelectedItem = ToastTheme.DefaultToast;
1313
}
1414

1515
private void OnToastActionTapped(object sender, EventArgs e)

Trimble.Modus.Components/Controls/Button/TMButton.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
HorizontalOptions="Start">
1010
<ContentView.Resources>
1111
<ResourceDictionary>
12-
<ResourceDictionary.MergedDictionaries>
12+
<!--<ResourceDictionary.MergedDictionaries>
1313
<local:TMButtonStyles></local:TMButtonStyles>
14-
</ResourceDictionary.MergedDictionaries>
14+
</ResourceDictionary.MergedDictionaries>-->
1515
<converters:ImageNullOrEmptyBoolConverter x:Key="ImageNullOrEmptyBoolConverter" />
1616
<converters:StringNotNullOrEmptyBoolConverter x:Key="StringNotNullOrEmptyBoolConverter" />
1717
</ResourceDictionary>

Trimble.Modus.Components/Controls/Button/TMButtonStyles.xaml

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

Trimble.Modus.Components/Controls/Button/TMButtonStyles.xaml.cs

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

Trimble.Modus.Components/Controls/DropDown/DropDownContents.xaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,7 @@
55
xmlns:local="clr-namespace:Trimble.Modus.Components"
66
x:Class="Trimble.Modus.Components.DropDownContents"
77
BackgroundColor="{DynamicResource Transparent}"
8-
Title="DropDownPopupPage">
9-
<Modus:PopupPage.Resources>
10-
<ResourceDictionary>
11-
<ResourceDictionary.MergedDictionaries>
12-
<local:DropDownStyles />
13-
</ResourceDictionary.MergedDictionaries>
14-
</ResourceDictionary>
15-
</Modus:PopupPage.Resources>
8+
Title="DropDownPopupPage">
169
<Border x:Name="border"
1710
VerticalOptions="Start"
1811
HorizontalOptions="Start"

Trimble.Modus.Components/Controls/DropDown/DropDownStyles.xaml

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

0 commit comments

Comments
 (0)