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

Option for Controlling the apk Size for Gradle Build Export #1345

Closed
titangamingglt opened this issue Aug 10, 2020 · 2 comments
Closed

Option for Controlling the apk Size for Gradle Build Export #1345

titangamingglt opened this issue Aug 10, 2020 · 2 comments

Comments

@titangamingglt
Copy link

titangamingglt commented Aug 10, 2020

Describe the project you are working on: An Endless Runner Shooting Android Game

Describe the problem or limitation you are having in your project: As The project is for android we are using monetization for it and also using Firebase for saving data. For this we are using Custom Plugins. By using Custom Plugins we must use Gradle Build option for the Android Export. Beacuse of this we have no control over the app size of our game as it becomes very large about 90 mb for a simple game.

Describe the feature / enhancement and how it helps to overcome the problem or limitation: I think there should a Inbuilt options for controlling the app size if one is using Gradle Build. Like similar to android size analyzer or similar to this. Or there should be a feature to disable modules like we can in case of normal build system.

Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams: I really dont know about engine development . But maybe there should be an in built option in the export android settings.

If this enhancement will not be used often, can it be worked around with a few lines of script?: I think this can not be workaround with scripts.

Is there a reason why this should be core and not an add-on in the asset library?: Because this relate to the core android export of the engine.

@Calinou
Copy link
Member

Calinou commented Aug 10, 2020

See also #342, #726 and #1001.

@m4gr3d
Copy link

m4gr3d commented Sep 23, 2020

@titangamingglt What you're describing is more of an issue with gradle rather than Godot, and for that task, there are several documentation and articles for how to shrink an apk when building via gradle.

Unfortunately, this is an entire field in itself, so it's out of scope for engine to provide such functionality.
What I recommend would be to take apart the apk (Android Studio can be used for this) and identify the components that contribute the most to the apk size.

@m4gr3d m4gr3d closed this as completed Sep 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants