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

APK Expansion file usage #2215

Closed
leifcr opened this issue Oct 31, 2018 · 20 comments
Closed

APK Expansion file usage #2215

leifcr opened this issue Oct 31, 2018 · 20 comments
Labels
e2-days Effort: < 5 days p2-medium Necessary but not urgent concern. Resolve when possible.

Comments

@leifcr
Copy link

leifcr commented Oct 31, 2018

Please provide info on using APK expansion files in flutter.

@zoechi
Copy link

zoechi commented Oct 31, 2018

@Hixie Hixie transferred this issue from flutter/flutter Jan 16, 2019
@sfshaza2 sfshaza2 added p2-medium Necessary but not urgent concern. Resolve when possible. e2-days Effort: < 5 days labels Jan 28, 2019
@AnNEDoMini
Copy link

Any update here? Some guidelines for both platforms

@sfshaza2
Copy link
Contributor

@leifcr, I've asked the relevant engineers, who aren't sure. We welcome input from those who know.

@leifcr
Copy link
Author

leifcr commented Aug 29, 2019

@sfshaza2 Really blank here, as I tried hacking it together, but ended up downloading resources outside of play store (not ideal), but solved the problem until there is an official way to do this in flutter.

@pascalfriedrich
Copy link

Any updates on this?

@sfshaza2
Copy link
Contributor

@tvolkert, who might be able to shed light on this?

@tvolkert
Copy link
Contributor

tvolkert commented Jan 7, 2020

Users should just use app bundles these days.

@pascalfriedrich
Copy link

@tvolkert
And what if even the app bundle is larger then 150mb? In my case, the app has a huge amount of assets/soundfiles and there is no way to stay below 150mb.

@tvolkert
Copy link
Contributor

tvolkert commented Jan 9, 2020

@blasten do you know the guidance here?

@blasten
Copy link

blasten commented Jan 10, 2020

It sounds like to properly support this feature, we would need to provide control over what goes in the APK/AAB file and what goes in the obb files. Then, a mechanism for unzipping and consuming these files in the embedding.

@blasten
Copy link

blasten commented Jan 10, 2020

@pascalfriedrich are you able to lazily load the sound files and other heavy assets over the network from your Flutter app?

@Sun3
Copy link
Contributor

Sun3 commented Jan 21, 2020

Is there an updated status to this issue? I also have have an app that the app bundle is greater than 150 MB because of proprietary assets and the option to download from internet is not an option.

How would you submit the app to Google Play since it does not allow the files size more than 150 MB?

Of course time is of the essence since the app cannot be released. Using flutter build apk --release --split-per-abi does not work since the file is still larger because of the flutter asset files.

Thanks.

@pascalfriedrich
Copy link

@blasten Sure, but the owner does not have a server where the data can be loaded. We are talking about 1000 users with 250mb assets (soundfiles) each. I will see what I can do. Sooner or later the way over the expansionfiles would be the better one.

@WallyHale
Copy link

I'm surprised it's so quiet in here .. we are moving all our apps to Flutter, however a few of them are quite large with assets (AR, audio and image bundles), but at the moment it doesn't seem we have the OBB / Expansion file option that we do with native Android? It seems like quite an oversight for Flutter, if we are restricted to the very low modern standard upload limits of 100Mb for APK and 150Mb for app bundle!

@ollyde
Copy link

ollyde commented Feb 26, 2020

I have this issue too except my app is over 150mb with just essential libraries, not including assets. Nice one Google; why can’t they just take the Apple route and allow us to upload large Apps, not like they are poor. 150mb in 2020 is ridiculous.

On a side note, why is this closed? There was no solution.

@WallyHale
Copy link

I have this issue too except my app is over 150mb with just essential libraries, not including assets. Nice one Google; why can’t they just take the Apple route and allow us to upload large Apps, not like they are poor. 150mb in 2020 is ridiculous.

On a side note, why is this closed? There was no solution.

It's not closed, the thread that mentioned this one (and is therefore visibly linked) is closed.

I agree, in this day and age, 150mb is nothing! APK size is only 100 mind you! I'm not holding my breath on them increasing it, it's unusual that Apple is ahead of the curve, and I can only hope that we get expansion file support, as it will be a more long term solution.

I'm flabbergasted that it isn't already included or being prioritised and shouted about!

@ollyde
Copy link

ollyde commented Feb 26, 2020

I have this issue too except my app is over 150mb with just essential libraries, not including assets. Nice one Google; why can’t they just take the Apple route and allow us to upload large Apps, not like they are poor. 150mb in 2020 is ridiculous.
On a side note, why is this closed? There was no solution.

It's not closed, the thread that mentioned this one (and is therefore visibly linked) is closed.

I agree, in this day and age, 150mb is nothing! APK size is only 100 mind you! I'm not holding my breath on them increasing it, it's unusual that Apple is ahead of the curve, and I can only hope that we get expansion file support, as it will be a more long term solution.

I'm flabbergasted that it isn't already included or being prioritised and shouted about!

Yes, well i feel Apple is always ahead of the curve. We spend so much more time faffing around with Android dev than anything else 😎 I mean subscriptions is 27 steps to get a token, Apple is 3.

If are both are closed with no solutions should I make a new ticket?

@xster
Copy link
Member

xster commented Feb 26, 2020

/move flutter/flutter

@sfshaza2
Copy link
Contributor

After escalating to engineering, I've opened a new issue in the flutter/flutter repo, flutter/flutter#51522. Please upvote that issue if this is important to you.

@xster
Copy link
Member

xster commented Feb 27, 2020

I'm commenting here so the thread can get notification but please respond and follow along on flutter/flutter#51522.

To help us understand this challenge a bit more, can people share a bit more context on the circumstances involved in running into this issue?

Anonymized screenshots of the APK analyzer breakdown in Android Studio is the most useful. Otherwise, it would be very helpful to get the breakdown of

  • Total compressed size of assets per DPI breakdown
  • Whether you're shipping APKs or app bundles
  • How much of the size are from dex files
  • Compressed sizes of the native libraries in the app and the ABIs breakdown
  • Whether you had an existing Android app that's already using the PlayCore API and dynamic feature modules
  • Plugins used
  • Compressed size of the libapp.so

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2-days Effort: < 5 days p2-medium Necessary but not urgent concern. Resolve when possible.
Projects
None yet
Development

No branches or pull requests