Skip to content

Commit

Permalink
added nuget build config to maui sample
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron-morrow-toptal committed Mar 27, 2024
1 parent 2998792 commit 85dbcc2
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Samples/RadarIO.Maui.Sample/Platforms/iOS/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<key>CFBundleIdentifier</key>
<string>io.radar.maui-ios-sample</string>
<key>CFBundleShortVersionString</key>
<string>1.2</string>
<string>1.4</string>
<key>CFBundleVersion</key>
<string>1.2</string>
<string>1.4</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIDeviceFamily</key>
Expand Down
32 changes: 27 additions & 5 deletions Samples/RadarIO.Maui.Sample/RadarIO.Maui.Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,32 @@
<ApplicationVersion>1</ApplicationVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">14.2</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
<Configurations>Debug;Release;nuget</Configurations>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net7.0-ios|AnyCPU'">
<PropertyGroup Condition="'$(TargetFramework)|$(Platform)'=='net7.0-ios|AnyCPU'">
<CreatePackage>false</CreatePackage>
<CodesignProvision>maui</CodesignProvision>
<CodesignKey>Apple Distribution: Cameron Morrow (L937V7C3UH)</CodesignKey>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net7.0-ios|AnyCPU'">
<CreatePackage>false</CreatePackage>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'nuget|AnyCPU' ">
<IntermediateOutputPath>obj\nuget</IntermediateOutputPath>
<DebugSymbols>true</DebugSymbols>
<Optimize>true</Optimize>
<OutputPath>bin\nuget</OutputPath>
<DefineConstants>NUGET;TRACE;RELEASE;NET;NET7_0;NETCOREAPP</DefineConstants>
<WarningLevel>4</WarningLevel>
<DocumentationFile>bin\nuget\RadarIO.Maui.Sample.xml</DocumentationFile>
<NoWarn>1701;1702;IL2121;CS1573;CS1591</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='nuget|net7.0-ios|AnyCPU'">
<CreatePackage>false</CreatePackage>
</PropertyGroup>
<ItemGroup>
<!-- App Icon -->
Expand All @@ -40,11 +57,13 @@
<!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>
<ItemGroup>
<ItemGroup Condition="'$(Configuration)' != 'nuget'">
<ProjectReference Include="..\..\Library\RadarIO.Maui\RadarIO.Maui.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\RadarIO.Sample\RadarIO.Sample.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0-android'">
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0-android' and '$(Configuration)' != 'nuget'">
<PackageReference Include="Xamarin.GooglePlayServices.Location" Version="121.0.1.4" />
<PackageReference Include="Xamarin.GooglePlayServices.Ads.Identifier" Version="118.0.1.8" />
<PackageReference Include="Xamarin.AndroidX.Collection" Version="1.3.0.2" />
Expand All @@ -55,4 +74,7 @@
<ItemGroup>
<PackageReference Include="CommunityToolkit.Maui" Version="6.1.0" />
</ItemGroup>
<ItemGroup Condition="'$(Configuration)' == 'nuget'">
<PackageReference Include="RadarIO.Xamarin" Version="3.7.8-beta.1" />
</ItemGroup>
</Project>
16 changes: 15 additions & 1 deletion Samples/RadarIO.Sample/RadarIO.Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,23 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Configurations>Debug;Release;nuget</Configurations>
</PropertyGroup>

<ItemGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'nuget|AnyCPU' ">
<IntermediateOutputPath>obj\nuget</IntermediateOutputPath>
<DebugSymbols>true</DebugSymbols>
<Optimize>true</Optimize>
<OutputPath>bin\nuget</OutputPath>
<DefineConstants>NUGET;TRACE;RELEASE;NET;NET7_0;NETCOREAPP</DefineConstants>
<WarningLevel>4</WarningLevel>
<NoWarn>1701;1702;IL2121;CS1573;CS1591</NoWarn>
</PropertyGroup>

<ItemGroup Condition="'$(Configuration)' != 'nuget'">
<ProjectReference Include="..\..\Library\RadarIO\RadarIO.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(Configuration)' == 'nuget'">
<PackageReference Include="RadarIO.Xamarin" Version="3.7.8-beta.1" />
</ItemGroup>
</Project>

0 comments on commit 85dbcc2

Please sign in to comment.