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

fix: Missing Proguard rules for R8 in full mode #1196

Merged
merged 4 commits into from
Aug 25, 2023
Merged

fix: Missing Proguard rules for R8 in full mode #1196

merged 4 commits into from
Aug 25, 2023

Conversation

azlekov
Copy link
Contributor

@azlekov azlekov commented May 5, 2023

New Pull Request Checklist

Issue Description

Closes: #1194

Approach

TODOs before merging

  • Add tests
  • Add changes to documentation (guides, repository pages, in-code descriptions)

@parse-github-assistant
Copy link

I will reformat the title to use the proper commit message syntax.

@parse-github-assistant parse-github-assistant bot changed the title refactor(proguard): update proguard rules refactor(proguard): Update proguard rules May 5, 2023
@parse-github-assistant
Copy link

parse-github-assistant bot commented May 5, 2023

Thanks for opening this pull request!

  • 🎉 We are excited about your hands-on contribution!

Copy link
Member

@mtrezza mtrezza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

Is this ready for merge? I've changed this to a feat PR, since it seems to add support for Gradle 8 to the Parse SDK.

@mtrezza mtrezza changed the title refactor(proguard): Update proguard rules feat: Add support for Gradle 8 May 7, 2023
@azlekov
Copy link
Contributor Author

azlekov commented May 7, 2023

Looks good

Is this ready for merge? I've changed this to a feat PR, since it seems to add support for Gradle 8 to the Parse SDK.

That's not quite correct. But fixes some release issues with ProGuard and R8

@mtrezza
Copy link
Member

mtrezza commented May 8, 2023

I assumed so because the issues don't seem to have these occurred so far. Is this an adaptation for Gradle 8 or is this also a bug for Gradle <8?

@mtrezza
Copy link
Member

mtrezza commented May 16, 2023

Maybe we should start adding a gradle matrix to the CI where we test with different gradle versions - would that make sense?

@azlekov
Copy link
Contributor Author

azlekov commented May 16, 2023

Hey @mtrezza the issues which the developers are reporting are runtime. Because of wrong ProGuard rules after magnification is done Parse classes are erased and when you run the app it crashes. I need to think about if there can be some tests covering the cases by building and running simple app using parse via some instrumentation test and check whatever it crash or not.

@mtrezza
Copy link
Member

mtrezza commented May 17, 2023

Ok, so the minification is the core issue here. If we can't find a test (soon) we can also just merge this fix for now and open a new issue to add a test, so we don't forget it.

Other than that, wouod it still male sense to run the CI with multiple Gradle or Android versions? If so, I'll open a separate issue for that.

@mtrezza
Copy link
Member

mtrezza commented Aug 21, 2023

@azlekov This PR got somewhat stale, can we merge this or is there anything that is worth discussing beforehand?

@codecov
Copy link

codecov bot commented Aug 21, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (f9843c5) 0.00% compared to head (40a3fdf) 0.00%.

Additional details and impacted files
@@          Coverage Diff           @@
##           master   #1196   +/-   ##
======================================
  Coverage    0.00%   0.00%           
======================================
  Files         122     122           
  Lines        9971    9971           
  Branches     1345    1345           
======================================
  Misses       9971    9971           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

parse/release-proguard.pro Outdated Show resolved Hide resolved
@azlekov azlekov changed the title feat: Add support for Gradle 8 fix: proguard rules for R8 in full mode Aug 23, 2023
@parse-github-assistant
Copy link

I will reformat the title to use the proper commit message syntax.

@parse-github-assistant parse-github-assistant bot changed the title fix: proguard rules for R8 in full mode fix: Proguard rules for R8 in full mode Aug 23, 2023
@azlekov
Copy link
Contributor Author

azlekov commented Aug 23, 2023

@mtrezza I change the title to be more precise, it's not a feat, but a fix for proguard R8 in full mode as mentioned in the #1194

@mtrezza mtrezza changed the title fix: Proguard rules for R8 in full mode fix: Missing Proguard rules for R8 in full mode Aug 24, 2023
@mtrezza
Copy link
Member

mtrezza commented Aug 24, 2023

Great! I've just slightly edited the title as it should describe the actual issue. Otherwise I think this is ready for merge?

@azlekov
Copy link
Contributor Author

azlekov commented Aug 24, 2023

Great! I've just slightly edited the title as it should describe the actual issue. Otherwise I think this is ready for merge?

Yes, go go go! 🚗

@mtrezza mtrezza merged commit 7db0965 into parse-community:master Aug 25, 2023
7 checks passed
parseplatformorg pushed a commit that referenced this pull request Aug 25, 2023
## [4.2.1](4.2.0...4.2.1) (2023-08-25)

### Bug Fixes

* Missing Proguard rules for R8 in full mode ([#1196](#1196)) ([7db0965](7db0965))
@parseplatformorg
Copy link

🎉 This change has been released in version 4.2.1

@parseplatformorg parseplatformorg added the state:released Released as stable version label Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state:released Released as stable version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IllegalArgumentException when initializing Parse
3 participants