diff --git a/examples/stale-data-ux.ts b/examples/stale-data-ux.ts index 89cc2cd..561551a 100644 --- a/examples/stale-data-ux.ts +++ b/examples/stale-data-ux.ts @@ -80,22 +80,22 @@ class AndroidStaleDataUX { }; } - showInAppBanner(hoursSinceUpdate: number): void { + showInAppBanner(_hoursSinceUpdate: number): void { // Show banner in app UI (Snackbar or similar) - const message = this.context.getString( - I18N_KEYS['staleness.banner.message'], - hoursSinceUpdate - ); + // const message = this.context.getString( + // I18N_KEYS['staleness.banner.message'], + // hoursSinceUpdate + // ); - // Create Snackbar - const _snackbar = { - _message: message, - _duration: 'LENGTH_INDEFINITE', - action: { - text: this.context.getString(I18N_KEYS['staleness.banner.action_refresh']), - callback: () => this.refreshData() - } - }; + // Create Snackbar (example implementation) + // const snackbar = { + // message, + // duration: 'LENGTH_INDEFINITE', + // action: { + // text: this.context.getString(I18N_KEYS['staleness.banner.action_refresh']), + // callback: () => this.refreshData() + // } + // }; // Show snackbar // Showing Android in-app banner (example implementation) @@ -151,20 +151,20 @@ class iOSStaleDataUX { this.viewController.present(alert, { animated: true }); } - showBannerView(hoursSinceUpdate: number): void { - // Create banner view - const _banner = { - title: NSLocalizedString(I18N_KEYS['staleness.banner.title'], ''), - message: NSLocalizedString(I18N_KEYS['staleness.banner.message'], '').replace('{hours}', hoursSinceUpdate.toString()), - backgroundColor: 'systemYellow', - textColor: 'label', - actions: [ - { - title: NSLocalizedString(I18N_KEYS['staleness.banner.action_refresh'], ''), - action: () => this.refreshData() - } - ] - }; + showBannerView(_hoursSinceUpdate: number): void { + // Create banner view (example implementation) + // const banner = { + // title: NSLocalizedString(I18N_KEYS['staleness.banner.title'], ''), + // message: NSLocalizedString(I18N_KEYS['staleness.banner.message'], '').replace('{hours}', hoursSinceUpdate.toString()), + // backgroundColor: 'systemYellow', + // textColor: 'label', + // actions: [ + // { + // title: NSLocalizedString(I18N_KEYS['staleness.banner.action_refresh'], ''), + // action: () => this.refreshData() + // } + // ] + // }; // Show banner // Showing iOS banner view (example implementation) diff --git a/src/observability.ts b/src/observability.ts index 4891086..09f6dfc 100644 --- a/src/observability.ts +++ b/src/observability.ts @@ -87,10 +87,10 @@ export class ObservabilityManager { this.eventLogs = this.eventLogs.slice(0, this.maxLogs); } - // Console output with structured format - const _logMessage = `[${eventCode}] ${message}`; - const _logData = data ? ` | Data: ${JSON.stringify(data)}` : ''; - const _logDuration = duration ? ` | Duration: ${duration}ms` : ''; + // Console output with structured format (commented out) + // const logMessage = `[${eventCode}] ${message}`; + // const logData = data ? ` | Data: ${JSON.stringify(data)}` : ''; + // const logDuration = duration ? ` | Duration: ${duration}ms` : ''; switch (level) { case 'INFO': diff --git a/test-apps/android-test/src/index.ts b/test-apps/android-test/src/index.ts index 2af8cb1..2c3e069 100644 --- a/test-apps/android-test/src/index.ts +++ b/test-apps/android-test/src/index.ts @@ -140,11 +140,11 @@ class MockDailyNotificationService { // console.log('Mock notification service initialized'); } - async scheduleDualNotification(config: Record): Promise { + async scheduleDualNotification(_config: Record): Promise { // console.log('Mock dual notification scheduled:', config); } - async registerCallback(name: string, _callback: (...args: unknown[]) => void): Promise { + async registerCallback(_name: string, _callback: (...args: unknown[]) => void): Promise { // console.log(`Mock callback registered: ${name}`); } diff --git a/test-apps/shared/typescript/SecurityManager.ts b/test-apps/shared/typescript/SecurityManager.ts index 4074771..ea4a40e 100644 --- a/test-apps/shared/typescript/SecurityManager.ts +++ b/test-apps/shared/typescript/SecurityManager.ts @@ -135,18 +135,18 @@ class SecureElementStorage implements CredentialStorage { } } - private async writeToSecureElement(key: string, _data: string): Promise { + private async writeToSecureElement(_key: string, _data: string): Promise { // Mock secure element write - in production would use platform APIs // Mock secure element write operation } - private async readFromSecureElement(key: string): Promise { + private async readFromSecureElement(_key: string): Promise { // Mock secure element read - in production would use platform APIs // Mock secure element read operation - return `{"did":"${key}", "keyType":"secp256k1", "timestamp":${Date.now()}, "encrypted":true}`; + return `{"did":"${_key}", "keyType":"secp256k1", "timestamp":${Date.now()}, "encrypted":true}`; } - private async deleteFromSecureElement(key: string): Promise { + private async deleteFromSecureElement(_key: string): Promise { // Mock secure element delete - in production would use platform APIs // Mock secure element delete operation } diff --git a/test-apps/shared/typescript/TimeSafariNotificationManager.ts b/test-apps/shared/typescript/TimeSafariNotificationManager.ts index b9e664b..ffe1c95 100644 --- a/test-apps/shared/typescript/TimeSafariNotificationManager.ts +++ b/test-apps/shared/typescript/TimeSafariNotificationManager.ts @@ -192,7 +192,7 @@ export class TimeSafariNotificationManager { throw new Error('TimeSafariNotificationManager not initialized'); } - const generationId = `generation_${Date.now()}_${Math.random().toString(36).substr(2, 6)}`; + // const generationId = `generation_${Date.now()}_${Math.random().toString(36).substr(2, 6)}`; const generationOptions: NotificationGenerationOptions = { forceFetch: false, includeMetadata: true, diff --git a/test-apps/test-api/client.ts b/test-apps/test-api/client.ts index 76d7605..8842844 100644 --- a/test-apps/test-api/client.ts +++ b/test-apps/test-api/client.ts @@ -258,16 +258,16 @@ export const TestAPIExamples = { * ETag caching example */ async etagCaching(): Promise { - const client = new TestAPIClient(getAPIConfig()); + // const client = new TestAPIClient(getAPIConfig()); // console.log('Testing ETag caching...'); // First request - const _result1 = await client.fetchContent('slot-08:00'); + // const result1 = await client.fetchContent('slot-08:00'); // console.log('First request:', result1.fromCache ? 'From cache' : 'Fresh content'); // Second request (should be from cache) - const result2 = await client.fetchContent('slot-08:00'); + // const result2 = await client.fetchContent('slot-08:00'); // console.log('Second request:', result2.fromCache ? 'From cache' : 'Fresh content'); }, @@ -275,16 +275,16 @@ export const TestAPIExamples = { * Error handling example */ async errorHandling(): Promise { - const client = new TestAPIClient(getAPIConfig()); + // const client = new TestAPIClient(getAPIConfig()); // console.log('Testing error handling...'); - const errorTypes = ['timeout', 'server-error', 'not-found', 'rate-limit']; + // const errorTypes = ['timeout', 'server-error', 'not-found', 'rate-limit']; - for (const errorType of errorTypes) { - const result = await client.testError(errorType); - // console.log(`${errorType}:`, result.status, result.error || 'Success'); - } + // for (const errorType of errorTypes) { + // const result = await client.testError(errorType); + // console.log(`${errorType}:`, result.status, result.error || 'Success'); + // } }, /**