Skip to content

Commit b966cdd

Browse files
Merge branch 'main' into pr/3799
2 parents 8b9f8cc + 9bea4f5 commit b966cdd

File tree

21 files changed

+48
-45
lines changed

21 files changed

+48
-45
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
- name: Install Android SDKs
113113
if: runner.os == 'macOS'
114114
run: |
115-
dotnet build src/Sentry/Sentry.csproj -t:InstallAndroidDependencies -f:net8.0-android -p:AcceptAndroidSDKLicenses=True -p:AndroidSdkPath="/usr/local/lib/android/sdk/"
115+
dotnet build src/Sentry/Sentry.csproj -t:InstallAndroidDependencies -f:net8.0-android34.0 -p:AcceptAndroidSDKLicenses=True -p:AndroidSdkPath="/usr/local/lib/android/sdk/"
116116
117117
- name: Build
118118
run: dotnet build Sentry-CI-Build-${{ runner.os }}.slnf -c Release --no-restore --nologo -v:minimal -flp:logfile=build.log -p:CopyLocalLockFileAssemblies=true

.github/workflows/device-tests-android.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
with:
4040
name: device-test-android
4141
if-no-files-found: error
42-
path: test/Sentry.Maui.Device.TestApp/bin/Release/net8.0-android/android-x64/io.sentry.dotnet.maui.device.testapp-Signed.apk
42+
path: test/Sentry.Maui.Device.TestApp/bin/Release/net8.0-android34.0/android-x64/io.sentry.dotnet.maui.device.testapp-Signed.apk
4343

4444
android:
4545
needs: [build]

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
<!-- dotnet-gcdump needs net6+ and won't work on mobile. -->
8888
<PropertyGroup>
8989
<PlatformIsLegacy Condition="$(TargetFramework.StartsWith('net4')) or $(TargetFramework.StartsWith('netstandard'))">true</PlatformIsLegacy>
90-
<PlatformIsMobile Condition="$(TargetFramework.EndsWith('android')) or $(TargetFramework.EndsWith('ios')) or $(TargetFramework.EndsWith('maccatalyst'))">true</PlatformIsMobile>
90+
<PlatformIsMobile Condition="'$(TargetPlatformIdentifier)' == 'android' or '$(TargetPlatformIdentifier)' == 'ios' or '$(TargetPlatformIdentifier)' == 'maccatalyst'">true</PlatformIsMobile>
9191
<MemoryDumpSupported Condition="!($(PlatformIsLegacy) == 'true' or $(PlatformIsMobile) == 'true')">true</MemoryDumpSupported>
9292

9393
<DefineConstants Condition="'$(MemoryDumpSupported)' == 'true'">$(DefineConstants);MEMORY_DUMP_SUPPORTED</DefineConstants>

integration-test/cli.Tests.ps1

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,13 @@ Describe 'MAUI' -ForEach @(
119119
}
120120

121121
$name = 'maui-app'
122+
$androidTpv = '34.0'
123+
$iosTpv = '17.0'
124+
122125
DotnetNew 'maui' $name $framework
123126

124127
# Workaround for the missing "ios" workload on Linux, see https://github.com/dotnet/maui/pull/18580
125-
$tfs = $IsMacos ? "$framework-android;$framework-ios;$framework-maccatalyst" : "$framework-android"
128+
$tfs = $IsMacos ? "$framework-android$androidTpv;$framework-ios$iosTpv;$framework-maccatalyst$iosTpv" : "$framework-android$androidTpv"
126129
(Get-Content $name/$name.csproj) -replace '<TargetFrameworks>[^<]+</TargetFrameworks>', "<TargetFrameworks>$tfs</TargetFrameworks>" | Set-Content $name/$name.csproj
127130

128131
dotnet remove $name/$name.csproj package 'Microsoft.Extensions.Logging.Debug' | ForEach-Object { Write-Host $_ }
@@ -144,7 +147,7 @@ Describe 'MAUI' -ForEach @(
144147

145148
if (Test-Path env:CI)
146149
{
147-
dotnet build $name/$name.csproj -t:InstallAndroidDependencies -f:$framework-android -p:AcceptAndroidSDKLicenses=True -p:AndroidSdkPath="/usr/local/lib/android/sdk/" | ForEach-Object { Write-Host $_ }
150+
dotnet build $name/$name.csproj -t:InstallAndroidDependencies -f:$framework-android$androidTpv -p:AcceptAndroidSDKLicenses=True -p:AndroidSdkPath="/usr/local/lib/android/sdk/" | ForEach-Object { Write-Host $_ }
148151
if ($LASTEXITCODE -ne 0)
149152
{
150153
throw "Failed to install android dependencies."
@@ -153,7 +156,7 @@ Describe 'MAUI' -ForEach @(
153156
}
154157

155158
It "uploads symbols and sources for an Android build" {
156-
$result = RunDotnetWithSentryCLI 'build' 'maui-app' $True $True "$framework-android"
159+
$result = RunDotnetWithSentryCLI 'build' 'maui-app' $True $True "$framework-android$androidTpv"
157160
$result.UploadedDebugFiles() | Sort-Object -Unique | Should -Be @(
158161
'libsentry-android.so',
159162
'libsentry.so',
@@ -166,7 +169,7 @@ Describe 'MAUI' -ForEach @(
166169
}
167170

168171
It "uploads symbols and sources for an iOS build" -Skip:(!$IsMacOS) {
169-
$result = RunDotnetWithSentryCLI 'build' 'maui-app' $True $True "$framework-ios"
172+
$result = RunDotnetWithSentryCLI 'build' 'maui-app' $True $True "$framework-ios$iosTpv"
170173
$result.UploadedDebugFiles() | Sort-Object -Unique | Should -Be @(
171174
'libmono-component-debugger.dylib',
172175
'libmono-component-diagnostics_tracing.dylib',

samples/Sentry.Samples.Android/Sentry.Samples.Android.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net8.0-android</TargetFramework>
3+
<TargetFramework>net8.0-android34.0</TargetFramework>
44
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
55
<OutputType>Exe</OutputType>
66
<Nullable>enable</Nullable>

samples/Sentry.Samples.Ios/Sentry.Samples.Ios.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net8.0-ios</TargetFramework>
4+
<TargetFramework>net8.0-ios17.0</TargetFramework>
55
<OutputType>Exe</OutputType>
66
<Nullable>enable</Nullable>
77
<ImplicitUsings>true</ImplicitUsings>

samples/Sentry.Samples.MacCatalyst/Sentry.Samples.MacCatalyst.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net8.0-maccatalyst</TargetFramework>
4+
<TargetFramework>net8.0-maccatalyst17.0</TargetFramework>
55
<OutputType>Exe</OutputType>
66
<Nullable>enable</Nullable>
77
<ImplicitUsings>true</ImplicitUsings>

samples/Sentry.Samples.Maui/Sentry.Samples.Maui.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
On Mac, we'll also build for iOS and MacCatalyst.
77
On Windows, we'll also build for Windows 10.
88
-->
9-
<TargetFrameworks>$(TargetFrameworks);net9.0-android</TargetFrameworks>
10-
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net9.0-windows10.0.19041.0;net9.0-ios;net9.0-maccatalyst</TargetFrameworks>
11-
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('OSX'))">$(TargetFrameworks);net9.0-ios;net9.0-maccatalyst</TargetFrameworks>
9+
<TargetFrameworks>$(TargetFrameworks);net9.0-android35.0</TargetFrameworks>
10+
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net9.0-windows10.0.19041.0;net9.0-ios18.0;net9.0-maccatalyst18.0</TargetFrameworks>
11+
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('OSX'))">$(TargetFrameworks);net9.0-ios18.0;net9.0-maccatalyst18.0</TargetFrameworks>
1212
<OutputType>Exe</OutputType>
1313
<RootNamespace>Sentry.Samples.Maui</RootNamespace>
1414
<UseMaui>true</UseMaui>

scripts/device-test.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ try
2525
$arch = (!$IsWindows -and $(uname -m) -eq 'arm64') ? 'arm64' : 'x64'
2626
if ($Platform -eq 'android')
2727
{
28-
$tfm += 'android'
28+
$tfm += 'android34.0'
2929
$group = 'android'
3030
$buildDir = $CI ? 'bin' : "test/Sentry.Maui.Device.TestApp/bin/Release/$tfm/android-$arch"
3131
$arguments = @(
@@ -43,7 +43,7 @@ try
4343
}
4444
elseif ($Platform -eq 'ios')
4545
{
46-
$tfm += 'ios'
46+
$tfm += 'ios17.0'
4747
$group = 'apple'
4848
# Always use x64 on iOS, since arm64 doesn't support JIT, which is required for tests using NSubstitute
4949
$arch = 'x64'

scripts/generate-cocoa-bindings.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ internal enum SentryTransactionNameSource : long
147147
}
148148
'@
149149

150-
$Text += "`r`n$SentryLevel"
151-
$Text += "`r`n$SentryTransactionNameSource"
150+
$Text += "`n$SentryLevel"
151+
$Text += "`n$SentryTransactionNameSource"
152152

153153
# Add header and output file
154154
$Text = "$Header`n`n$Text"
@@ -296,7 +296,7 @@ interface SentryId
296296
}
297297
'@
298298

299-
$Text += "`r`n$SentryId"
299+
$Text += "`n$SentryId"
300300

301301
# Add header and output file
302302
$Text = "$Header`n`n$Text"

0 commit comments

Comments
 (0)