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

Reduce app size #19

Open
shuvashish76 opened this issue Feb 27, 2022 · 5 comments
Open

Reduce app size #19

shuvashish76 opened this issue Feb 27, 2022 · 5 comments
Labels
help wanted Extra attention is needed issue-discussion Should be discussed over!

Comments

@shuvashish76
Copy link
Contributor

shuvashish76 commented Feb 27, 2022

Quotes app with all features = ~3MB
Another example Music Player Go = ~3MB

DMP with basic music player features = ~2MB
Any possibility of compressing DMP apk size?

@VishnuSanal VishnuSanal added issue-discussion Should be discussed over! help wanted Extra attention is needed labels Feb 28, 2022
@foldfree
Copy link

One thing I noticed is that it seems to be using a custom font. Would it be possible to pull the system font instead?

@VishnuSanal
Copy link
Owner

One thing I noticed is that it seems to be using a custom font. Would it be possible to pull the system font instead?

Yes, @foldfree. We have a custom font (poppins) bundled with the APK. I had the same thought, so I tried removing it too. But, it created only a difference of ~100KB, which wasn't worth removing the font file, for the design factor that the custom font provides.

On that note, we can load the font file from the internet (via downloadable fonts) but I don't want DMP to request internet permission too.

@foldfree
Copy link

I'm not a dev but what do you think of Kotlin? (the language music player go is written with) Would it be hard to rewrite it in that language? Seems like it is well suited for small projects.

@VishnuSanal
Copy link
Owner

@foldfree Um... Kotlin is optimised for Android development, but I'm not sure whether that'd have an effect on APK size. I'll look into it. Anyways, something like rewriting the whole app in Kotlin seems feasible only is the results are significantly better ;)

@shuvashish76
Copy link
Contributor Author

https://f-droid.org/packages/com.martinmimigames.littlemusicplayer
Best minimalist music player.

Kotlin is optimised for Android development, but I'm not sure whether that'd have an effect on APK size

BTW this app is written in Java.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed issue-discussion Should be discussed over!
Projects
None yet
Development

No branches or pull requests

3 participants