Skip to content

Commit f7a1aba

Browse files
committed
现在启动时找不到 ADB 会直接显示安装包信息了
更改应用显示名 更新 Android 代号
1 parent 8925c3e commit f7a1aba

38 files changed

+282
-215
lines changed

.filenesting.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"help": "https://go.microsoft.com/fwlink/?linkid=866610",
3+
"dependentFileProviders": {
4+
"add": {
5+
"extensionToExtension": {
6+
"add": {
7+
".cs": [
8+
".xaml"
9+
]
10+
}
11+
},
12+
"pathSegment": {
13+
"add": {
14+
".*": [
15+
".cs",
16+
".xaml"
17+
]
18+
}
19+
}
20+
}
21+
}
22+
}

APKInstaller/AAPTForNet/AAPTForNet.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</ItemGroup>
1717

1818
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETFramework'">
19-
<PackageReference Include="System.Drawing.Common" Version="8.0.13" />
19+
<PackageReference Include="System.Drawing.Common" Version="8.0.17" />
2020
</ItemGroup>
2121

2222
<ItemGroup>

APKInstaller/AAPTForNet/Models/SDKInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class SDKInfo : IComparable
4545
"Tiramisu",
4646
"Upside Down Cake",
4747
"Vanilla Ice Cream",
48-
"W",
48+
"Baklava",
4949
"X",
5050
"Y",
5151
"Z",

APKInstaller/APKInstaller/APKInstaller.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@
5353
<PackageReference Include="CommunityToolkit.WinUI.UI.Controls.DataGrid" Version="7.1.2" />
5454
<PackageReference Include="CommunityToolkit.WinUI.UI.Controls.Layout" Version="7.1.2" />
5555
<PackageReference Include="CommunityToolkit.WinUI.UI.Controls.Markdown" Version="7.1.2" />
56-
<PackageReference Include="Downloader" Version="3.3.3" />
56+
<PackageReference Include="Downloader" Version="3.3.4" />
5757
<PackageReference Include="MetroLog.Net6" Version="2.1.0" />
5858
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.3.183" PrivateAssets="all" />
59-
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.26100.1742" />
60-
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.6.250205002" />
59+
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.26100.4188" />
60+
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.7.250606001" />
6161
<PackageReference Include="QRCoder" Version="1.6.0" />
62-
<PackageReference Include="SharpCompress" Version="0.39.0" />
62+
<PackageReference Include="SharpCompress" Version="0.40.0" />
6363
<Manifest Include="$(ApplicationManifest)" />
6464
</ItemGroup>
6565

APKInstaller/APKInstaller/App.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
global using TitleBar = APKInstaller.Controls.TitleBar;
12
using APKInstaller.Helpers;
23
using APKInstaller.Helpers.Exceptions;
34
using Microsoft.UI.Xaml;

APKInstaller/APKInstaller/Controls/Dialogs/MarkdownDialog.xaml.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ private async void UpdateContent(object Content)
122122
try
123123
{
124124
string text = await client.GetStringAsync(value);
125-
if (string.IsNullOrWhiteSpace(text)) { throw new ArgumentNullException(nameof(text), $"The text fetched from {value} is empty."); }
125+
if (string.IsNullOrWhiteSpace(text)) { throw new ArgumentNullException(nameof(Content), $"The text fetched from {value} is empty."); }
126126
MarkdownText.Text = text;
127127
Title = null;
128128
}
@@ -132,7 +132,7 @@ private async void UpdateContent(object Content)
132132
try
133133
{
134134
string text = await client.GetStringAsync(ContentInfo.FormatURL(GitInfo.JSDELIVR_API));
135-
if (string.IsNullOrWhiteSpace(text)) { throw new ArgumentNullException(nameof(text), $"The text fetched from the {ContentInfo.FormatURL(GitInfo.JSDELIVR_API)} is empty."); }
135+
if (string.IsNullOrWhiteSpace(text)) { throw new ArgumentNullException(nameof(Content), $"The text fetched from the {ContentInfo.FormatURL(GitInfo.JSDELIVR_API)} is empty."); }
136136
MarkdownText.Text = text;
137137
Title = null;
138138
}
@@ -149,7 +149,7 @@ private async void UpdateContent(object Content)
149149
try
150150
{
151151
string text = await ContentTask();
152-
if (string.IsNullOrWhiteSpace(text)) { throw new ArgumentNullException(nameof(text), "The text fetched from Task is empty."); }
152+
if (string.IsNullOrWhiteSpace(text)) { throw new ArgumentNullException(nameof(Content), "The text fetched from Task is empty."); }
153153
MarkdownText.Text = text;
154154
Title = null;
155155
}
@@ -177,7 +177,7 @@ private async void UpdateContent(object Content)
177177
try
178178
{
179179
string text = await client.GetStringAsync(ContentUri);
180-
if (string.IsNullOrWhiteSpace(text)) { throw new ArgumentNullException(nameof(text), $"The text fetched from {ContentUri} is empty."); }
180+
if (string.IsNullOrWhiteSpace(text)) { throw new ArgumentNullException(nameof(Content), $"The text fetched from {ContentUri} is empty."); }
181181
MarkdownText.Text = text;
182182
Title = null;
183183
}

APKInstaller/APKInstaller/Controls/QRCode/QRCode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ private void UpdateQRCodeData()
7070

7171
if (Content is IEnumerable<byte> array)
7272
{
73-
byte[] payload = array.ToArray();
73+
byte[] payload = [.. array];
7474
using QRCodeGenerator qrGenerator = new();
7575
QRCodeData = qrGenerator.CreateQrCode(payload, ECCLevel);
7676
}

APKInstaller/APKInstaller/Controls/Setting/SettingAutomationPeer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace APKInstaller.Controls
55
/// <summary>
66
/// AutomationPeer for SettingsCard
77
/// </summary>
8-
public class SettingAutomationPeer : ButtonBaseAutomationPeer
8+
public partial class SettingAutomationPeer : ButtonBaseAutomationPeer
99
{
1010
/// <summary>
1111
/// Initializes a new instance of the <see cref="Setting"/> class.

APKInstaller/APKInstaller/Controls/SettingExpander/SettingExpanderAutomationPeer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace APKInstaller.Controls
55
/// <summary>
66
/// AutomationPeer for SettingExpander
77
/// </summary>
8-
public class SettingExpanderAutomationPeer : ItemsControlAutomationPeer
8+
public partial class SettingExpanderAutomationPeer : ItemsControlAutomationPeer
99
{
1010
/// <summary>
1111
/// Initializes a new instance of the <see cref="SettingExpander"/> class.

APKInstaller/APKInstaller/Controls/SettingsGroup/SettingsGroupAutomationPeer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace APKInstaller.Controls
44
{
5-
public class SettingsGroupAutomationPeer : ItemsControlAutomationPeer
5+
public partial class SettingsGroupAutomationPeer : ItemsControlAutomationPeer
66
{
77
/// <summary>
88
/// Initializes a new instance of the <see cref="SettingsGroup"/> class.

0 commit comments

Comments
 (0)