Files
daily-notification-plugin/test-apps/daily-notification-test/capacitor.config.ts
Jose Olarte III d8a0eaf413 refactor(android,ios): rename package com.timesafari to org.timesafari.dailynotification
- Android: move plugin source to org/timesafari/dailynotification, update
  namespace, manifest package, and all package/imports; change intent actions
  to org.timesafari.daily.NOTIFICATION and DISMISS
- iOS: update bundle IDs, BGTask identifiers, subsystem labels, and queue
  names in Plugin and Xcode projects
- Capacitor: update plugin class registration and appIds in configs
- Test apps (android-test-app, daily-notification-test, ios-test-app):
  applicationId/bundleId, manifests, ProGuard, scripts, and docs
- Docs: bulk update references; add CONSUMING_APP_MIGRATION_COM_TO_ORG.md
  for consuming app migration

BREAKING CHANGE: Consuming apps must update plugin class to
org.timesafari.dailynotification.DailyNotificationPlugin, manifest
receivers/actions, and iOS BGTask identifiers per migration doc.
2026-03-12 14:26:07 +08:00

57 lines
1.9 KiB
TypeScript

import type { CapacitorConfig } from '@capacitor/cli';
import { TEST_USER_ZERO_CONFIG } from './src/config/test-user-zero';
const config: CapacitorConfig = {
appId: 'org.timesafari.dailynotification.test',
appName: 'Daily Notification Test',
webDir: 'dist',
plugins: {
Clipboard: {
// Enable clipboard functionality
},
DailyNotification: {
// Basic plugin configuration
debugMode: true,
enableNotifications: true,
// TimeSafari integration for User Zero
timesafariConfig: {
activeDid: TEST_USER_ZERO_CONFIG.identity.did,
endpoints: {
// Use getApiServerUrl() to get correct URL based on serverMode
projectsLastUpdated: `${TEST_USER_ZERO_CONFIG.getApiServerUrl()}${TEST_USER_ZERO_CONFIG.api.starsEndpoint}`
},
starredProjectsConfig: {
enabled: true,
starredPlanHandleIds: TEST_USER_ZERO_CONFIG.starredProjects.planIds,
fetchInterval: '0 8 * * *' // Daily at 8 AM
},
credentialConfig: {
jwtSecret: 'test-jwt-secret-for-user-zero-development-only',
tokenExpirationMinutes: TEST_USER_ZERO_CONFIG.api.jwtExpirationMinutes
}
},
// Network configuration
networkConfig: {
timeout: TEST_USER_ZERO_CONFIG.testing.timeoutMs,
retryAttempts: TEST_USER_ZERO_CONFIG.testing.retryAttempts,
retryDelay: TEST_USER_ZERO_CONFIG.testing.retryDelayMs
},
// Content fetch configuration (5 minutes before notification)
contentFetch: {
enabled: true,
schedule: `0 ${TEST_USER_ZERO_CONFIG.notifications.scheduleTime.split(':')[1]} * * *`,
fetchLeadTimeMinutes: TEST_USER_ZERO_CONFIG.notifications.fetchLeadTimeMinutes,
callbacks: {
onSuccess: 'handleStarsQuerySuccess',
onError: 'handleStarsQueryError'
}
}
}
}
};
export default config;