-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from felipebaltazar/features/server-driven-ui
Using Server Driven UI
- Loading branch information
Showing
49 changed files
with
123 additions
and
2,718 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
Maui.AzurePipelines/Abstractions/Data/IServerDrivenUIApi.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using Maui.ServerDrivenUI; | ||
using Refit; | ||
|
||
namespace PipelineApproval.Abstractions.Data; | ||
|
||
public interface IServerDrivenUIApi | ||
{ | ||
[Get("/ServerDrivenUI?key={key}")] | ||
Task<ServerUIElement> GetUIElementAsync(string key); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,89 +1,86 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>net7.0-android;net7.0-ios</TargetFrameworks> | ||
<OutputType>Exe</OutputType> | ||
<RootNamespace>PipelineApproval</RootNamespace> | ||
<UseMaui>true</UseMaui> | ||
<SingleProject>true</SingleProject> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<PropertyGroup> | ||
<TargetFrameworks>net8.0-android;net8.0-ios17</TargetFrameworks> | ||
<OutputType>Exe</OutputType> | ||
<RootNamespace>PipelineApproval</RootNamespace> | ||
<UseMaui>true</UseMaui> | ||
<SingleProject>true</SingleProject> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<UseInterpreter Condition="'$(Configuration)' == 'Debug'">True</UseInterpreter> | ||
<!-- Display name --> | ||
<ApplicationTitle>Pipeline Approval</ApplicationTitle> | ||
|
||
<!-- App Identifier --> | ||
<ApplicationId>com.maui.azurepipeline.approval</ApplicationId> | ||
<ApplicationIdGuid>0ca34389-c908-4e1f-a379-616128afa759</ApplicationIdGuid> | ||
|
||
<!-- Versions --> | ||
<ApplicationDisplayVersion>1.2</ApplicationDisplayVersion> | ||
<ApplicationVersion>3</ApplicationVersion> | ||
|
||
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">11.0</SupportedOSPlatformVersion> | ||
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net7.0-ios|AnyCPU'"> | ||
<CreatePackage>false</CreatePackage> | ||
<CodesignEntitlements>Platforms\iOS\Entitlements.plist</CodesignEntitlements> | ||
<CodesignKey>iPhone Developer</CodesignKey> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net7.0-ios|AnyCPU'"> | ||
<CreatePackage>false</CreatePackage> | ||
<!-- Display name --> | ||
<ApplicationTitle>Pipeline Approval</ApplicationTitle> | ||
|
||
<!-- App Identifier --> | ||
<ApplicationId>com.maui.azurepipeline.approval</ApplicationId> | ||
<ApplicationIdGuid>0ca34389-c908-4e1f-a379-616128afa759</ApplicationIdGuid> | ||
|
||
<!-- Versions --> | ||
<ApplicationDisplayVersion>1.2</ApplicationDisplayVersion> | ||
<ApplicationVersion>3</ApplicationVersion> | ||
|
||
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">11.0</SupportedOSPlatformVersion> | ||
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-ios17|AnyCPU'"> | ||
<CreatePackage>false</CreatePackage> | ||
<CodesignEntitlements>Platforms\iOS\Entitlements.plist</CodesignEntitlements> | ||
<CodesignKey>iPhone Developer</CodesignKey> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-ios17|AnyCPU'"> | ||
<CreatePackage>false</CreatePackage> | ||
<ArchiveOnBuild>true</ArchiveOnBuild> | ||
<CodesignKey>Apple Distribution: Felipe Baltazar (2L36GLR2GS)</CodesignKey> | ||
<CodesignProvision>Apple Distribution Devops Approval</CodesignProvision> | ||
<CodesignKey>Apple Distribution: Felipe Baltazar (2L36GLR2GS)</CodesignKey> | ||
<CodesignProvision>Apple Distribution Devops Approval</CodesignProvision> | ||
<RuntimeIdentifier>ios-arm64</RuntimeIdentifier> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net7.0-android|AnyCPU'"> | ||
<AndroidKeyStore>True</AndroidKeyStore> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-android|AnyCPU'"> | ||
<AndroidKeyStore>True</AndroidKeyStore> | ||
<AndroidSigningKeyStore>devopsapproval.keystore</AndroidSigningKeyStore> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<!-- Icons for IOS --> | ||
<MauiIcon Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'" Include="Resources\AppIcon\appicon.svg" BaseSize="512,512" Color="#000000" /> | ||
|
||
<!-- Splash for IOS --> | ||
<MauiSplashScreen Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'" Include="Resources\Splash\splash.svg" Color="#000000" BaseSize="128,128" /> | ||
|
||
<!-- Images --> | ||
<MauiImage Include="Resources\Images\*" /> | ||
<MauiImage Include="Resources\Images\*" /> | ||
|
||
<!-- Custom Fonts --> | ||
<MauiFont Include="Resources\Fonts\*" /> | ||
<!-- Custom Fonts --> | ||
<MauiFont Include="Resources\Fonts\*" /> | ||
|
||
<!-- Raw Assets (also remove the "Resources\Raw" prefix) --> | ||
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" /> | ||
<!-- Raw Assets (also remove the "Resources\Raw" prefix) --> | ||
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" /> | ||
|
||
<Folder Include="Resources\AppIcon\" /> | ||
|
||
<!-- Android native resources --> | ||
<AndroidResource Include="Platforms\Android\drawable\**" /> | ||
<AndroidResource Include="Platforms\Android\drawable\**" /> | ||
<AndroidResource Include="Platforms\Android\layout\**" /> | ||
<AndroidResource Include="Platforms\Android\mipmap*\**" /> | ||
<None Remove="pre-release.apk" /> | ||
<AndroidEnvironment Include="Platforms\Android\GarbageCollector.config" /> | ||
</ItemGroup> | ||
|
||
|
||
<!-- Packages --> | ||
<ItemGroup> | ||
<PackageReference Include="CompiledBindings.MAUI" Version="1.0.16" /> | ||
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="7.0.0" /> | ||
<PackageReference Include="Mopups" Version="1.1.1" /> | ||
<PackageReference Include="Polly" Version="7.2.4" /> | ||
<PackageReference Include="Refit" Version="7.0.0" /> | ||
<PackageReference Include="DotNetMeteor.HotReload.Plugin" Version="3.*" /> | ||
<ProjectReference Include="..\VirtualListView\VirtualListView.csproj" /> | ||
<ItemGroup> | ||
<PackageReference Include="CompiledBindings.MAUI" Version="1.0.17.6" /> | ||
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" /> | ||
<PackageReference Include="Mopups" Version="1.3.0" /> | ||
<PackageReference Include="Polly" Version="8.3.0" /> | ||
<PackageReference Include="Redth.Maui.VirtualListView" Version="0.3.1" /> | ||
<PackageReference Include="Refit" Version="7.0.0" /> | ||
<PackageReference Include="DotNetMeteor.HotReload.Plugin" Version="3.*" /> | ||
<PackageReference Include="ServerDrivenUI.Maui" Version="8.0.31-pre" /> | ||
<PackageReference Include="Microsoft.Maui.Controls" Version="8.0.6" /> | ||
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="8.0.6" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<MauiXaml Update="Presentation\Views\Controls\OrganizationLoginPopup.xaml"> | ||
<Generator>MSBuild:Compile</Generator> | ||
</MauiXaml> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Folder Include="Resources\AppIcon\" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.