Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Removed Google Guava dependency from firebase_auth. #762

Merged
merged 3 commits into from Sep 5, 2018

Conversation

slightfoot
Copy link
Member

REASON FOR CHANGE
Flutter apps that include the firebase_auth plugin would easily reach the 64K dex limit because of the addition of Guava. The guava library was adding considerable compilation time and size to the final APK. Expectations of new Flutter developers to grasp that they need to add Multi-dex and then Proguard to fix this issue is really silly.

CHANGE MADE
Replaced usages of guava's: ImmutableList and ImmutableMap with platform Collections.unmodifiableList() and Collections.unmodifiableMap().

This simple change makes a huge difference.

@slightfoot
Copy link
Member Author

ping @kroikie

@kroikie kroikie self-assigned this Sep 5, 2018
@dnfield
Copy link
Contributor

dnfield commented Sep 5, 2018

LGTM

@dnfield dnfield merged commit a2af960 into flutter:master Sep 5, 2018
@slightfoot
Copy link
Member Author

Thanks @dnfield

nichtverstehen pushed a commit to nichtverstehen/plugins that referenced this pull request Sep 6, 2018
* Removed Google Guava dependency.

* Fix formatting.

* Fixed more formatted.
andreidiaconu pushed a commit to andreidiaconu/plugins that referenced this pull request Feb 17, 2019
* Removed Google Guava dependency.

* Fix formatting.

* Fixed more formatted.
andreidiaconu added a commit to andreidiaconu/plugins that referenced this pull request Feb 17, 2019
julianscheel pushed a commit to jusst-engineering/plugins that referenced this pull request Mar 11, 2020
* Removed Google Guava dependency.

* Fix formatting.

* Fixed more formatted.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
4 participants