AndroidDeviceNames
AndroidDeviceNames copied to clipboard
Library Size After 2.0.0
Updating my project to use the new version of this library added ~3mb to my app size. Are there any plans to address that?
Are you sure library is to blame? I analyzed my apk and well - 459,3 KB of db file
And literally 5,5 KB of code:
I don't see how this library could weigh so much as 3 MB.
The db gets compressed in assets. When you install it, it gets copied to the filesystem, where it is uncompressed.
Ok, but is that really a problem? Apk size is what matters, yes. But additional 3 MB on device? Http cache gets this large in a few hours
It definitely depends on the use case. Some of my apps it wouldn't matter, and some of them really do matter greatly.
Ok. I'm not sure if anything can be done here. Pretty much all the space is taken by database, which is basically one table with 3 columns. All of this data is reason why this library is so useful to me and I'm not sure if anything can be removed without functionality loss
Probably the best way to handle this would be to properly host the database somewhere (like what was happening on GitHub before, but using some server(less) tech).
Honestly i wouldn't use that library if it required internet connection... It's just too simple and too fundamental to complicate it that much. Network usage always have big implications which ultimately makes the library complicated without a proper reason. Maintainer should be able to make this decision, but for me - 3 MB of installed app size is nothing compared to network based library
You know it required an internet connection up until the latest version, right?
I'm using it for like 2 months, so i'm talking only about that version
There have been people using it for years with an internet connection, and not a very optimized one.
If you tell me that 3mb extra reported in the app size isn't a problem, then I'll tell you that a sub kilobyte network request/response that happens once per the lifetime of the app isn't a problem :smile:
@eygraber did you find an alternative ? less size ?