Commit dbc48ca4 authored by Michael Thiessen's avatar Michael Thiessen Committed by Commit Bot

Exclude unused java classes from gvr_common_java aar

As far as I can tell this filters the rest of the unused java classes.

Please revert this CL if you see ClassNotFound Exceptions.

diagnose_bloat summary:
MonochromePublic.apk_Breakdown (-4,097 bytes)
    +1,731 bytes Zip Overhead
        -1 bytes Package metadata size
    -5,827 bytes Java code size
MonochromePublic.apk_Specifics
   -15,137 bytes normalized apk size
   -11,040 bytes main dex size

Bug: 944791
Change-Id: I53219489d0289655a72405ab1e06cbeeb065d4f4
Reviewed-on: https://chromium-review.googlesource.com/944791Reviewed-by: default avatarBrandon Jones <bajones@chromium.org>
Commit-Queue: Michael Thiessen <mthiesse@chromium.org>
Cr-Commit-Position: refs/heads/master@{#540549}
parent 2362d827
......@@ -40,9 +40,9 @@ android_aar_prebuilt("gvr_common_java") {
"*google/vr/cardboard/VrParamsProviderFactory.class",
"*google/vr/cardboard/VrParamsProviderFactory\$ContentProviderClientHandle.class",
"*google/vr/cardboard/VrSettingsProviderContract.class",
# TODO(mthiesse): Figure out whether all files in this directory are needed.
"*google/vr/internal/controller/*",
"*google/vr/internal/controller/ControllerServiceBridge.class",
"*google/vr/internal/controller/ControllerServiceBridge\$*",
"*google/vr/internal/controller/NativeCallbacks.class",
"*google/vr/ndk/base/AndroidCompat.class",
"*google/vr/ndk/base/BuildConstants.class",
"*google/vr/ndk/base/DaydreamApi*.class",
......@@ -55,23 +55,25 @@ android_aar_prebuilt("gvr_common_java") {
"*google/vr/ndk/base/SdkConfigurationReader.class",
"*google/vr/ndk/base/TraceCompat.class",
"*google/vr/ndk/base/Version.class",
# TODO(mthiesse): Figure out whether all files in this directory are needed.
"*google/vr/sdk/common/deps/*",
# TODO(mthiesse): Figure out whether all files in this directory are needed.
"*google/vr/sdk/proto/nano/*",
# TODO(mthiesse): Figure out whether all files in this directory are needed.
"*google/vr/vrcore/base/api/*",
# TODO(mthiesse): Figure out whether all files in this directory are needed.
"*google/vr/vrcore/common/api/*",
# TODO(mthiesse): Figure out whether all files in this directory are needed.
"*google/vr/vrcore/controller/api/*",
# TODO(mthiesse): Figure out whether all files in this directory are needed.
"*google/vr/sdk/common/deps/a.class",
"*google/vr/sdk/common/deps/b.class",
"*google/vr/sdk/common/deps/c.class",
"*google/vr/sdk/proto/nano/CardboardDevice.class",
"*google/vr/sdk/proto/nano/CardboardDevice\$*",
"*google/vr/sdk/proto/nano/Display.class",
"*google/vr/sdk/proto/nano/Display\$*",
"*google/vr/sdk/proto/nano/SdkConfiguration.class",
"*google/vr/sdk/proto/nano/SdkConfiguration\$*",
"*google/vr/vrcore/base/api/ParcelableProto.class",
"*google/vr/vrcore/base/api/VrCoreConstants.class",
"*google/vr/vrcore/base/api/VrCoreNotAvailableException.class",
"*google/vr/vrcore/base/api/VrCoreUtils.class",
"*google/vr/vrcore/base/api/VrCoreUtils\$*",
"*google/vr/vrcore/common/api/IDaydream*",
"*google/vr/vrcore/common/api/ITransition*",
"*google/vr/vrcore/common/api/IVrCore*",
"*google/vr/vrcore/controller/api/IController*",
"*google/vr/vrcore/controller/api/Controller*",
"*google/vr/vrcore/library/api/*",
]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment