|
1 | 1 | <Project Sdk="Microsoft.NET.Sdk"> |
2 | 2 | <PropertyGroup> |
3 | | - <TargetFrameworks>net8.0-android34.0</TargetFrameworks> |
| 3 | + <TargetFrameworks>net8.0-android34.0;net9.0-android35.0;</TargetFrameworks> |
4 | 4 | <!-- 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.) --> |
5 | 5 | <NoWarn>$(NoWarn);BG8605;BG8606</NoWarn> |
6 | 6 | <SentryAndroidSdkVersion>7.20.1</SentryAndroidSdkVersion> |
|
30 | 30 | </ItemGroup> |
31 | 31 |
|
32 | 32 | <ItemGroup> |
33 | | - <AndroidLibrary Include="$(SentryAndroidSdkDirectory)sentry-$(SentryAndroidSdkVersion).jar" /> |
34 | | - <AndroidLibrary Include="$(SentryAndroidSdkDirectory)sentry-android-core-$(SentryAndroidSdkVersion).aar" /> |
35 | | - <AndroidLibrary Include="$(SentryAndroidSdkDirectory)sentry-android-ndk-$(SentryAndroidSdkVersion).aar" /> |
| 33 | + <!-- AndroidMavenLibrary include format is {GroupId}:{ArtifactId} --> |
| 34 | + <AndroidMavenLibrary Include="io.sentry:sentry" Version="$(SentryAndroidSdkVersion)" /> |
| 35 | + <AndroidMavenLibrary Include="io.sentry:sentry-android-core" Version="$(SentryAndroidSdkVersion)" /> |
| 36 | + <AndroidMavenLibrary Include="io.sentry:sentry-android-ndk" Version="$(SentryAndroidSdkVersion)" /> |
36 | 37 | <AndroidLibrary Include="..\..\lib\sentry-android-supplemental\bin\sentry-android-supplemental.jar" /> |
37 | 38 | <AndroidNativeLibrary Include="..\..\lib\sentrysupplemental\bin\arm64-v8a\libsentrysupplemental.so" Abi="arm64-v8a" /> |
38 | 39 | <AndroidNativeLibrary Include="..\..\lib\sentrysupplemental\bin\armeabi-v7a\libsentrysupplemental.so" Abi="armeabi-v7a" /> |
39 | 40 | <AndroidNativeLibrary Include="..\..\lib\sentrysupplemental\bin\x86\libsentrysupplemental.so" Abi="x86" /> |
40 | 41 | <AndroidNativeLibrary Include="..\..\lib\sentrysupplemental\bin\x86_64\libsentrysupplemental.so" Abi="x86_64" /> |
41 | 42 | </ItemGroup> |
42 | 43 |
|
43 | | - <Target Name="DownloadSentryAndroidSdk" BeforeTargets="CollectPackageReferences"> |
44 | | - <DownloadFile |
45 | | - SourceUrl="https://repo1.maven.org/maven2/io/sentry/sentry-android-core/$(SentryAndroidSdkVersion)/sentry-android-core-$(SentryAndroidSdkVersion).aar" |
46 | | - DestinationFolder="$(SentryAndroidSdkDirectory)" |
47 | | - Condition="!Exists('$(SentryAndroidSdkDirectory)sentry-android-core-$(SentryAndroidSdkVersion).aar')" |
48 | | - Retries="3" |
49 | | - /> |
50 | | - <DownloadFile |
51 | | - SourceUrl="https://repo1.maven.org/maven2/io/sentry/sentry-android-ndk/$(SentryAndroidSdkVersion)/sentry-android-ndk-$(SentryAndroidSdkVersion).aar" |
52 | | - DestinationFolder="$(SentryAndroidSdkDirectory)" |
53 | | - Condition="!Exists('$(SentryAndroidSdkDirectory)sentry-android-ndk-$(SentryAndroidSdkVersion).aar')" |
54 | | - Retries="3" |
55 | | - /> |
56 | | - <DownloadFile |
57 | | - SourceUrl="https://repo1.maven.org/maven2/io/sentry/sentry/$(SentryAndroidSdkVersion)/sentry-$(SentryAndroidSdkVersion).jar" |
58 | | - DestinationFolder="$(SentryAndroidSdkDirectory)" |
59 | | - Condition="!Exists('$(SentryAndroidSdkDirectory)sentry-$(SentryAndroidSdkVersion).jar')" |
60 | | - Retries="3" |
61 | | - /> |
62 | | - </Target> |
63 | | - |
64 | 44 | </Project> |
0 commit comments