|
8 | 8 | <MtouchNoSymbolStrip>true</MtouchNoSymbolStrip> |
9 | 9 | <Description>.NET Bindings for the Sentry Cocoa SDK</Description> |
10 | 10 | <SentryCocoaCache>..\..\modules\sentry-cocoa\</SentryCocoaCache> |
| 11 | + <SentryCocoaProperties>$(MSBuildThisFileDirectory)..\..\modules\sentry-cocoa.properties</SentryCocoaProperties> |
11 | 12 | <SentryCocoaFrameworkHeaders>$(SentryCocoaCache)Sentry.framework\</SentryCocoaFrameworkHeaders> |
12 | 13 | <!-- SentrySpan.g.cs: error CS0108: 'ISentrySpan.Serialize()' hides inherited member 'ISentrySerializable.Serialize()'. Use the new keyword if hiding was intended --> |
13 | 14 | <NoWarn>$(NoWarn);CS0108</NoWarn> |
14 | 15 | </PropertyGroup> |
15 | 16 |
|
16 | 17 | <!-- Released Cocoa SDK builds --> |
17 | | - <PropertyGroup Condition="!Exists('$(SentryCocoaCache).git')"> |
18 | | - <SentryCocoaProperties>$([System.IO.File]::ReadAllText("$(MSBuildThisFileDirectory)../../modules/sentry-cocoa.properties"))</SentryCocoaProperties> |
19 | | - <SentryCocoaVersion>$([System.Text.RegularExpressions.Regex]::Match($(SentryCocoaProperties), 'version\s*=\s*([^\s]+)').Groups[1].Value)</SentryCocoaVersion> |
| 18 | + <PropertyGroup Condition="Exists('$(SentryCocoaProperties)') And !Exists('$(SentryCocoaCache).git')"> |
| 19 | + <SentryCocoaVersion>$([System.Text.RegularExpressions.Regex]::Match($([System.IO.File]::ReadAllText('$(SentryCocoaProperties)')), 'version\s*=\s*([^\s]+)').Groups[1].Value)</SentryCocoaVersion> |
20 | 20 | <SentryCocoaFramework>$(SentryCocoaCache)Sentry-$(SentryCocoaVersion).xcframework</SentryCocoaFramework> |
21 | | - <SentryCocoaBindingInputs>../../modules/sentry-cocoa.properties;../../scripts/generate-cocoa-bindings.ps1;$(SentryCocoaFrameworkHeaders)**/*.h</SentryCocoaBindingInputs> |
| 21 | + <SentryCocoaBindingInputs>$(SentryCocoaProperties);../../scripts/generate-cocoa-bindings.ps1;$(SentryCocoaFrameworkHeaders)**/*.h</SentryCocoaBindingInputs> |
22 | 22 | </PropertyGroup> |
23 | 23 |
|
24 | 24 | <!-- Override values for local Cocoa SDK builds --> |
|
68 | 68 |
|
69 | 69 | <!-- Downloads and sets up the Cocoa SDK: dotnet msbuild /t:setupCocoaSDK src/Sentry.Bindings.Cocoa/Sentry.Bindings.Cocoa.csproj --> |
70 | 70 | <Target Name="_DownloadCocoaSDK" |
71 | | - Condition="$([MSBuild]::IsOSPlatform('OSX')) And !Exists('$(SentryCocoaCache).git') And !Exists('$(SentryCocoaFramework)')"> |
| 71 | + Condition="$([MSBuild]::IsOSPlatform('OSX')) And Exists('$(SentryCocoaProperties)') And !Exists('$(SentryCocoaCache).git') And !Exists('$(SentryCocoaFramework)')"> |
72 | 72 |
|
73 | 73 | <Message Importance="High" Text="Setting up the Cocoa SDK version '$(SentryCocoaVersion)'." /> |
74 | 74 |
|
|
0 commit comments