feat(android): implement file picker for data export
- Add @capawesome/capacitor-file-picker dependency - Update DataExportSection UI text to reflect new file picker behavior - Implement file picker in CapacitorPlatformService - Add debug logging for path handling - Fix logger to show messages in Capacitor environment WIP: File path handling still needs refinement
This commit is contained in:
@@ -21,7 +21,7 @@ function safeStringify(obj: unknown) {
|
||||
|
||||
export const logger = {
|
||||
log: (message: string, ...args: unknown[]) => {
|
||||
if (process.env.NODE_ENV !== "production") {
|
||||
if (process.env.NODE_ENV !== "production" || process.env.VITE_PLATFORM === "capacitor") {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(message, ...args);
|
||||
const argsString = args.length > 0 ? " - " + safeStringify(args) : "";
|
||||
@@ -29,7 +29,7 @@ export const logger = {
|
||||
}
|
||||
},
|
||||
warn: (message: string, ...args: unknown[]) => {
|
||||
if (process.env.NODE_ENV !== "production") {
|
||||
if (process.env.NODE_ENV !== "production" || process.env.VITE_PLATFORM === "capacitor") {
|
||||
// eslint-disable-next-line no-console
|
||||
console.warn(message, ...args);
|
||||
const argsString = args.length > 0 ? " - " + safeStringify(args) : "";
|
||||
|
||||
Reference in New Issue
Block a user