Skip to content

Commit

Permalink
[SingleProject] Fix Issues (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoonghyunCho authored and rookiejava committed Nov 5, 2021
1 parent 7fa8631 commit 42dfb0f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .nuspec/Microsoft.Maui.Resizetizer.targets
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

<UsingTask
AssemblyFile="$(_ResizetizerTaskAssemblyName)"
TaskName="Microsoft.Maui.Resizetizer.TizenSplashUpdator" />
TaskName="Microsoft.Maui.Resizetizer.TizenSplashUpdater" />

<UsingTask
AssemblyFile="$(_ResizetizerTaskAssemblyName)"
Expand Down Expand Up @@ -508,7 +508,7 @@
</ResizetizeImages>

<!-- Tizen - Move splash images to a specific location -->
<TizenSplashUpdator
<TizenSplashUpdater
Condition="'$(_ResizetizerIsTizenApp)' == 'True' And '@(MauiSplashScreen)' != ''"
IntermediateOutputPath="$(_MauiIntermediateImages)"
ManifestFile="$(TizenManifestFile)"
Expand Down Expand Up @@ -587,7 +587,7 @@
<PropertyGroup>
<ResizetizerIntermediateOutputAbsolutePath>$([System.IO.Path]::GetFullPath('$(_MauiIntermediateImages)'))</ResizetizerIntermediateOutputAbsolutePath>
</PropertyGroup>
<ItemGroup Condition="'$(_ResizetizerIsTizenApp)' == 'True'">
<ItemGroup Condition="'$(_ResizetizerIsTizenApp)' == 'True' And '@(_ResizetizerCollectedImages)' != ''">
<TizenTpkUserIncludeFiles Include="$(ResizetizerIntermediateOutputAbsolutePath)res\res.xml" TizenTpkSubDir="res\" />
<FileWrites Include="$(ResizetizerIntermediateOutputAbsolutePath)res\res.xml)" />

Expand Down
2 changes: 1 addition & 1 deletion src/SingleProject/Resizetizer/src/ResizetizeImages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ void ProcessAppIcon(ResizeImageInfo img, ConcurrentBag<ResizedImageInfo> resized
}
else if (PlatformType == "tizen")
{
var updator = new TizenIconManifestUpdator(appIconName, appIconDpis, this);
var updator = new TizenIconManifestUpdater(appIconName, appIconDpis, this);
updator.Update();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

namespace Microsoft.Maui.Resizetizer
{
internal class TizenIconManifestUpdator
internal class TizenIconManifestUpdater
{
const string namespaceURI = "http://tizen.org/ns/packages";

public TizenIconManifestUpdator(string appIconName, DpiPath[] dpis, ILogger logger)
public TizenIconManifestUpdater(string appIconName, DpiPath[] dpis, ILogger logger)
{
AppIconName = appIconName;
Dpis = dpis;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Microsoft.Maui.Resizetizer
{
public class TizenSplashUpdator : Task
public class TizenSplashUpdater : Task
{
[Required]
public ITaskItem[] MauiSplashScreen { get; set; }
Expand Down Expand Up @@ -104,7 +104,6 @@ public void UpdateColorAndMoveFile(string sourceFilePath, string destFilePath)
}
}
}
File.Delete(sourceFilePath);
}

public void UpdateManifest()
Expand Down Expand Up @@ -151,7 +150,6 @@ public void UpdateManifest()
splashScreenNode.SetAttribute("dpi", image.Key);
splashScreenNode.SetAttribute("orientation", orientation);
splashScreenNode.SetAttribute("indicator-display", "false");
splashScreenNode.SetAttribute("app-control-operation", "http://tizen.org/appcontrol/operation/default");
splashScreensNode.AppendChild(splashScreenNode);
}
}
Expand Down

0 comments on commit 42dfb0f

Please sign in to comment.