Remove the native trace infrastructure that was added solely for the iOS share-target investigation. This reverts the temporary share-extension and app-launch trace logging along with the APIs and debug UI built on top of it. - Remove getShareExtensionTrace/clearShareExtensionTrace/getAppLaunchTrace/ clearAppLaunchTrace from the native plugin, TS definitions, and web stubs - Remove appendTrace (ShareViewController) and appendAppLaunchTrace (SharedImageUtility) implementations and all call sites - Drop the share-extension-trace.log / app-launch-trace.log file handling - Delete ShareTargetDebugView, its /share-target-debug route, and the TestView entry point - Remove now-unused AppDelegate isTimesafariURL helper and launchURL local - Strip trace dump/alert logic from main.capacitor.ts Share-target behavior, plugin registration, image storage, SharedPhotoReady logic, Android, and the share-extension diagnostics snapshot are unchanged.
38 lines
1.0 KiB
TypeScript
38 lines
1.0 KiB
TypeScript
/**
|
|
* Type definitions for SharedImage plugin
|
|
*/
|
|
|
|
export interface SharedImageResult {
|
|
base64: string;
|
|
fileName: string;
|
|
}
|
|
|
|
export interface ShareExtensionDiagnostics {
|
|
shareExtensionLastStart: string | null;
|
|
sharedPhotoShareId: string | null;
|
|
sharedPhotoFilePath: string | null;
|
|
fileExists: boolean;
|
|
// TEMPORARY SHARE TARGET DIAGNOSTICS
|
|
pendingShareExists: boolean;
|
|
}
|
|
|
|
export interface SharedImagePlugin {
|
|
/**
|
|
* Get shared image data from native layer
|
|
* Returns base64 string and fileName, or null if no image exists
|
|
* Read-only on iOS: native metadata and file are left intact after retrieval (Phase 1C)
|
|
*/
|
|
getSharedImage(): Promise<SharedImageResult | null>;
|
|
|
|
/**
|
|
* Check if shared image exists without reading it
|
|
* Useful for quick checks before calling getSharedImage()
|
|
*/
|
|
hasSharedImage(): Promise<{ hasImage: boolean }>;
|
|
|
|
/**
|
|
* Diagnostic snapshot of Share Extension startup and pending share state (iOS)
|
|
*/
|
|
getShareExtensionDiagnostics(): Promise<ShareExtensionDiagnostics>;
|
|
}
|