-
Notifications
You must be signed in to change notification settings - Fork 3
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
Remove unused resources #41
Conversation
Just tested on my phone (Android 14) and both basic and advanced mode works fine! |
Hmm, thinking about it, the override approach might not work on older Android versions... Lemme check there... |
Thanks @bramborman, I'm hoping to have a play these updates this this weekend 🙂 |
Thanks @bramborman, as this PR boils down to three different changes, I have different thoughts on each one:
So, if you'd like to split out the theme changes into a separate PR, I can merge that one pretty easily. Or I can just apply those changes myself, crediting you in the commit message - whichever you prefer. Add totally happy to continue discussing the other two changes 😄 Thanks! |
Hi, thanks for having a look! 😊 Lemme comment on each of them:
I'll just remove the changes from this PR as they are simple enough to reproduce eventually and it's low probability they ever need to be reintroduced anyway 😅 |
7ed8d69
to
f2c235d
Compare
|
This removes unused AndroidX and other libraries. As AndroidX is removed, I had to manually reimplement the compat functionality it provides by overriding theregisterReceiver
method.Also, removes tests that were the default samples. As NFC functionality is not available in emulators and considering the nature of this app I believe tests don't make much sense here/are impossible.
Also, unused app resources, i.e., colors and themes are removed here as they don't appear anywhere.
When creating an app bundle locally this reduced its size by more than 17 times, from 1234 kB to 72 kB.This might be considered a micro-optimization, but I believe the lower the space an app consumes, the better 😁
I haven't yet had time to deploy this to phone to test this, so marking as draft.