Skip to content

Commit 5def8c5

Browse files
committed
Release v2.5.6
1 parent fb20985 commit 5def8c5

22 files changed

+44
-43
lines changed

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ body:
3232
description: Specify the version of AdvancedSharpAdbClient you're using.
3333
options:
3434
- "Latest Source"
35+
- "2.5.6"
3536
- "2.5.5"
3637
- "2.5.4"
3738
- "2.5.3"

AdvancedSharpAdbClient/AdbCommandLineClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public void StartServer()
130130
return;
131131
}
132132

133-
#if HAS_Process
133+
#if HAS_PROCESS
134134
// Starting the adb server failed for whatever reason. This can happen if adb.exe
135135
// is running but is not accepting requests. In that case, try to kill it & start again.
136136
// It kills all processes named "adb", so let's hope nobody else named their process that way.

AdvancedSharpAdbClient/AdvancedSharpAdbClient.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,14 @@
9797
or '$(TargetFramework)' == 'net8.0'
9898
or '$(TargetFramework)' == 'netcoreapp3.1'
9999
or '$(TargetFramework)' == 'netstandard2.1'">
100-
<DefineConstants>$(DefineConstants);HAS_IndexRange</DefineConstants>
100+
<DefineConstants>$(DefineConstants);HAS_INDEXRANGE</DefineConstants>
101101
</PropertyGroup>
102102

103103
<PropertyGroup Condition="'$(TargetFramework)' != 'netcore50'
104104
and '$(TargetFramework)' != 'netcoreapp1.0'
105105
and '$(TargetFramework)' != 'netcoreapp1.1'
106106
and '$(TargetFramework)' != 'netstandard1.3'">
107-
<DefineConstants>$(DefineConstants);HAS_Process;HAS_Drawing;HAS_Serialization</DefineConstants>
107+
<DefineConstants>$(DefineConstants);HAS_PROCESS;HAS_DRAWING;HAS_SERIALIZATION</DefineConstants>
108108
</PropertyGroup>
109109

110110
</Project>

AdvancedSharpAdbClient/DeviceCommands/LinuxPath.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public static string Combine(params string[] paths)
6161
{
6262
capacity += paths[i].Length;
6363
}
64-
#if HAS_IndexRange
64+
#if HAS_INDEXRANGE
6565
char ch = paths[i][^1];
6666
#else
6767
char ch = paths[i][paths[i].Length - 1];
@@ -84,7 +84,7 @@ public static string Combine(params string[] paths)
8484
}
8585
else
8686
{
87-
#if HAS_IndexRange
87+
#if HAS_INDEXRANGE
8888
char ch2 = builder[^1];
8989
#else
9090
char ch2 = builder[builder.Length - 1];
@@ -131,7 +131,7 @@ public static string GetDirectoryName(string path)
131131
{
132132
return tpath;
133133
}
134-
#if HAS_IndexRange
134+
#if HAS_INDEXRANGE
135135
tpath = tpath[..(tpath.LastIndexOf(DirectorySeparatorChar) + 1)];
136136
#else
137137
tpath = tpath.Substring(0, tpath.LastIndexOf(DirectorySeparatorChar) + 1);

AdvancedSharpAdbClient/DeviceCommands/Models/AndroidProcess.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ public static AndroidProcess Parse(string line, bool cmdLinePrefix = false)
343343

344344
if (cmdLinePrefix)
345345
{
346-
#if HAS_IndexRange
346+
#if HAS_INDEXRANGE
347347
string[] cmdLineParts = line[..processNameStart]
348348
#else
349349

@@ -357,7 +357,7 @@ public static AndroidProcess Parse(string line, bool cmdLinePrefix = false)
357357
}
358358
else
359359
{
360-
#if HAS_IndexRange
360+
#if HAS_INDEXRANGE
361361
pid = int.Parse(cmdLineParts[^1]);
362362
#else
363363
pid = int.Parse(cmdLineParts[cmdLineParts.Length - 1]);
@@ -374,7 +374,7 @@ public static AndroidProcess Parse(string line, bool cmdLinePrefix = false)
374374

375375
if (!parsedCmdLinePrefix)
376376
{
377-
#if HAS_IndexRange
377+
#if HAS_INDEXRANGE
378378
pid = int.Parse(line[..processNameStart]);
379379
#else
380380
pid = int.Parse(line.Substring(0, processNameStart));
@@ -385,7 +385,7 @@ public static AndroidProcess Parse(string line, bool cmdLinePrefix = false)
385385
process.Name = comm;
386386
}
387387

388-
#if HAS_IndexRange
388+
#if HAS_INDEXRANGE
389389
string[] parts = line[(processNameEnd + 1)..]
390390
#else
391391
string[] parts = line.Substring(processNameEnd + 1)

AdvancedSharpAdbClient/DeviceCommands/Receivers/PackageManagerReceiver.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ protected override void ProcessNewLines(IEnumerable<string> lines)
4949
// package:mwc2015.be
5050

5151
// Remove the "package:" prefix
52-
#if HAS_IndexRange
52+
#if HAS_INDEXRANGE
5353
string package = line[8..];
5454
#else
5555
string package = line.Substring(8);
@@ -67,7 +67,7 @@ protected override void ProcessNewLines(IEnumerable<string> lines)
6767
}
6868
else
6969
{
70-
#if HAS_IndexRange
70+
#if HAS_INDEXRANGE
7171
string path = package[..separator];
7272
string name = package[(separator + 1)..];
7373
#else

AdvancedSharpAdbClient/DeviceCommands/Receivers/VersionInfoReceiver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ internal object GetVersionName(string line)
8080

8181
return !inPackagesSection ? null
8282
: line != null && line.Trim().StartsWith("versionName=")
83-
#if HAS_IndexRange
83+
#if HAS_INDEXRANGE
8484
? line.Trim()[12..].Trim() : null;
8585
#else
8686
? line.Trim().Substring(12).Trim() : null;

AdvancedSharpAdbClient/DeviceMonitor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public void Dispose()
158158
monitorTaskCancellationTokenSource.Cancel();
159159
monitorTask.Wait();
160160

161-
#if HAS_Process
161+
#if HAS_PROCESS
162162
monitorTask.Dispose();
163163
#endif
164164
monitorTask = null;

AdvancedSharpAdbClient/Exceptions/AdbException.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using System;
66
using System.Net.Sockets;
77

8-
#if HAS_Serialization
8+
#if HAS_SERIALIZATION
99
using System.Runtime.Serialization;
1010
#endif
1111

@@ -49,7 +49,7 @@ public AdbException(string message, AdbResponse response) : base(message)
4949
Response = response;
5050
}
5151

52-
#if HAS_Serialization
52+
#if HAS_SERIALIZATION
5353
/// <summary>
5454
/// Initializes a new instance of the <see cref="AdbException"/> class.
5555
/// </summary>

AdvancedSharpAdbClient/Exceptions/CommandAbortingException.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
using System;
66

7-
#if HAS_Serialization
7+
#if HAS_SERIALIZATION
88
using System.Runtime.Serialization;
99
#endif
1010

@@ -30,7 +30,7 @@ public CommandAbortingException(string message) : base(message)
3030
{
3131
}
3232

33-
#if HAS_Serialization
33+
#if HAS_SERIALIZATION
3434
/// <summary>
3535
/// Initializes a new instance of the <see cref="CommandAbortingException"/> class.
3636
/// </summary>

0 commit comments

Comments
 (0)