-
Notifications
You must be signed in to change notification settings - Fork 381
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
QA: Configure R8 for release build #1069
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@epicadk the size is almost half , yayay 🚀 I've got a small change-
The org name is wrong under model classes it should be anitab instead of systers, an issue #741 is there to change the name as well.
Can you update that here first and probably this will wait until the PR for #741 is done , what say?
Also add a screenshot showing the changed size please .
@vj-codes added the screenshot. I don't see why we have to wait ? Since the issue is not assigned yet we can ask someone the contributor to make changes to the proguard rules as well. |
@epicadk yess I've already posted on zulip, but the PRs linked with that issue are made against the community guidelines by contributors who were not assigned to it so they can't be reopened . |
@vj-codes can the tag be updated now or do I still need to make changes? |
@epicadk the apk size by this PR is 7.24 but earlier it was 8.8 |
Because obfuscation makes it harder to debug so shrinking is generally only performed on the release apk. Are you talking about after installation size? Because I've added the screenshot that compares the two apks using android studios inbuilt apk analyser. |
@vj-codes can you confirm this ? |
@epicadk yes I was speaking about installation size |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉
The images/video that show that the app is running fine in the release build. |
I had tested previously the debug build variant which was working fine, but on testing the release variant, I am not able to login. It shows the error pr1069testing.mp4 |
It's working for me. Although I just add the proguard rules to the debug build because I can't install unsinged apk on my device. Can you try testing it locally? I'll find a way to install the release apk on my device. |
Is you release apk running fine ? Or are you talking about the debug one ?🤔 |
@CodeChamp-SS the debug build build with the proguard rules set up is working fine. Can't test the release build ad explained above. |
ya the build one is running fine but I am facing issue in the release apk. |
try creating a signed apk using generate signed bundle/apk in build section and then install it either in your emulator or physical device. |
Yep I was just doing that. |
hmm so what problem are you facing exactly ? I may be able to help |
Haha thanks but I was just busy with a couple of stuff and never ended up setting up the keystore. The error is due to the file |
didn't get what you are trying to say 😅 |
The error |
What changes ? I think |
but after that also same error is occuring. |
Yes I haven't made any changes to the I don't think we need to keep the remote package because it'll work even after obfuscation but if I have missed anything can you explain why we would want to add remote to the keep rules? 🤔 |
oh.. okk |
Nah don't change anything, I thought maybe adding some of those files might fix this issue. But if it existed previously too then it's fine :-) |
@vj-codes can you confirm if this can be marked ready to merge as tested by @CodeChamp-SS ? ( The error that is occurring is unrelated to the changes made). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @epicadk 🙌🏾
@epicadk so we have an issue with release build right? because of the backend URL? Can you create an issue just to document that for later. I see @CodeChamp-SS tested the debug apk, I will merge |
Description
Configure R8 and proguard rules for the release build. Apk size has reduced to 2.44mb from the existing 4.01mb.
Fixes #1063
Type of Change:
Delete irrelevant options.
Code/Quality Assurance Only
How Has This Been Tested?
Ran the release build locally.
Checklist:
Code/Quality Assurance Only