Commit Graph

10 Commits

Author SHA1 Message Date
Jeff McGlynn
9fe60a6368 Add proguard annotations for code used by native/reflection (#1207)
Filament references a few classes from native code and by reflections,
so when proguarding binaries we typically had to add an exception for
filament to make it run:

-keep class com.google.android.filament.** {*;}

In a compiled .dex file, the filament namespace takes about 120kb
(before compression), even if the classes aren't used.

To enable proguarding and stripping out unused filament classes,
introduce a UsedByNative and UsedByReflection annotation to explicitly
mark classes that need to be kept in the dex, so that the rest can be
potentially stripped out.

In my testing, this reduces the filament namespace in the .dex from
120kb->40kb, which translates to about 30kb apk size savings after
compression.
2019-05-20 21:02:54 -07:00
Ben Doherty
8b7c2159d3 Fix issue with Windows JAWT swapchains (#1021) 2019-03-25 14:41:46 -07:00
Ben Doherty
e5eb29dc92 Add desktop JNI bindings for filamat (#791) 2019-02-08 09:59:35 -08:00
Ben Doherty
eed424530d Fix race condition in FilamentPanel (#287) 2018-09-24 13:52:36 -07:00
Romain Guy
4da8cbc2f0 Compile Java APIs against Java 1.8 (#199) 2018-09-04 10:18:37 -07:00
shartte
e6d5a85ec8 clang-cl warning fixes (#83)
* Disable certain MSVC-specific deprecation warnings

* clang-cl.exe warning fixes
2018-08-14 12:55:04 -07:00
Tact Yoshida
ad49986245 Remove execute permissions 2018-08-06 10:36:54 -07:00
Romain Guy
e96179e03f Tabs -> spaces 2018-08-03 20:31:22 -07:00
Romain Guy
9a988d9401 Make Java builds optional
Use build.sh -j to disable Java builds
2018-08-03 20:21:28 -07:00
Romain Guy
b3d758f3b3 Initial commit 2018-08-03 10:38:22 -07:00