chore: Upgrade to RN 71 (#1465)

* chore: Upgrade Example to RN 0.71

* chore: Upgrade all libs

* fix: Fix CameraRoll installation

* Update Gradle Tools

* fix: Fix buildscripts

* Clean out build.gradle

* fix: Fix Kotlin setup

* fix: Move kotlin-android dependency to lib

* Move `_setGlobalConsole`

* Update gradle-wrapper.properties

* Rebuild lockfiles

* chore: Update build:gradle

* Update StatusBarBlurBackground.tsx

* Use Java 11 in Workflows

* Update MediaPage.tsx

* Add `google` repository to build.gradle

* Double Java Heap size

* Increase heap size

* Alternative args

* Update build.gradle
This commit is contained in:
Marc Rousavy
2023-02-09 11:52:41 +01:00
committed by GitHub
parent 28a43f716f
commit 11d1e7178d
35 changed files with 7549 additions and 6674 deletions

5
src/globals.d.ts vendored
View File

@@ -17,3 +17,8 @@ declare var _WORKLET: true | undefined;
* A native logging function (outputs to Xcode console/Android Logcat)
*/
declare var _log: (message: string) => void | undefined;
/**
* Set a Proxy for global.console in this Runtime
*/
declare var _setGlobalConsole: (console: unknown) => void;

View File

@@ -47,7 +47,6 @@ export function useFrameProcessor(frameProcessor: FrameProcessor, dependencies:
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
info: capturableConsole.info.__callAsync,
};
// @ts-expect-error _setGlobalConsole is set by RuntimeDecorator::decorateRuntime
_setGlobalConsole(console);
// @ts-expect-error
global.didSetConsole = true;