From 7dcfecffab10c3b253975a84f711b46111070bf4 Mon Sep 17 00:00:00 2001 From: Nathan Walker Date: Sat, 26 Feb 2022 10:15:12 -0800 Subject: [PATCH] fix: memory leaks around image picking/saving to device --- apps/toolbox/package.json | 3 +- apps/toolbox/src/main-page.xml | 1 + apps/toolbox/src/pages/image-handling.ts | 54 +++++++++++++++++++++++ apps/toolbox/src/pages/image-handling.xml | 13 ++++++ packages/core/image-asset/index.ios.ts | 11 +++-- 5 files changed, 75 insertions(+), 7 deletions(-) create mode 100644 apps/toolbox/src/pages/image-handling.ts create mode 100644 apps/toolbox/src/pages/image-handling.xml diff --git a/apps/toolbox/package.json b/apps/toolbox/package.json index 5854202d0..19708a5cd 100644 --- a/apps/toolbox/package.json +++ b/apps/toolbox/package.json @@ -8,7 +8,8 @@ }, "dependencies": { "@nativescript/core": "file:../../packages/core", - "nativescript-theme-core": "file:../../node_modules/nativescript-theme-core" + "nativescript-theme-core": "file:../../node_modules/nativescript-theme-core", + "@nativescript/imagepicker": "^1.0.6" }, "devDependencies": { "@nativescript/android": "alpha", diff --git a/apps/toolbox/src/main-page.xml b/apps/toolbox/src/main-page.xml index 34a1d1a22..d532edcf2 100644 --- a/apps/toolbox/src/main-page.xml +++ b/apps/toolbox/src/main-page.xml @@ -10,6 +10,7 @@