Skip to content

Commit abe7ca5

Browse files
committed
Merge remote-tracking branch 'origin' into feat/ios-bindings
2 parents 93ebf9d + 36ccacf commit abe7ca5

File tree

4 files changed

+10
-13
lines changed

4 files changed

+10
-13
lines changed

libs/Android/sentry-6.0.0.jar

-520 KB
Binary file not shown.
-122 KB
Binary file not shown.
-1.78 MB
Binary file not shown.

src/Sentry/Android/Sentry.Android.props

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<!-- BG8605 and BG8606 happen because there's a missing androidx.lifecycle dependency, but we don't need it here. (The native Android Sentry SDK will use it if it exists.) -->
66
<NoWarn>$(NoWarn);BG8605;BG8606</NoWarn>
77
<SentryAndroidSdkVersion>6.0.0</SentryAndroidSdkVersion>
8-
<AndroidLibsDirectory>$(MSBuildProjectDirectory)/../../libs/Android/</AndroidLibsDirectory>
8+
<AndroidLibsDirectory>$(BaseIntermediateOutputPath)\libs\Android\</AndroidLibsDirectory>
99
<LangVersion>10</LangVersion>
1010
<ImplicitUsings>true</ImplicitUsings>
1111
</PropertyGroup>
@@ -15,8 +15,8 @@
1515
<TransformFile Include="Android/Transforms/*.xml" />
1616
<!-- TODO: How to add JavaDocPaths for each package? -->
1717
<AndroidLibrary Include="$(AndroidLibsDirectory)sentry-$(SentryAndroidSdkVersion).jar" />
18-
<AndroidLibrary Include="$(AndroidLibsDirectory)/sentry-android-core-$(SentryAndroidSdkVersion).aar" />
19-
<AndroidLibrary Include="$(AndroidLibsDirectory)/sentry-android-ndk-$(SentryAndroidSdkVersion).aar" />
18+
<AndroidLibrary Include="$(AndroidLibsDirectory)sentry-android-core-$(SentryAndroidSdkVersion).aar" />
19+
<AndroidLibrary Include="$(AndroidLibsDirectory)sentry-android-ndk-$(SentryAndroidSdkVersion).aar" />
2020
</ItemGroup>
2121

2222
<ItemGroup>
@@ -42,24 +42,21 @@
4242
<Using Include="Java.Util.Date" Alias="JavaDate" />
4343
</ItemGroup>
4444

45-
<!-- Update Android SDK: Update SentryAndroidSdkVersion and run:
46-
dotnet msbuild src/Sentry /t:DownloadSentryAndroidSdk /p:TargetFramework=net6.0-android -->
47-
<Target Name="DownloadSentryAndroidSdk">
48-
<RemoveDir Directories="$(AndroidLibsDirectory)" />
45+
<Target Name="DownloadSentryAndroidSdk" BeforeTargets="CollectPackageReferences">
4946
<DownloadFile SourceUrl="https://repo1.maven.org/maven2/io/sentry/sentry-android-core/$(SentryAndroidSdkVersion)/sentry-android-core-$(SentryAndroidSdkVersion).aar"
5047
DestinationFolder="$(AndroidLibsDirectory)"
51-
SkipUnchangedFiles="true">
52-
<Output TaskParameter="DownloadedFile" ItemName="Content" />
48+
Condition="!Exists('$(AndroidLibsDirectory)sentry-android-core-$(SentryAndroidSdkVersion).aar')">
49+
<Output TaskParameter="DownloadedFile" ItemName="None" />
5350
</DownloadFile>
5451
<DownloadFile SourceUrl="https://repo1.maven.org/maven2/io/sentry/sentry-android-ndk/$(SentryAndroidSdkVersion)/sentry-android-ndk-$(SentryAndroidSdkVersion).aar"
5552
DestinationFolder="$(AndroidLibsDirectory)"
56-
SkipUnchangedFiles="true">
57-
<Output TaskParameter="DownloadedFile" ItemName="Content" />
53+
Condition="!Exists('$(AndroidLibsDirectory)sentry-android-ndk-$(SentryAndroidSdkVersion).aar')">
54+
<Output TaskParameter="DownloadedFile" ItemName="None" />
5855
</DownloadFile>
5956
<DownloadFile SourceUrl="https://repo1.maven.org/maven2/io/sentry/sentry/$(SentryAndroidSdkVersion)/sentry-$(SentryAndroidSdkVersion).jar"
6057
DestinationFolder="$(AndroidLibsDirectory)"
61-
SkipUnchangedFiles="true">
62-
<Output TaskParameter="DownloadedFile" ItemName="Content" />
58+
Condition="!Exists('$(AndroidLibsDirectory)sentry-$(SentryAndroidSdkVersion).jar')">
59+
<Output TaskParameter="DownloadedFile" ItemName="None" />
6360
</DownloadFile>
6461
</Target>
6562

0 commit comments

Comments
 (0)