This repository has been archived by the owner on Nov 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 147
/
template.targets
36 lines (30 loc) · 1.65 KB
/
template.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?xml version="1.0" encoding="UTF-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!-- Unique key for cached download -->
<_XbdKey_>$XbdKey$</_XbdKey_>
<!-- Path to .aar file within the extracted contents of the cached download -->
<_XbdAarFile_>m2repository\com\google\$AarInnerPath$\$AarVersion$\$AarKey$-$AarVersion$.aar</_XbdAarFile_>
<!-- Full path to .aar file, assuming we had to download to the cache - we reset this later if it is in the sdk -->
<_XbdAarFileFullPath_>$(XamarinBuildDownloadDir)$(_XbdKey_)\$AarKey$-$AarVersion$.aar</_XbdAarFileFullPath_>
<!-- Assembly name to embed .aar in -->
<_XbdAssemblyName_>$XbdAssemblyName$</_XbdAssemblyName_>
</PropertyGroup>
<ItemGroup>
<XamarinBuildRestoreResources Include="_XbdRestoreItems_"/>
</ItemGroup>
<Target Name="_XbdRestoreItems_">
<!-- Check if the aar file is in the android sdk already and change the path to use to it, if it's found -->
<CreateProperty Value="$(AndroidSdkDirectory)\extras\google\$(_XbdAarFile_)" Condition="Exists('$(AndroidSdkDirectory)\extras\google\$(_XbdAarFile_)')">
<Output PropertyName="_XbdAarFileFullPath_" TaskParameter="Value" />
</CreateProperty>
<ItemGroup>
<XamarinBuildDownload Include="$(_XbdKey_)">
<Url>$XbdUrl$</Url>
<ToFile>$AarKey$-$AarVersion$.aar</ToFile>
<Kind>Uncompressed</Kind>
<Md5>$XbdMd5$</Md5>
</XamarinBuildDownload>
</ItemGroup>
</Target>
</Project>