-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMauiSample.csproj
More file actions
153 lines (132 loc) · 8.75 KB
/
MauiSample.csproj
File metadata and controls
153 lines (132 loc) · 8.75 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net10.0-android;net10.0-ios</TargetFrameworks>
<OutputType>Exe</OutputType>
<RootNamespace>MauiSample</RootNamespace>
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>
<ImplicitUsings>enable</ImplicitUsings>
<EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk>
<!-- Suppress AndroidX Lifecycle package version constraint warnings -->
<NoWarn>$(NoWarn);NU1608</NoWarn>
<!-- Display name -->
<ApplicationTitle>MauiSample</ApplicationTitle>
<!-- App Identifier -->
<ApplicationId Condition="'$(TargetFramework)' == 'net10.0-ios'">com.urbanairship.richpush</ApplicationId>
<ApplicationId Condition="'$(TargetFramework)' == 'net10.0-android'">com.urbanairship.sample</ApplicationId>
<ApplicationIdGuid>f6a79f57-dd45-4efa-9d46-98b431478fa1</ApplicationIdGuid>
<!-- Versions -->
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
<ApplicationVersion>1</ApplicationVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">15.6</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">23.0</SupportedOSPlatformVersion>
<!-- Required for C# Hot Reload -->
<UseInterpreter Condition="'$(Configuration)' == 'Debug'">True</UseInterpreter>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)'=='Debug|net10.0-ios'">
<CodesignProvision></CodesignProvision>
<CodesignKey>-</CodesignKey>
<CodesignEntitlements>Platforms\iOS\Entitlements.plist</CodesignEntitlements>
<MtouchLink>None</MtouchLink>
<CreatePackage>false</CreatePackage>
<RuntimeIdentifier Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)' != 'arm64'">iossimulator-x64</RuntimeIdentifier>
<RuntimeIdentifier Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)' == 'arm64'">iossimulator-arm64</RuntimeIdentifier>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)'=='Release|net10.0-ios'">
<CodesignKey>iPhone Developer</CodesignKey>
<CodesignEntitlements>Platforms\iOS\Entitlements.plist</CodesignEntitlements>
<MtouchLink>None</MtouchLink>
<CreatePackage>false</CreatePackage>
<CodesignProvision>Automatic</CodesignProvision>
</PropertyGroup>
<PropertyGroup>
<!-- Controls whether to use project references or nuget packages for Airship dependencies. -->
<!-- While developing, switch to project references to allow all code to be editied. -->
<!-- Once finished, run the 'pack' and 'createLocalFeed' Gradle tasks and switch back to package refs. -->
<UseProjectReferences>true</UseProjectReferences>
</PropertyGroup>
<!-- Package dependencies -->
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<Optimize>false</Optimize>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net10.0-android|AnyCPU'">
<JavaMaximumHeapSize>2G</JavaMaximumHeapSize>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.0" />
</ItemGroup>
<ItemGroup Label="Common Package Dependencies" Condition="!$(UseProjectReferences)">
<PackageReference Include="Airship.Net" Version="$(AirshipCrossPlatformNugetVersion)" />
<PackageReference Include="Airship.Net.MessageCenter" Version="$(AirshipCrossPlatformNugetVersion)" />
</ItemGroup>
<ItemGroup Label="iOS Package Dependencies" Condition="'$(TargetFramework)' == 'net10.0-ios' And !$(UseProjectReferences)">
<PackageReference Include="Airship.Net.iOS.Basement" Version="$(AirshipIosNugetVersion)" />
<PackageReference Include="Airship.Net.iOS.Core" Version="$(AirshipIosNugetVersion)" />
<PackageReference Include="Airship.Net.iOS.MessageCenter" Version="$(AirshipIosNugetVersion)" />
<PackageReference Include="Airship.Net.iOS.Automation" Version="$(AirshipIosNugetVersion)" />
<PackageReference Include="Airship.Net.iOS.PreferenceCenter" Version="$(AirshipIosNugetVersion)" />
</ItemGroup>
<ItemGroup Label="Android Package Dependencies" Condition="'$(TargetFramework)' == 'net10.0-android' And !$(UseProjectReferences)">
<PackageReference Include="Airship.Net.Android.Core" Version="$(AirshipAndroidNugetVersion)" />
<PackageReference Include="Airship.Net.Android.MessageCenter" Version="$(AirshipAndroidNugetVersion)" />
<PackageReference Include="Airship.Net.Android.Layout" Version="$(AirshipAndroidNugetVersion)" />
<PackageReference Include="Airship.Net.Android.Fcm" Version="$(AirshipAndroidNugetVersion)" />
<PackageReference Include="Airship.Net.Android.Automation" Version="$(AirshipAndroidNugetVersion)" />
<PackageReference Include="Airship.Net.Android.Preferencecenter" Version="$(AirshipAndroidNugetVersion)" />
<PackageReference Include="Airship.Net.Android.LiveUpdate" Version="$(AirshipAndroidNugetVersion)" />
<PackageReference Include="Airship.Net.Android.FeatureFlag" Version="$(AirshipAndroidNugetVersion)" />
</ItemGroup>
<!-- Project dependencies -->
<ItemGroup Label="Common Project Dependencies" Condition="$(UseProjectReferences)">
<ProjectReference Condition="$(UseProjectReferences)" Include="..\src\Airship.Net\Airship.Net.csproj" />
<ProjectReference Condition="$(UseProjectReferences)" Include="..\src\Airship.Net.MessageCenter\Airship.Net.MessageCenter.csproj" />
</ItemGroup>
<ItemGroup Label="iOS Project Dependencies" Condition="'$(TargetFramework)' == 'net10.0-ios' And '$(UseProjectReferences)'">
<ProjectReference Include="..\src\AirshipBindings.iOS.ObjectiveC\AirshipBindings.iOS.ObjectiveC.csproj" />
</ItemGroup>
<ItemGroup Label="Android Project Dependencies" Condition="'$(TargetFramework)' == 'net10.0-android' And $(UseProjectReferences)">
<ProjectReference Include="..\binderator\generated\Airship.Net.Android.Core\Airship.Net.Android.Core.csproj" />
<ProjectReference Include="..\binderator\generated\Airship.Net.Android.Automation\Airship.Net.Android.Automation.csproj" />
<ProjectReference Include="..\binderator\generated\Airship.Net.Android.Layout\Airship.Net.Android.Layout.csproj" />
<ProjectReference Include="..\binderator\generated\Airship.Net.Android.MessageCenter\Airship.Net.Android.MessageCenter.csproj" />
<ProjectReference Include="..\binderator\generated\Airship.Net.Android.PreferenceCenter\Airship.Net.Android.PreferenceCenter.csproj" />
<ProjectReference Include="..\binderator\generated\Airship.Net.Android.Fcm\Airship.Net.Android.Fcm.csproj" />
<ProjectReference Include="..\binderator\generated\Airship.Net.Android.LiveUpdate\Airship.Net.Android.LiveUpdate.csproj" />
<ProjectReference Include="..\binderator\generated\Airship.Net.Android.FeatureFlag\Airship.Net.Android.FeatureFlag.csproj" />
</ItemGroup>
<!-- Removes -->
<ItemGroup>
<None Remove="Platforms\Android\Assets\google-services.json" />
<None Remove="Platforms\Android\Resources\*" />
<None Remove="Platforms\Android\Properties\" />
<None Remove="Resources\Images\icon_inbox.svg" />
<None Remove="Resources\Images\icon_settings.svg" />
<None Remove="Resources\Images\icon_home.svg" />
</ItemGroup>
<!-- Resources -->
<ItemGroup Label="iOS Resources" Condition="'$(TargetFramework)' == 'net10.0-ios'">
<BundleResource Include="Platforms\iOS\AirshipConfig.plist" Link="AirshipConfig.plist" />
<BundleResource Include="Platforms\iOS\MessageCenterTheme.plist" Link="MessageCenterTheme.plist" />
</ItemGroup>
<ItemGroup Label="Android Resources" Condition="'$(TargetFramework)' == 'net10.0-android'">
<GoogleServicesJson Include="Platforms\Android\Assets\google-services.json" />
<MauiImage Include="Platforms\Android\Resources\Images\ic_notification.svg" BaseSize="24,24" />
<Folder Include="Platforms\Android\Properties\" />
</ItemGroup>
<ItemGroup Label="Shared Maui Resources">
<!-- App Icon -->
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" />
<!-- Splash Screen -->
<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" />
<!-- Images -->
<MauiImage Include="Resources\Images\*" />
<MauiFont Include="Resources\Fonts\*" />
<!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>
</Project>