A Swiss Army knife for developers.
C# blazorcross-platformcsharpdesktopdesktop-appdesktop-applicationdeveloper-toolsextensiblefluentfluent-designlinuxmacosmicasyntax-highlightingtypescriptwindowswindows-10windows-11winui
Bumped up to version 0.6.1.0
Etienne Baudouxdd806ce46e14
diff --git a/src/dev/impl/DevToys/Assets/ReleaseNote.txt b/src/dev/impl/DevToys/Assets/ReleaseNote.txtindex befe02f31..0ae5eba33 100644--- a/src/dev/impl/DevToys/Assets/ReleaseNote.txt+++ b/src/dev/impl/DevToys/Assets/ReleaseNote.txt@@ -1,14 +1,8 @@- • Brand new text editor which implies:- • Better performances- • Better syntax highlighting- • More responsive UI- • New option for rendering white spaces- • Text Diff toy now supports Inline and Side by Side mode- • Json <> Yaml, Text Diff and Json Formatter toys support the new text editor- • Toys settings are now persisted between app session- • Fixed bugs related to clipboard-Upcoming in future updates:- • JWT Decoder- • Json to C#- • String inspector- • Markdown editor with preview\ No newline at end of file+New Features+ • JWT Decoder tool!+ • Added an option to disable automatic paste in Smart Detection.+Improvements+ • Russian language is now available.+ • Smart Detection got smarter.+Bug Fixes+ • Fixed another bug with the logger.\ No newline at end of filediff --git a/src/dev/impl/DevToys/Core/Clipboard.cs b/src/dev/impl/DevToys/Core/Clipboard.csindex 1303ccdb3..a7ab4650f 100644--- a/src/dev/impl/DevToys/Core/Clipboard.cs+++ b/src/dev/impl/DevToys/Core/Clipboard.cs@@ -5,6 +5,8 @@ using DevToys.Core.Threading;using System;using System.Composition;using System.Threading.Tasks;+using Windows.ApplicationModel.DataTransfer;+using Windows.Security.EnterpriseData;using Windows.UI.Xaml;namespace DevToys.Core@@ -13,6 +15,8 @@ namespace DevToys.Core[Shared]internal sealed class Clipboard : IClipboard{+ private const string TextFormat = "Text";+private bool _isWindowInForeground;[ImportingConstructor]@@ -30,7 +34,15 @@ namespace DevToys.Corethrow new InvalidOperationException("Unable to retrieve the content of the clipboard because the application isn't in foreground.");}- return (await Windows.ApplicationModel.DataTransfer.Clipboard.GetContent().GetTextAsync()) ?? string.Empty;+ DataPackageView clipboardContent = Windows.ApplicationModel.DataTransfer.Clipboard.GetContent();+ ProtectionPolicyEvaluationResult accessResult = await clipboardContent.RequestAccessAsync();+ if (accessResult == ProtectionPolicyEvaluationResult.Allowed+ && clipboardContent.Contains(TextFormat))+ {+ return await clipboardContent.GetTextAsync(TextFormat) ?? string.Empty;+ }++ return string.Empty;});}diff --git a/src/dev/shared/Package.appxmanifest b/src/dev/shared/Package.appxmanifestindex 319eb0a8d..f49b7a224 100644--- a/src/dev/shared/Package.appxmanifest+++ b/src/dev/shared/Package.appxmanifest@@ -1,4 +1,4 @@-<?xml version="1.0" encoding="utf-8"?>+<?xml version="1.0" encoding="utf-8"?><Packagexmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"@@ -13,7 +13,7 @@<IdentityName="DevToysPreview"Publisher="CN=etiennebaudoux"- Version="0.6.0.0" />+ Version="0.0.0.0" /><!-- TODO: maybe we need to remove this when adding runFullTrust capability --><mp:PhoneIdentity PhoneProductId="c12088ee-f979-4809-8039-7851a3aa2b7a" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>@@ -40,7 +40,7 @@desktop4:SupportsMultipleInstances="true"><uap:VisualElementsDisplayName="DevToys - Preview"- Description="A Swiss-knife for developers."+ Description="A Swiss Army knife for developers."BackgroundColor="transparent"Square150x150Logo="Assets\Logo-Prev\Square150x150Logo.png"Square44x44Logo="Assets\Logo-Prev\Square44x44Logo.png">diff --git a/src/dev/shared/SharedAssemblyInfo.cs b/src/dev/shared/SharedAssemblyInfo.csindex 8c047126e..10b703abb 100644--- a/src/dev/shared/SharedAssemblyInfo.cs+++ b/src/dev/shared/SharedAssemblyInfo.cs@@ -37,7 +37,7 @@ using System.Runtime.CompilerServices;// Please DO NOT commit changes on the 2 lines below unless// you're about to release a new version of the app on the Store.-[assembly: AssemblyVersion("0.6.0.0")]-[assembly: AssemblyFileVersion("0.6.0.0")]+[assembly: AssemblyVersion("0.0.0.0")]+[assembly: AssemblyFileVersion("0.0.0.0")][assembly: InternalsVisibleTo("DevToys.Tests")]diff --git a/tools/app-version-number.txt b/tools/app-version-number.txtindex 1e43d8f5c..eebd406b0 100644--- a/tools/app-version-number.txt+++ b/tools/app-version-number.txt@@ -1 +1 @@-0.6.0.0\ No newline at end of file+0.6.1.0\ No newline at end of file