feat(android): implement Phase 1 TimeSafari integration infrastructure
- Extend ConfigureOptions interface with activeDid integration options - Add ActiveDid management methods to DailyNotificationPlugin interface - Create DailyNotificationJWTManager for Android JWT authentication - Extend DailyNotificationFetcher with Endorser.ch API support - Enhance Android plugin with TimeSafari integration components - Implement Phase 1 ActiveDid methods for web platform - Update all test mocks to include new interface methods - Add comprehensive error handling and logging Phase 1 delivers: ✅ Extended TypeScript interfaces ✅ Android JWT authentication manager ✅ Enhanced Android fetcher with Endorser.ch APIs ✅ Integrated activeDid management methods ✅ Cross-platform interface compliance ✅ All tests passing Ready for Phase 2: ActiveDid Integration & TimeSafari API Enhancement
This commit is contained in:
@@ -49,6 +49,13 @@ describe('DailyNotification Advanced Scenarios', () => {
|
||||
registerCallback: jest.fn(),
|
||||
unregisterCallback: jest.fn(),
|
||||
getRegisteredCallbacks: jest.fn(),
|
||||
|
||||
// Phase 1: ActiveDid Management Methods
|
||||
setActiveDidFromHost: jest.fn(),
|
||||
onActiveDidChange: jest.fn(),
|
||||
refreshAuthenticationForNewIdentity: jest.fn(),
|
||||
clearCacheForNewIdentity: jest.fn(),
|
||||
updateBackgroundTaskIdentity: jest.fn(),
|
||||
};
|
||||
plugin = new DailyNotification(mockPlugin);
|
||||
});
|
||||
|
||||
@@ -63,6 +63,13 @@ describe('DailyNotification Plugin', () => {
|
||||
registerCallback: jest.fn(),
|
||||
unregisterCallback: jest.fn(),
|
||||
getRegisteredCallbacks: jest.fn(),
|
||||
|
||||
// Phase 1: ActiveDid Management Methods
|
||||
setActiveDidFromHost: jest.fn(),
|
||||
onActiveDidChange: jest.fn(),
|
||||
refreshAuthenticationForNewIdentity: jest.fn(),
|
||||
clearCacheForNewIdentity: jest.fn(),
|
||||
updateBackgroundTaskIdentity: jest.fn(),
|
||||
};
|
||||
|
||||
// Create plugin instance with mock
|
||||
|
||||
@@ -54,6 +54,13 @@ describe('DailyNotification Edge Cases', () => {
|
||||
registerCallback: jest.fn(),
|
||||
unregisterCallback: jest.fn(),
|
||||
getRegisteredCallbacks: jest.fn(),
|
||||
|
||||
// Phase 1: ActiveDid Management Methods
|
||||
setActiveDidFromHost: jest.fn(),
|
||||
onActiveDidChange: jest.fn(),
|
||||
refreshAuthenticationForNewIdentity: jest.fn(),
|
||||
clearCacheForNewIdentity: jest.fn(),
|
||||
updateBackgroundTaskIdentity: jest.fn(),
|
||||
};
|
||||
plugin = new DailyNotification(mockPlugin);
|
||||
});
|
||||
|
||||
@@ -53,6 +53,13 @@ describe('DailyNotification Enterprise Scenarios', () => {
|
||||
registerCallback: jest.fn(),
|
||||
unregisterCallback: jest.fn(),
|
||||
getRegisteredCallbacks: jest.fn(),
|
||||
|
||||
// Phase 1: ActiveDid Management Methods
|
||||
setActiveDidFromHost: jest.fn(),
|
||||
onActiveDidChange: jest.fn(),
|
||||
refreshAuthenticationForNewIdentity: jest.fn(),
|
||||
clearCacheForNewIdentity: jest.fn(),
|
||||
updateBackgroundTaskIdentity: jest.fn(),
|
||||
};
|
||||
plugin = new DailyNotification(mockPlugin);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user