Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade C# language version to 12.0 #77

Merged
merged 70 commits into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
d48fc79
Update AdvancedSharpAdbClient.Tests C# version
wherewhere Sep 22, 2023
9d22002
Update AdvancedSharpAdbClient C# version
wherewhere Sep 22, 2023
4f75be4
Update constructors
wherewhere Sep 22, 2023
f039ff6
Update build-and-test.yml
wherewhere Sep 22, 2023
564a6e2
Update array initialize
wherewhere Sep 26, 2023
f81b855
Move ShellStream out of logs folder
wherewhere Sep 27, 2023
09d57c4
Replace Microsoft.Extensions.Logging with custom ILogger
wherewhere Sep 27, 2023
243a7ef
Remove CrossPlatformFunc
wherewhere Sep 27, 2023
1dd979e
Use format when log
wherewhere Sep 27, 2023
3008d2b
Merge branch 'feature/csupdate' into feature/customlogger
wherewhere Sep 27, 2023
38d9494
Merge pull request #76 from yungd1plomat/feature/customlogger
wherewhere Sep 27, 2023
c89b156
Remove nuget.config
wherewhere Sep 29, 2023
f0b939f
Rename UnixFileMode to UnixFileType
wherewhere Sep 29, 2023
18ec39e
Rename DateTimeHelper to DateTimeExtension
wherewhere Sep 29, 2023
31eae26
Update test to .net8
wherewhere Sep 29, 2023
f06cb9c
Change a lot about Socket
wherewhere Sep 30, 2023
15f27fd
Replase CancellationToken to in bool of SyncService
wherewhere Sep 30, 2023
ff36a66
Use span and memory in SyncService
wherewhere Sep 30, 2023
bbae4ff
Using span in Steam
wherewhere Oct 1, 2023
9cfcdb9
Add ConfigureAwait(false) for await
wherewhere Oct 1, 2023
e519746
Rename IsValidAdbFile to CheckFileExists
wherewhere Oct 1, 2023
cc8da0e
Add logger tests
wherewhere Oct 1, 2023
805e0e0
Change Array parameter to Span
wherewhere Oct 2, 2023
af76a2a
Add ExecuteServerCommand
wherewhere Oct 2, 2023
9ba1323
Use IAdbSocket instead of ExecuteRemoteCommand
wherewhere Oct 2, 2023
93a65ff
Improve SocketBasedTests
wherewhere Oct 3, 2023
213cf21
SocketBasedTests can test multi ShellStream now
wherewhere Oct 3, 2023
e1ef9fb
Add GetAppStatus test
wherewhere Oct 3, 2023
0b26b41
Use TryParse in SyncCommandConverter
wherewhere Oct 4, 2023
4b58e78
Add ExecuteServerCommand test
wherewhere Oct 4, 2023
46d2056
Add returnable test for SocketBasedTests
wherewhere Oct 7, 2023
d0c8973
Use ContinueWith to continue Task
wherewhere Oct 7, 2023
fd7f1bc
Move some method to AdbClientExtensions
wherewhere Oct 8, 2023
cb48a7a
Improve Element
wherewhere Oct 9, 2023
2f9fbb8
Add init and record
wherewhere Oct 10, 2023
81c4881
Improve DeviceMonitor
wherewhere Oct 10, 2023
a6e1b21
Add DoesNotReturn
wherewhere Oct 11, 2023
c448e38
Fix DeviceMonitor Dispose #78
wherewhere Oct 13, 2023
52b9872
Fix DeviceMonitorLoop exception catch
wherewhere Oct 13, 2023
92aecdd
Fix AdbServer test
wherewhere Oct 13, 2023
f0e0522
Update VersionPrefix
wherewhere Oct 13, 2023
5340d05
Use byte[] when using byte[]
wherewhere Oct 18, 2023
6000ff0
Remove System.Drawing.Common from non-windows platform
wherewhere Oct 18, 2023
d944777
Fix SendAsync of .netstandard1.3
wherewhere Oct 19, 2023
a3ba686
Catch NotSupportedException on Process.GetProcessesByName
wherewhere Oct 19, 2023
79344a1
Use Microsoft.Bcl.HashCode on support platforms
wherewhere Oct 19, 2023
e3d1349
Add StopServer for AdbServer
wherewhere Oct 20, 2023
a681ee7
Use IAdbSocket directly on AdbServer
wherewhere Oct 20, 2023
e688bff
Enable nullable
wherewhere Oct 21, 2023
3158045
Remove unused methods of Extensions
wherewhere Oct 24, 2023
976894f
Merge branch 'main' into feature/csupdate
wherewhere Oct 29, 2023
f4a88ad
Build .NETFX on Github Action
wherewhere Oct 29, 2023
9dad0ef
Add ThreadSwitcher
wherewhere Oct 29, 2023
2475deb
Change namespace
wherewhere Oct 29, 2023
2530877
Split Extensions
wherewhere Oct 30, 2023
235789f
Use Task.Yield instead of ThreadSwitcher
wherewhere Oct 30, 2023
25bec11
Improve async methods
wherewhere Oct 31, 2023
fe8b379
Add Task.Yield on Task dummy
wherewhere Oct 31, 2023
a06c5a7
Add uninstall in AdbClient
wherewhere Oct 31, 2023
b9d2378
Try to fix test
wherewhere Oct 31, 2023
fa2765f
Merge branch 'main' into feature/csupdate
wherewhere Nov 2, 2023
9983fd8
Update Readme
wherewhere Nov 2, 2023
2bab86e
Add IReadOnlyList<byte> to FramebufferHeader
wherewhere Nov 3, 2023
f45effc
Fix progress notify of InstallProgressChanged
wherewhere Nov 3, 2023
8d33bb3
Update xunit to 2.6.1
wherewhere Nov 8, 2023
36424aa
Reopen SyncService when GetDirectoryListing received 0000 #19
wherewhere Nov 10, 2023
8f3556a
Catch XmlException when FindElement #84
wherewhere Nov 10, 2023
75675a0
Use foreach on List of DeviceExtensions
wherewhere Nov 11, 2023
44a8a19
Change some class to struct
wherewhere Nov 13, 2023
9781d3d
Upgrade .NET nuget to version 8.0
wherewhere Nov 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ body:
- ".NET 6"
- ".NET 7"
- ".NET 8"
- ".NET 9"
- "Others"
- type: dropdown
attributes:
Expand Down
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: true
contact_links:
- name: Question
url: https://github.com/SharpAdb/AdvancedSharpAdbClient/discussions/new?category=q-a
about: Ask a question
- name: Discussion
url: https://github.com/SharpAdb/AdvancedSharpAdbClient/discussions/new?category=general
about: Start a discussion
12 changes: 0 additions & 12 deletions .github/ISSUE_TEMPLATE/question.yaml

This file was deleted.

17 changes: 10 additions & 7 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
pull_request:
branches:
- main
paths:
- '.github/workflows/build-and-test.yml'
- 'AdvancedSharpAdbClient**'
workflow_dispatch:

env:
Expand All @@ -23,15 +26,14 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup .NET Core App
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
dotnet-quality: 'preview'

- name: Install Dependencies
run: dotnet restore -p:FullTargets=false
Expand All @@ -40,24 +42,23 @@ jobs:
run: dotnet build --no-restore -p:FullTargets=false

- name: Test
run: dotnet test --no-restore -p:FullTargets=false
run: dotnet test --no-restore --blame-hang-timeout 1m -p:FullTargets=false

pack-and-publish:
name: pack-and-publish
needs: build-and-test
runs-on: ubuntu-latest
runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup .NET Core App
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
dotnet-quality: 'preview'

- name: Install Dependencies
run: dotnet restore -p:FullTargets=true
Expand All @@ -67,7 +68,9 @@ jobs:

- name: Publish
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
run: dotnet nuget push ./nugets/*nupkg --source https://nuget.pkg.github.com/SharpAdb/index.json --skip-duplicate --api-key ${{ secrets.NUGET_KEY }}
run: dotnet nuget push nugets/**.nupkg --source $env:NUGET_SOURCE --skip-duplicate --api-key ${{ secrets.NUGET_KEY }}
env:
NUGET_SOURCE: https://nuget.pkg.github.com/SharpAdb/index.json

- name: Upload
uses: actions/upload-artifact@v3
Expand Down