Skip to content

Commit

Permalink
Merge branch 'testing'
Browse files Browse the repository at this point in the history
  • Loading branch information
rayenghanmi committed Dec 4, 2024
2 parents 084ce82 + b21ce5e commit 9c0b89a
Show file tree
Hide file tree
Showing 14 changed files with 444 additions and 82 deletions.
1 change: 1 addition & 0 deletions .github/funding.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
buy_me_a_coffee: rayen.ghanmi.22
45 changes: 15 additions & 30 deletions App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,38 +113,23 @@ protected async override void OnLaunched(LaunchActivatedEventArgs args)
{
base.OnLaunched(args);

/*if (ShouldShowWelcomeNotification())
if (ApplicationData.Current.LocalSettings.Values.TryGetValue("JustUpdated", out var value))
{
await LogHelper.Log("Showing Welcome Notification");
App.MainWindow.DispatcherQueue.TryEnqueue(DispatcherQueuePriority.Low, () =>
ApplicationData.Current.LocalSettings.Values["JustUpdated"] = false;
if ((bool)value == true)
{
var welcomeMessage = "WelcomeNotice".GetLocalized().Replace("\\n", Environment.NewLine); ;
App.MainWindow.ShowMessageDialogAsync(welcomeMessage, "WelcomeNoticeTitle".GetLocalized());
});
// Set the flag to indicate that the welcome notification has been shown
SetWelcomeNotificationShown();
}*/

await App.GetService<IActivationService>().ActivateAsync(args);
}

/*private static bool ShouldShowWelcomeNotification()
{
// Check if the setting is not present or set to false
if (!ApplicationData.Current.LocalSettings.Values.TryGetValue("WelcomeNotificationShown", out var value))
{
return true; // Show the notification if the setting is not present
await OptimizationOptions.StartInCmd("rd /S /Q \"%TEMP%\"");
if (ApplicationData.Current.LocalSettings.Values.TryGetValue("DoneUpdating", out var isDoneUpdating)
&& ApplicationData.Current.LocalSettings.Values.TryGetValue("latestChanges", out var latestChanges))
{
App.MainWindow.DispatcherQueue.TryEnqueue(DispatcherQueuePriority.Low, () =>
{
App.MainWindow.ShowMessageDialogAsync((string)latestChanges, "UpdateTitle".GetLocalized());
});
ApplicationData.Current.LocalSettings.Values["DoneUpdating"] = false;
}
}
}
// Check the value of the setting
return !(bool)value;
await App.GetService<IActivationService>().ActivateAsync(args);
}
private static void SetWelcomeNotificationShown()
{
// Set the flag to true to indicate that the welcome notification has been shown
LogHelper.Log("Setting WelcomeNotificationShown");
ApplicationData.Current.LocalSettings.Values["WelcomeNotificationShown"] = true;
}*/
}
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

All notable changes to this branch will be documented in this file.

## 0.9.0 - Released

### Added

- Introduced the ability to update the app without the need to install it from the website.

### Fixes

- Resolved an issue where temporary files were not being removed.

### Changes

- Enhanced the failed uninstallation notification to ensure that the debloat process continues even if some apps fail to uninstall.

## 0.8.3 - Released

### Added
Expand Down
2 changes: 1 addition & 1 deletion Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<Identity
Name="Rayen.RyTuneX"
Publisher="CN=Rayen"
Version="0.8.3.0" />
Version="0.9.0.0" />

<mp:PhoneIdentity PhoneProductId="593c7ba8-f1c9-47cf-a952-7c22b10aac3a" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>

Expand Down
2 changes: 1 addition & 1 deletion RyTuneX.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<AppxAutoIncrementPackageRevision>False</AppxAutoIncrementPackageRevision>
<AppxSymbolPackageEnabled>False</AppxSymbolPackageEnabled>
<GenerateTestArtifacts>True</GenerateTestArtifacts>
<Version>0.8.3</Version>
<Version>0.9.0</Version>
<Authors>Rayen Ghanmi</Authors>
</PropertyGroup>
<ItemGroup>
Expand Down
28 changes: 28 additions & 0 deletions Strings/ar-tn/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -726,4 +726,32 @@
<data name="Feature_CleanMemory.Header" xml:space="preserve">
<value>فعّل منظف الرام</value>
</data>
<data name="SettingsPage_UpdateButton.Content" xml:space="preserve">
<value>تحقق من التحديثات</value>
</data>
<data name="AvailableUpdateContent0" xml:space="preserve">
<value>نسخة أحدث (</value>
</data>
<data name="AvailableUpdateContent1" xml:space="preserve">
<value>) متوفرة. يُرجى التحديث إلى أحدث إصدار للاستمتاع بالميزات والتحسينات الجديدة.</value>
</data>
<data name="UpdateTitle" xml:space="preserve">
<value>تحديثات RyTuneX</value>
</data>
<data name="NetworkError" xml:space="preserve">
<value>حدث خطأ. تأكد من اتصالك بالإنترنت وحاول مرة أخرى لاحقًا.</value>
</data>
<data name="UnavailableUpdate0" xml:space="preserve">
<value>أنت تستخدم أحدث إصدار بالفعل (</value>
</data>
<data name="UnavailableUpdate1" xml:space="preserve">
<value>). لا توجد تحديثات متوفرة حاليًا.</value>
</data>
<data name="Close" xml:space="preserve">
<value>إغلاق</value>
</data>
<data name="Update" xml:space="preserve">
<value>تحديث</value>
</data>

</root>
27 changes: 27 additions & 0 deletions Strings/de/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -726,4 +726,31 @@
<data name="Feature_CleanMemory.Header" xml:space="preserve">
<value>RAM-Reiniger aktivieren</value>
</data>
<data name="SettingsPage_UpdateButton.Content" xml:space="preserve">
<value>Nach Updates suchen</value>
</data>
<data name="AvailableUpdateContent0" xml:space="preserve">
<value>Eine neuere Version (</value>
</data>
<data name="AvailableUpdateContent1" xml:space="preserve">
<value>) ist verfügbar. Bitte aktualisieren Sie auf die neueste Version, um neue Funktionen und Verbesserungen zu nutzen.</value>
</data>
<data name="UpdateTitle" xml:space="preserve">
<value>RyTuneX-Updates</value>
</data>
<data name="NetworkError" xml:space="preserve">
<value>Ein Fehler ist aufgetreten. Überprüfen Sie Ihre Internetverbindung und versuchen Sie es später erneut.</value>
</data>
<data name="UnavailableUpdate0" xml:space="preserve">
<value>Sie verwenden bereits die neueste Version (</value>
</data>
<data name="UnavailableUpdate1" xml:space="preserve">
<value>). Es sind keine Updates verfügbar.</value>
</data>
<data name="Close" xml:space="preserve">
<value>Schließen</value>
</data>
<data name="Update" xml:space="preserve">
<value>Aktualisieren</value>
</data>
</root>
27 changes: 27 additions & 0 deletions Strings/en-us/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -726,4 +726,31 @@
<data name="Feature_CleanMemory.Description" xml:space="preserve">
<value>Enables rytunexsvc that periodically checks for ram usage and clears it when it exceeds 80%</value>
</data>
<data name="SettingsPage_UpdateButton.Content" xml:space="preserve">
<value>Check for updates</value>
</data>
<data name="AvailableUpdateContent0" xml:space="preserve">
<value>A newer version (</value>
</data>
<data name="AvailableUpdateContent1" xml:space="preserve">
<value>) is available. Please update to the latest version to enjoy new features and improvements.</value>
</data>
<data name="UpdateTitle" xml:space="preserve">
<value>RyTuneX updates</value>
</data>
<data name="NetworkError" xml:space="preserve">
<value>There was an error. Make sure to check your internet connection and try again later.</value>
</data>
<data name="UnavailableUpdate0" xml:space="preserve">
<value>You are already running the latest version (</value>
</data>
<data name="UnavailableUpdate1" xml:space="preserve">
<value>). No updates are available at this time.</value>
</data>
<data name="Close" xml:space="preserve">
<value>Close</value>
</data>
<data name="Update" xml:space="preserve">
<value>Update</value>
</data>
</root>
27 changes: 27 additions & 0 deletions Strings/fr-fr/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -723,4 +723,31 @@
<data name="Feature_CleanMemory.Header" xml:space="preserve">
<value>Activer le nettoyeur de RAM</value>
</data>
<data name="SettingsPage_UpdateButton.Content" xml:space="preserve">
<value>Vérifier les mises à jour</value>
</data>
<data name="AvailableUpdateContent0" xml:space="preserve">
<value>Une nouvelle version (</value>
</data>
<data name="AvailableUpdateContent1" xml:space="preserve">
<value>) est disponible. Veuillez mettre à jour vers la dernière version pour profiter des nouvelles fonctionnalités et améliorations.</value>
</data>
<data name="UpdateTitle" xml:space="preserve">
<value>Mises à jour RyTuneX</value>
</data>
<data name="NetworkError" xml:space="preserve">
<value>Une erreur s'est produite. Vérifiez votre connexion Internet et réessayez plus tard.</value>
</data>
<data name="UnavailableUpdate0" xml:space="preserve">
<value>Vous utilisez déjà la dernière version (</value>
</data>
<data name="UnavailableUpdate1" xml:space="preserve">
<value>). Aucune mise à jour n'est disponible pour le moment.</value>
</data>
<data name="Close" xml:space="preserve">
<value>Fermer</value>
</data>
<data name="Update" xml:space="preserve">
<value>Mettre à jour</value>
</data>
</root>
27 changes: 27 additions & 0 deletions Strings/zh-Hans/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -726,4 +726,31 @@
<data name="Feature_CleanMemory.Header" xml:space="preserve">
<value>Enable Ram Cleaner</value>
</data>
<data name="SettingsPage_UpdateButton.Content" xml:space="preserve">
<value>检查更新</value>
</data>
<data name="AvailableUpdateContent0" xml:space="preserve">
<value>有新版本 (</value>
</data>
<data name="AvailableUpdateContent1" xml:space="preserve">
<value>) 可用。请更新至最新版本以享受新功能和改进。</value>
</data>
<data name="UpdateTitle" xml:space="preserve">
<value>RyTuneX 更新</value>
</data>
<data name="NetworkError" xml:space="preserve">
<value>发生错误。请检查您的互联网连接并稍后重试。</value>
</data>
<data name="UnavailableUpdate0" xml:space="preserve">
<value>您已经运行的是最新版本 (</value>
</data>
<data name="UnavailableUpdate1" xml:space="preserve">
<value>)。当前没有可用的更新。</value>
</data>
<data name="Close" xml:space="preserve">
<value>关闭</value>
</data>
<data name="Update" xml:space="preserve">
<value>更新</value>
</data>
</root>
Loading

0 comments on commit 9c0b89a

Please sign in to comment.