From f72aeb486c65166724dacee883d994828b6ded62 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Fri, 8 Mar 2024 18:01:38 +0800 Subject: [PATCH] add release instructions for Android --- README.md | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 79a6a47f..3b29ae9c 100644 --- a/README.md +++ b/README.md @@ -422,11 +422,27 @@ make generate-background-material # Known issues -On Windows, loading a glTF (but NOT a glb) may crash due to a race condition between uploading resource data to GPU memory and being freed on the host side. +## Windows -This has been fixed in recent versions of Filament, but other bugs on Windows prevent upgrading. +Loading a glTF (but NOT a glb) may crash due to a race condition between uploading resource data to GPU memory and being freed on the host side. This has been fixed in recent versions of Filament, but other bugs on Windows prevent upgrading. Only workaround is to load a .glb file. -Only workaround is to load a .glb file. +## Android +In release mode, you must add the following to your `app/build.gradle`: + +``` + buildTypes { + release { + ... + shrinkResources false + minifyEnabled false + } + } +... +dependencies { + .... + implementation 'net.java.dev.jna:jna:5.10.0@aar' +} +``` # Thanks