Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect oversized bundles in release builds #7

Open
10erlosh opened this issue Nov 18, 2022 · 1 comment
Open

Detect oversized bundles in release builds #7

10erlosh opened this issue Nov 18, 2022 · 1 comment

Comments

@10erlosh
Copy link

10erlosh commented Nov 18, 2022

Hi!

Great library, thanks!

I'm using

        OversizeBundleRegistrar.INSTANCE.register(s -> {
            // log s to crashlytics
            return Unit.INSTANCE;
        });

to send oversize detections to Crashlytics, which works fine on debug builds but seems not to work in release builds.

implementation 'com.pnuema.android:savestateobserver:2.8.0'

@barnhill
Copy link
Owner

barnhill commented Dec 5, 2022

Did you configure it with the initializer in the debug folder of the project? If so the initializer like in the example app in this repo will only register the listener for debug builds. You have to call the registrar in the build variant that you want to observe in. The sample app in this repo only does it for debug builds but you can absolutely do it on release build variants.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants