chore: bump plugin version to 1.2.1

Update package.json, iOS podspec, and Android plugin-version references
after fix for duplicate fallback notifications (cancel fetch-related
WorkManager jobs when scheduling daily notification).
This commit is contained in:
Jose Olarte III
2026-03-02 16:44:06 +08:00
parent c36781e440
commit aa0eaa5389
8 changed files with 12 additions and 12 deletions

View File

@@ -2713,7 +2713,7 @@ object ScheduleHelper {
try { try {
val entity = com.timesafari.dailynotification.entities.NotificationContentEntity( val entity = com.timesafari.dailynotification.entities.NotificationContentEntity(
scheduleId, scheduleId,
"1.2.0", "1.2.1",
null, null,
"daily", "daily",
config.title ?: "Daily Notification", config.title ?: "Daily Notification",

View File

@@ -734,7 +734,7 @@ public class DailyNotificationWorker extends Worker {
DailyNotificationStorageRoom room = new DailyNotificationStorageRoom(getApplicationContext()); DailyNotificationStorageRoom room = new DailyNotificationStorageRoom(getApplicationContext());
NotificationContentEntity entity = new NotificationContentEntity( NotificationContentEntity entity = new NotificationContentEntity(
content.getId() != null ? content.getId() : java.util.UUID.randomUUID().toString(), content.getId() != null ? content.getId() : java.util.UUID.randomUUID().toString(),
"1.2.0", "1.2.1",
null, null,
"daily", "daily",
content.getTitle(), content.getTitle(),

View File

@@ -17,7 +17,7 @@ import org.json.JSONObject
* Implements exponential backoff and network constraints * Implements exponential backoff and network constraints
* *
* @author Matthew Raymer * @author Matthew Raymer
* @version 1.2.0 * @version 1.2.1
*/ */
class FetchWorker( class FetchWorker(
appContext: Context, appContext: Context,
@@ -205,7 +205,7 @@ class FetchWorker(
val entity = com.timesafari.dailynotification.entities.NotificationContentEntity( val entity = com.timesafari.dailynotification.entities.NotificationContentEntity(
notificationId, notificationId,
"1.2.0", // Plugin version "1.2.1", // Plugin version
null, // timesafariDid - can be set if available null, // timesafariDid - can be set if available
"daily", "daily",
title, title,
@@ -301,7 +301,7 @@ class FetchWorker(
"timestamp": ${System.currentTimeMillis()}, "timestamp": ${System.currentTimeMillis()},
"content": "Daily notification content", "content": "Daily notification content",
"source": "mock_generator", "source": "mock_generator",
"version": "1.2.0" "version": "1.2.1"
} }
""".trimIndent() """.trimIndent()
return mockData.toByteArray() return mockData.toByteArray()

View File

@@ -21,7 +21,7 @@ import kotlinx.coroutines.runBlocking
* Implements TTL-at-fire logic and notification delivery * Implements TTL-at-fire logic and notification delivery
* *
* @author Matthew Raymer * @author Matthew Raymer
* @version 1.2.0 * @version 1.2.1
*/ */
/** /**
* Source of schedule request - tracks which code path triggered scheduling * Source of schedule request - tracks which code path triggered scheduling
@@ -251,7 +251,7 @@ class NotifyReceiver : BroadcastReceiver() {
val roomStorage = com.timesafari.dailynotification.storage.DailyNotificationStorageRoom(context) val roomStorage = com.timesafari.dailynotification.storage.DailyNotificationStorageRoom(context)
val entity = com.timesafari.dailynotification.entities.NotificationContentEntity( val entity = com.timesafari.dailynotification.entities.NotificationContentEntity(
notificationId, notificationId,
"1.2.0", // Plugin version "1.2.1", // Plugin version
null, // timesafariDid - can be set if available null, // timesafariDid - can be set if available
"daily", "daily",
config.title, config.title,

View File

@@ -267,7 +267,7 @@ class ReactivationManager(private val context: Context) {
// Create new notification content entry for missed alarm // Create new notification content entry for missed alarm
val notification = com.timesafari.dailynotification.entities.NotificationContentEntity( val notification = com.timesafari.dailynotification.entities.NotificationContentEntity(
notificationId, notificationId,
"1.2.0", // Plugin version "1.2.1", // Plugin version
null, // timesafariDid null, // timesafariDid
"daily", // notificationType "daily", // notificationType
"Daily Notification", "Daily Notification",
@@ -1037,7 +1037,7 @@ class ReactivationManager(private val context: Context) {
// Create new notification content entry for missed alarm // Create new notification content entry for missed alarm
val notification = com.timesafari.dailynotification.entities.NotificationContentEntity( val notification = com.timesafari.dailynotification.entities.NotificationContentEntity(
notificationId, notificationId,
"1.2.0", // Plugin version "1.2.1", // Plugin version
null, // timesafariDid null, // timesafariDid
"daily", // notificationType "daily", // notificationType
"Daily Notification", "Daily Notification",

View File

@@ -52,7 +52,7 @@ public class DailyNotificationStorageRoom {
private final ExecutorService executorService; private final ExecutorService executorService;
// Plugin version for migration tracking // Plugin version for migration tracking
private static final String PLUGIN_VERSION = "1.2.0"; private static final String PLUGIN_VERSION = "1.2.1";
/** /**
* Constructor * Constructor

View File

@@ -1,6 +1,6 @@
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = 'DailyNotificationPlugin' s.name = 'DailyNotificationPlugin'
s.version = '1.2.0' s.version = '1.2.1'
s.summary = 'Daily Notification Plugin for Capacitor' s.summary = 'Daily Notification Plugin for Capacitor'
s.license = 'MIT' s.license = 'MIT'
s.homepage = 'https://github.com/timesafari/daily-notification-plugin' s.homepage = 'https://github.com/timesafari/daily-notification-plugin'

View File

@@ -1,6 +1,6 @@
{ {
"name": "@timesafari/daily-notification-plugin", "name": "@timesafari/daily-notification-plugin",
"version": "1.2.0", "version": "1.2.1",
"description": "TimeSafari Daily Notification Plugin - Enterprise-grade daily notification functionality with dual scheduling, callback support, TTL-at-fire logic, and comprehensive observability across Mobile (Capacitor) and Desktop (Electron) platforms", "description": "TimeSafari Daily Notification Plugin - Enterprise-grade daily notification functionality with dual scheduling, callback support, TTL-at-fire logic, and comprehensive observability across Mobile (Capacitor) and Desktop (Electron) platforms",
"main": "dist/plugin.js", "main": "dist/plugin.js",
"module": "dist/esm/index.js", "module": "dist/esm/index.js",