Skip to content

Commit

Permalink
Assembly v 7.4.6 (21.06.24)
Browse files Browse the repository at this point in the history
  • Loading branch information
adslbarxatov committed Jun 21, 2024
1 parent 0cf2de4 commit 16fac86
Show file tree
Hide file tree
Showing 9 changed files with 76 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
# Константы, используемые далее по тексту
env:
PROJ: ${{ github.event.repository.name }}
TAG: '7.4'
TAG: '7.4.6'

steps:
# Проверка состава репозитория (без анализа, как может показаться)
Expand Down
8 changes: 4 additions & 4 deletions .release/Release.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
_Changes for v 7.4_:
_Changes for v 7.4.6_:
- Android: fixed some runtime memory leaks;
- XPUN update has been applied;
- `Android`: fixed some minor interface bugs;
- `Windows`: fixed some minor interface bugs;
- `GMJ`: the skip list has been updated;
- `Android`: app has been translated to `NET80 / MAUI` platform:
- App now has unified Android navigation shell;
- `Android`: app has been adapted to `Android 14` (API 34);
- `Windows`: implemented the new App about interface;
- Settings storage has been updated (may require some adjustments);
- Updated the help and support links
- `Windows`: implemented the new App about interface
Binary file modified .release/UniNotifier.apk
Binary file not shown.
Binary file added .release/UniNotifier.exe
Binary file not shown.
27 changes: 27 additions & 0 deletions .release/UniNotifier_en_us.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<html charset='utf-8'>
<head>
<title>uNot: the home page | UniNotifier</title>
</head>

<body>

<h1 id="unot-the-home-page">uNot: the home page</h1>
<p><strong>ƒ</strong>  RD AAOW FDL; 30.01.2024; 2:48</p>

<p><em><strong>uNot</strong></em> (formerly know as UniNotifier) is the web resources supervisor service.
This app provides the ability to be notified when the content of user-specified websites changes.
In other words, about updates on them, which will be presented in the form of a text log. Only what the user
has specified is loaded – all other objects (including ads) are ignored.</p>
<p>What does it offer?</p>
<ul>
<li>The <em>settings section</em> allows you to manage and design notifications.</li>
<li>The <em>main log</em> provides a view of changes, access to source webpages from which they were received, and the ability to share them.</li>
<li>A <em>static service notification</em> will inform you about the presence of new changes received in the background.</li>
</ul>
<hr />
<p>More info you can find in <a href="https://youtu.be/nOb4MbL-jlI">this video guide</a>.</p>
<p>The description for the data processing concept used in <em><strong>Grammar must joy</strong></em> project you can also find
<a href="https://adslbarxatov.github.io/UniNotifier/GMJ_en">on its own page</a>.</p>

</body>
</html>
27 changes: 27 additions & 0 deletions .release/UniNotifier_ru_ru.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<html charset='utf-8'>
<head>
<title>uNot: the home page | UniNotifier</title>
</head>

<body>

<h1 id="unot-the-home-page">uNot: the home page</h1>
<p><strong>ƒ</strong>  RD AAOW FDL; 30.01.2024; 2:46</p>

<p><em><strong>uNot</strong></em> (ранее известный как UniNotifier) – служба наблюдения за состоянием веб-ресурсов.
Это приложение предоставляет возможность получать уведомления об изменении состояния указанных пользователем
веб-сайтов. Другими словами, об обновлениях, происходящих на них, которые представляются в виде текстового журнала.
Загружается только то, что указал пользователь – все остальные объекты (включая рекламу) игнорируются.</p>
<p>Что оно предлагает?</p>
<ul>
<li><em>Раздел настроек</em> позволяет управлять уведомлениями и конструировать их.</li>
<li><em>Главный журнал</em> обеспечивает просмотр изменений, переход на исходные веб-страницы, с которых они были получены, и возможность ими поделиться.</li>
<li><em>Закреплённое служебное оповещение</em> будет сообщать о наличии непрочитанных изменений, полученных в фоновом режиме</li>
</ul>
<hr />
<p>Больше информации Вы сможете найти в <a href="https://youtu.be/gjs9K1EsFG8">этом видеоруководстве</a>.</p>
<p>Информация о дополнении <em><strong>Grammar must joy</strong></em> теперь также доступна на <a href="https://adslbarxatov.github.io/UniNotifier/GMJ">отдельной странице</a>.</p>
<p>Информация о проекте <em><strong>Tablepedia notifier</strong></em> располагается на <a href="https://adslbarxatov.github.io/UniNotifier/TPNot">здесь</a></p>

</body>
</html>
4 changes: 4 additions & 0 deletions Changes.log
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
uNot: changes log

Version 7.4.6:
• Android: fixed some runtime memory leaks;
• XPUN update has been applied

Version 7.4.5:
• Android: fixed the inability to start the app on device reboot event;
• Android: fixed the app crash on Android 13 and newer;
Expand Down
6 changes: 3 additions & 3 deletions src/android/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.RD_AAOW.UniNotifier"
android:installLocation="internalOnly" android:versionCode="600716" android:versionName="7.4.5">
android:installLocation="internalOnly" android:versionCode="600717" android:versionName="7.4.6">

<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="34" />

Expand All @@ -19,14 +19,14 @@
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />

<application android:label="uNot" android:icon="@drawable/launcher_foreground">

<receiver android:name="com.RD_AAOW.UniNotifierBoot" android:label="UniNotifierBoot" android:exported="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.QUICKBOOT_POWERON" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>

</application>
</manifest>
20 changes: 10 additions & 10 deletions src/android/MainActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,6 @@ protected override void OnResume ()
Exported = true)]
public class MainService: Service
{
private const int notServiceID = 4415;

// Идентификаторы процесса
private Handler handler;
private Action runnable;
Expand Down Expand Up @@ -192,6 +190,10 @@ private async Task<string> GetNotification ()
// Основной метод службы
private async void TimerTick ()
{
// Дополнительная защита от множественных вызовов с малым интервалом
if (!isStarted)
return;

// Контроль требования завершения службы (игнорирует все прочие флаги)
if (isStarted && AndroidSupport.StopRequested)
{
Expand Down Expand Up @@ -314,7 +316,7 @@ private async void TimerTick ()
Android.App.Notification notification = notBuilder.Build ();

// Отображение (с дублированием для срочных)
notManager.Notify (notServiceID, notification);
notManager.Notify (ProgramDescription.NotServiceID, notification);

// Завершено
notification.Dispose ();
Expand Down Expand Up @@ -407,13 +409,13 @@ public override StartCommandResult OnStartCommand (Intent intent, StartCommandFl
masterIntent = new Intent (this, typeof (NotificationLink));
masterIntent.SetPackage (this.PackageName);

masterPendingIntent = PendingIntent.GetService (this, notServiceID, masterIntent,
PendingIntentFlags.Immutable);
masterPendingIntent = PendingIntent.GetService (this, ProgramDescription.NotServiceID,
masterIntent, PendingIntentFlags.Immutable);
notBuilder.SetContentIntent (masterPendingIntent);

// Стартовое сообщение (с приведением к требованиям к Android 14)
Android.App.Notification notification = notBuilder.Build ();
StartForeground (notServiceID, notification, ForegroundService.TypeDataSync);
StartForeground (ProgramDescription.NotServiceID, notification, ForegroundService.TypeDataSync);

// Перенастройка для основного режима
if (!AndroidSupport.IsForegroundAvailable)
Expand Down Expand Up @@ -444,7 +446,7 @@ public override void OnDestroy ()
{
// Освобождение ресурсов, которые нельзя освободить в таймере
handler.RemoveCallbacks (runnable);
notManager.Cancel (notServiceID);
notManager.Cancel (ProgramDescription.NotServiceID);
if (AndroidSupport.IsForegroundAvailable)
{
notManager.DeleteNotificationChannel (urgentChannelID);
Expand Down Expand Up @@ -490,8 +492,6 @@ public override void OnTaskRemoved (Intent rootIntent)
Exported = true)]
public class NotificationLink: JobIntentService
{
private const int notServiceID = 4415;

/// <summary>
/// Конструктор (заглушка)
/// </summary>
Expand Down Expand Up @@ -533,7 +533,7 @@ private void StartMasterActivity ()
}

// Требование Android 12
PendingIntent.GetActivity (this, notServiceID, mainActivity,
PendingIntent.GetActivity (this, ProgramDescription.NotServiceID, mainActivity,
PendingIntentFlags.UpdateCurrent | PendingIntentFlags.Immutable).Send ();
}
private Intent mainActivity;
Expand Down

0 comments on commit 16fac86

Please sign in to comment.