Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package knotifications for openSUSE:Factory 
checked in at 2023-11-13 22:17:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/knotifications (Old)
 and      /work/SRC/openSUSE:Factory/.knotifications.new.17445 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "knotifications"

Mon Nov 13 22:17:15 2023 rev:122 rq:1125340 version:5.112.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/knotifications/knotifications.changes    
2023-10-19 22:48:18.000565906 +0200
+++ /work/SRC/openSUSE:Factory/.knotifications.new.17445/knotifications.changes 
2023-11-13 22:19:40.368856098 +0100
@@ -1,0 +2,10 @@
+Mon Nov  6 09:14:02 UTC 2023 - Christophe Marin <[email protected]>
+
+- Update to 5.112.0
+  * New feature release
+  * For more details please see:
+  * https://kde.org/announcements/frameworks/5/5.112.0
+- Changes since 5.111.0:
+  * Adapt to notification API and permission changes in Android SDK 33
+
+-------------------------------------------------------------------

Old:
----
  knotifications-5.111.0.tar.xz
  knotifications-5.111.0.tar.xz.sig

New:
----
  knotifications-5.112.0.tar.xz
  knotifications-5.112.0.tar.xz.sig

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ knotifications.spec ++++++
--- /var/tmp/diff_new_pack.FafRpA/_old  2023-11-13 22:19:41.044880989 +0100
+++ /var/tmp/diff_new_pack.FafRpA/_new  2023-11-13 22:19:41.044880989 +0100
@@ -24,7 +24,7 @@
 %{!?_kf5_bugfix_version: %define _kf5_bugfix_version %(echo %{_kf5_version} | 
awk -F. '{print $1"."$2}')}
 %bcond_without released
 Name:           knotifications
-Version:        5.111.0
+Version:        5.112.0
 Release:        0
 Summary:        KDE Desktop notifications
 License:        LGPL-2.1-or-later


++++++ knotifications-5.111.0.tar.xz -> knotifications-5.112.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/knotifications-5.111.0/CMakeLists.txt 
new/knotifications-5.112.0/CMakeLists.txt
--- old/knotifications-5.111.0/CMakeLists.txt   2023-10-07 12:21:48.000000000 
+0200
+++ new/knotifications-5.112.0/CMakeLists.txt   2023-11-04 11:04:04.000000000 
+0100
@@ -1,12 +1,12 @@
 cmake_minimum_required(VERSION 3.16)
 
-set(KF_VERSION "5.111.0") # handled by release scripts
-set(KF_DEP_VERSION "5.111.0") # handled by release scripts
+set(KF_VERSION "5.112.0") # handled by release scripts
+set(KF_DEP_VERSION "5.112.0") # handled by release scripts
 project(KNotifications VERSION ${KF_VERSION})
 
 # ECM setup
 include(FeatureSummary)
-find_package(ECM 5.111.0  NO_MODULE)
+find_package(ECM 5.112.0  NO_MODULE)
 set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake 
Modules." URL "https://commits.kde.org/extra-cmake-modules";)
 feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND 
FATAL_ON_MISSING_REQUIRED_PACKAGES)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/knotifications-5.111.0/poqm/zh_CN/knotifications5_qt.po 
new/knotifications-5.112.0/poqm/zh_CN/knotifications5_qt.po
--- old/knotifications-5.111.0/poqm/zh_CN/knotifications5_qt.po 2023-10-07 
12:21:48.000000000 +0200
+++ new/knotifications-5.112.0/poqm/zh_CN/knotifications5_qt.po 2023-11-04 
11:04:04.000000000 +0100
@@ -1,7 +1,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: kdeorg\n"
-"PO-Revision-Date: 2023-09-16 10:08\n"
+"PO-Revision-Date: 2023-10-21 13:54\n"
 "Language-Team: Chinese Simplified\n"
 "Language: zh_CN\n"
 "MIME-Version: 1.0\n"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/knotifications-5.111.0/src/android/AndroidManifest.xml 
new/knotifications-5.112.0/src/android/AndroidManifest.xml
--- old/knotifications-5.111.0/src/android/AndroidManifest.xml  2023-10-07 
12:21:48.000000000 +0200
+++ new/knotifications-5.112.0/src/android/AndroidManifest.xml  2023-11-04 
11:04:04.000000000 +0100
@@ -1,2 +1,4 @@
 <?xml version="1.0" encoding="utf-8"?>
-<manifest package="org.kde.knotifications"/>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"; 
package="org.kde.knotifications">
+    <uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
+</manifest>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/knotifications-5.111.0/src/android/org/kde/knotifications/NotifyByAndroid.java
 
new/knotifications-5.112.0/src/android/org/kde/knotifications/NotifyByAndroid.java
--- 
old/knotifications-5.111.0/src/android/org/kde/knotifications/NotifyByAndroid.java
  2023-10-07 12:21:48.000000000 +0200
+++ 
new/knotifications-5.112.0/src/android/org/kde/knotifications/NotifyByAndroid.java
  2023-11-04 11:04:04.000000000 +0100
@@ -165,10 +165,20 @@
             }
         }
 
+        // pending intent flags backward compatibility
+        int PENDING_INTENT_FLAG_IMMUTABLE = 0;
+        int PENDING_INTENT_FLAG_MUTABLE = 0;
+        if (Build.VERSION.SDK_INT >= 23) {
+            PENDING_INTENT_FLAG_IMMUTABLE = PendingIntent.FLAG_IMMUTABLE;
+        }
+        if (Build.VERSION.SDK_INT >= 31) {
+            PENDING_INTENT_FLAG_MUTABLE = PendingIntent.FLAG_MUTABLE;
+        }
+
         // taping the notification shows the app
         Intent intent = new Intent(m_ctx.getPackageName() + 
NOTIFICATION_OPENED);
         intent.putExtra(NOTIFICATION_ID_EXTRA, notification.id);
-        PendingIntent contentIntent = PendingIntent.getBroadcast(m_ctx, 
m_uniquePendingIntentId++, intent, PendingIntent.FLAG_UPDATE_CURRENT);
+        PendingIntent contentIntent = PendingIntent.getBroadcast(m_ctx, 
m_uniquePendingIntentId++, intent, PendingIntent.FLAG_UPDATE_CURRENT | 
PENDING_INTENT_FLAG_IMMUTABLE);
         builder.setContentIntent(contentIntent);
 
         // actions
@@ -177,7 +187,7 @@
             Intent actionIntent = new Intent(m_ctx.getPackageName() + 
NOTIFICATION_ACTION);
             actionIntent.putExtra(NOTIFICATION_ID_EXTRA, notification.id);
             actionIntent.putExtra(NOTIFICATION_ACTION_ID_EXTRA, actionId);
-            PendingIntent pendingIntent = PendingIntent.getBroadcast(m_ctx, 
m_uniquePendingIntentId++, actionIntent, PendingIntent.FLAG_UPDATE_CURRENT);
+            PendingIntent pendingIntent = PendingIntent.getBroadcast(m_ctx, 
m_uniquePendingIntentId++, actionIntent, PendingIntent.FLAG_UPDATE_CURRENT | 
PENDING_INTENT_FLAG_IMMUTABLE);
             Notification.Action action = new Notification.Action.Builder(0, 
actionName, pendingIntent).build();
             builder.addAction(action);
             ++actionId;
@@ -187,7 +197,7 @@
         if (notification.inlineReplyLabel != null) {
             Intent replyIntent = new Intent(m_ctx.getPackageName() + 
NOTIFICATION_REPLIED);
             replyIntent.putExtra(NOTIFICATION_ID_EXTRA, notification.id);
-            PendingIntent pendingReplyIntent = 
PendingIntent.getBroadcast(m_ctx, m_uniquePendingIntentId++, replyIntent, 
PendingIntent.FLAG_UPDATE_CURRENT);
+            PendingIntent pendingReplyIntent = 
PendingIntent.getBroadcast(m_ctx, m_uniquePendingIntentId++, replyIntent, 
PendingIntent.FLAG_UPDATE_CURRENT | PENDING_INTENT_FLAG_MUTABLE);
 
             RemoteInput input = new RemoteInput.Builder(REMOTE_INPUT_KEY)
                 .setAllowFreeFormInput(true)
@@ -206,7 +216,7 @@
             deleteIntent.putExtra(NOTIFICATION_GROUP_EXTRA, 
notification.group);
         }
         Log.i(TAG, deleteIntent.getExtras() + " " + notification.id);
-        builder.setDeleteIntent(PendingIntent.getBroadcast(m_ctx, 
m_uniquePendingIntentId++, deleteIntent, PendingIntent.FLAG_UPDATE_CURRENT));
+        builder.setDeleteIntent(PendingIntent.getBroadcast(m_ctx, 
m_uniquePendingIntentId++, deleteIntent, PendingIntent.FLAG_UPDATE_CURRENT | 
PENDING_INTENT_FLAG_IMMUTABLE));
 
         m_notificationManager.notify(notification.id, builder.build());
     }
@@ -311,10 +321,15 @@
         builder.setGroupSummary(true);
 
         // monitor for deletion (which happens when the last child 
notification is closed)
+        int PENDING_INTENT_FLAG_IMMUTABLE = 0;
+        if (Build.VERSION.SDK_INT >= 23) {
+            PENDING_INTENT_FLAG_IMMUTABLE = PendingIntent.FLAG_IMMUTABLE;
+        }
+
         Intent deleteIntent = new Intent(m_ctx.getPackageName() + 
NOTIFICATION_DELETED);
         deleteIntent.putExtra(NOTIFICATION_GROUP_EXTRA, notification.group);
         deleteIntent.putExtra(NOTIFICATION_ID_EXTRA, group.groupId);
-        builder.setDeleteIntent(PendingIntent.getBroadcast(m_ctx, 
m_uniquePendingIntentId++, deleteIntent, PendingIntent.FLAG_UPDATE_CURRENT));
+        builder.setDeleteIntent(PendingIntent.getBroadcast(m_ctx, 
m_uniquePendingIntentId++, deleteIntent, PendingIntent.FLAG_UPDATE_CURRENT | 
PENDING_INTENT_FLAG_IMMUTABLE));
 
         // try to stay out of the normal id space for regular notifications
         m_notificationManager.notify(group.groupId, builder.build());

Reply via email to