From d9c540e2fb759659dc91657319d34d7d7a5bc881 Mon Sep 17 00:00:00 2001 From: atanasovg Date: Thu, 29 May 2014 18:51:38 +0300 Subject: [PATCH] Updated the Cuteness app to the latest Kimera. Removed the camera module from the BCL project. --- BCL.csproj | 11 ----------- application/application.android.ts | 3 +++ declarations.android.d.ts | 1 + 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/BCL.csproj b/BCL.csproj index a6a600b72..85c67fd7c 100644 --- a/BCL.csproj +++ b/BCL.csproj @@ -101,13 +101,6 @@ declarations.d.ts - - camera.d.ts - - - - camera.d.ts - declarations.d.ts @@ -166,7 +159,6 @@ - @@ -222,9 +214,6 @@ - - camera.d.ts - diff --git a/application/application.android.ts b/application/application.android.ts index 4d225544b..b8e80f99c 100644 --- a/application/application.android.ts +++ b/application/application.android.ts @@ -37,6 +37,9 @@ var initEvents = function () { if (androidApp.onActivityDestroyed) { androidApp.onActivityDestroyed(activity); } + + // TODO: This is a temporary workaround to force the V8's Garbage Collector, which will force the related Java Object to be collected. + gc(); }, onActivityPaused: function (activity: any) { if (activity === androidApp.currentActivity) { diff --git a/declarations.android.d.ts b/declarations.android.d.ts index 0f039afb3..f3d6acb33 100644 --- a/declarations.android.d.ts +++ b/declarations.android.d.ts @@ -340,6 +340,7 @@ declare module android { declare var app; declare var telerik; +declare var gc: () => any; declare module com { export module koushikdutta {