Skip to content

Commit 1b69013

Browse files
authored
Update package versions and change target frameworks (#38) +semver:breaking
* Update package versions and change target frameworks - Update to Appium.WebDriver v.5.0.0-rc-7 and Selenium v.4.19.0. Use version range - Change target frameworks to be .NET 6 and .NET 4.8 instead of .NET Standard - Update Copyright year in csproj and in License * Migrate to .NET 8.0 * add a method to terminate specific applications by their bundle identifier
1 parent 14fa3b7 commit 1b69013

File tree

7 files changed

+34
-13
lines changed

7 files changed

+34
-13
lines changed

Aquality.Appium.Mobile/src/Aquality.Appium.Mobile/Applications/Application.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using Aquality.Selenium.Core.Localization;
55
using OpenQA.Selenium;
66
using OpenQA.Selenium.Appium;
7+
using OpenQA.Selenium.Appium.Interfaces;
78
using OpenQA.Selenium.Appium.Service;
89
using System;
910

@@ -56,5 +57,10 @@ public void Quit()
5657
Driver?.Quit();
5758
DriverService?.Dispose();
5859
}
60+
61+
public bool TerminateApp(string bundleId)
62+
{
63+
return ((IInteractsWithApps)Driver).TerminateApp(bundleId);
64+
}
5965
}
6066
}

Aquality.Appium.Mobile/src/Aquality.Appium.Mobile/Applications/IMobileApplication.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ public interface IMobileApplication : IApplication
1919
/// </summary>
2020
void Quit();
2121

22+
/// <summary>
23+
/// Terminate the particular application if it is running.
24+
/// </summary>
25+
/// <param name="bundleId">the bundle identifier (or app id) of the app to be terminated.</param>
26+
/// <returns>true if the app was running before and has been successfully stopped.</returns>
27+
bool TerminateApp(string bundleId);
28+
2229
/// <summary>
2330
/// Provides current AppiumDriver service instance (would be null if driver is not local).
2431
/// </summary>

Aquality.Appium.Mobile/src/Aquality.Appium.Mobile/Aquality.Appium.Mobile.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>netstandard2.0</TargetFramework>
4+
<TargetFrameworks>net48;net6.0</TargetFrameworks>
55

66
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
77
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
@@ -14,7 +14,7 @@
1414
<RepositoryType>git</RepositoryType>
1515
<PackageTags>appium mobile ios android automation</PackageTags>
1616
<PackageLicenseFile>LICENSE</PackageLicenseFile>
17-
<Copyright>Copyright 2023 Aquality Automation</Copyright>
17+
<Copyright>Copyright 2024 Aquality Automation</Copyright>
1818
<IsPackable>true</IsPackable>
1919
</PropertyGroup>
2020

@@ -49,8 +49,8 @@
4949
</ItemGroup>
5050

5151
<ItemGroup>
52-
<PackageReference Include="Appium.WebDriver" Version="5.0.0-rc.2" />
53-
<PackageReference Include="Aquality.Selenium.Core" Version="3.0.5" />
52+
<PackageReference Include="Appium.WebDriver" Version="[5.0.0-rc.7, 5.0.0]" />
53+
<PackageReference Include="Aquality.Selenium.Core" Version="[3.0.7, 4.0.0)" />
5454
</ItemGroup>
5555

5656
</Project>

Aquality.Appium.Mobile/src/Aquality.Appium.Mobile/Aquality.Appium.Mobile.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Aquality.Appium.Mobile/tests/Aquality.Appium.Mobile.Tests/Aquality.Appium.Mobile.Tests.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
66

77
<IsPackable>false</IsPackable>
@@ -13,7 +13,7 @@
1313
<PrivateAssets>all</PrivateAssets>
1414
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1515
</PackageReference>
16-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
16+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
1717
</ItemGroup>
1818

1919
<ItemGroup>

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2023 Aquality Automation
189+
Copyright 2024 Aquality Automation
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

azure-pipelines.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ stages:
2727
sonar.coverage.exclusions=**/**
2828
2929
- task: UseDotNet@2
30-
displayName: Use .NET 6.0
30+
displayName: Use .NET 8.0
3131
inputs:
3232
packageType: 'sdk'
33-
version: '6.0.x'
33+
version: '8.0.x'
3434

3535
- task: DotNetCoreCLI@2
3636
displayName: 'Build solution'
@@ -118,13 +118,14 @@ stages:
118118
condition: and(succeeded(), eq(variables['isRemote'], 'true'))
119119

120120
- task: UseDotNet@2
121-
displayName: Use .NET 6.0
121+
displayName: Use .NET 8.0
122122
inputs:
123123
packageType: 'sdk'
124-
version: '6.0.x'
124+
version: '8.0.x'
125125

126126
- task: DotNetCoreCLI@2
127127
displayName: 'Run tests'
128+
retryCountOnTaskFailure: 1
128129
inputs:
129130
command: 'test'
130131
projects: '**/*Tests*/*.csproj'
@@ -157,10 +158,10 @@ stages:
157158

158159
steps:
159160
- task: UseDotNet@2
160-
displayName: Use .NET 6.0
161+
displayName: Use .NET 8.0
161162
inputs:
162163
packageType: 'sdk'
163-
version: '6.0.x'
164+
version: '8.0.x'
164165

165166
- task: gitversion/setup@0
166167
displayName: 'Install GitTools'

0 commit comments

Comments
 (0)