chore(release): bump plugin version to 2.0.0

- package.json, package-lock.json
- ios/Plugin/Info.plist (CFBundleShortVersionString)
- ios/DailyNotificationPlugin.podspec
- Android: DailyNotificationPlugin.kt, NotifyReceiver.kt, FetchWorker.kt,
  ReactivationManager.kt (header @version and runtime version payloads)
- src/observability.ts (@version)

Major bump for com→org package rename (breaking change for consumers).
This commit is contained in:
Jose Olarte III
2026-03-12 14:37:24 +08:00
parent d8a0eaf413
commit ca6a75ded8
9 changed files with 14 additions and 14 deletions

View File

@@ -35,7 +35,7 @@ import org.json.JSONObject
* Bridges Capacitor calls to native Android functionality * Bridges Capacitor calls to native Android functionality
* *
* @author Matthew Raymer * @author Matthew Raymer
* @version 1.3.3 * @version 2.0.0
*/ */
@CapacitorPlugin(name = "DailyNotification") @CapacitorPlugin(name = "DailyNotification")
open class DailyNotificationPlugin : Plugin() { open class DailyNotificationPlugin : Plugin() {

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.3.3 * @version 2.0.0
*/ */
class FetchWorker( class FetchWorker(
appContext: Context, appContext: Context,
@@ -205,7 +205,7 @@ class FetchWorker(
val entity = org.timesafari.dailynotification.entities.NotificationContentEntity( val entity = org.timesafari.dailynotification.entities.NotificationContentEntity(
notificationId, notificationId,
"1.3.3", // Plugin version "2.0.0", // 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.3.3" "version": "2.0.0"
} }
""".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.3.3 * @version 2.0.0
*/ */
/** /**
* Source of schedule request - tracks which code path triggered scheduling * Source of schedule request - tracks which code path triggered scheduling
@@ -257,7 +257,7 @@ class NotifyReceiver : BroadcastReceiver() {
val roomStorage = org.timesafari.dailynotification.storage.DailyNotificationStorageRoom(context) val roomStorage = org.timesafari.dailynotification.storage.DailyNotificationStorageRoom(context)
val entity = org.timesafari.dailynotification.entities.NotificationContentEntity( val entity = org.timesafari.dailynotification.entities.NotificationContentEntity(
notificationId, notificationId,
"1.3.3", // Plugin version "2.0.0", // Plugin version
null, // timesafariDid - can be set if available null, // timesafariDid - can be set if available
"daily", "daily",
config.title, config.title,

View File

@@ -282,7 +282,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 = org.timesafari.dailynotification.entities.NotificationContentEntity( val notification = org.timesafari.dailynotification.entities.NotificationContentEntity(
notificationId, notificationId,
"1.3.3", // Plugin version "2.0.0", // Plugin version
null, // timesafariDid null, // timesafariDid
"daily", // notificationType "daily", // notificationType
"Daily Notification", "Daily Notification",
@@ -1052,7 +1052,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 = org.timesafari.dailynotification.entities.NotificationContentEntity( val notification = org.timesafari.dailynotification.entities.NotificationContentEntity(
notificationId, notificationId,
"1.3.3", // Plugin version "2.0.0", // Plugin version
null, // timesafariDid null, // timesafariDid
"daily", // notificationType "daily", // notificationType
"Daily Notification", "Daily Notification",

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.3.3' s.version = '2.0.0'
s.summary = 'Daily Notification Plugin for Capacitor' s.summary = 'Daily Notification Plugin for Capacitor'
s.license = 'MIT' s.license = 'MIT'
s.homepage = 'https://gitea.anomalistdesign.com/trent_larson/daily-notification-plugin' s.homepage = 'https://gitea.anomalistdesign.com/trent_larson/daily-notification-plugin'

View File

@@ -56,7 +56,7 @@
<!-- Version --> <!-- Version -->
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>1.3.3</string> <string>2.0.0</string>
<!-- Build Number --> <!-- Build Number -->
<key>CFBundleVersion</key> <key>CFBundleVersion</key>

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "@timesafari/daily-notification-plugin", "name": "@timesafari/daily-notification-plugin",
"version": "1.3.3", "version": "2.0.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@timesafari/daily-notification-plugin", "name": "@timesafari/daily-notification-plugin",
"version": "1.3.3", "version": "2.0.0",
"license": "MIT", "license": "MIT",
"workspaces": [ "workspaces": [
"packages/*" "packages/*"

View File

@@ -1,6 +1,6 @@
{ {
"name": "@timesafari/daily-notification-plugin", "name": "@timesafari/daily-notification-plugin",
"version": "1.3.3", "version": "2.0.0",
"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",

View File

@@ -3,7 +3,7 @@
* Provides structured logging, event codes, and health monitoring * Provides structured logging, event codes, and health monitoring
* *
* @author Matthew Raymer * @author Matthew Raymer
* @version 1.3.3 * @version 2.0.0
*/ */
import { import {