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

Upgrade to gradle 8.0.2, fix proguard rules for r8 #157

Merged
merged 6 commits into from
Jul 12, 2023

Conversation

VicV
Copy link
Contributor

@VicV VicV commented Jul 7, 2023

Main problem

The newest R8 strips a lot of stuff when its enabled.

I copied a ton of the details from here to add to our proguard consumer file:

square/retrofit#3751

I also added a ton of protections around the jackson lib so that those types and files don't get stripped as well.

Main item here too is making sure we keep the Android folder as it contains the coroutine schedule, objectmapper, and how we read configs locally and from the API

Other notes

  • Force test apps to always run with R8 enabled so we catch these things earlier
  • Update test apps to most recent version of gradle
  • Update SDK to android 33 and newest Gradle
  • Update tests to handle new Android things which were failing

@VicV VicV marked this pull request as ready for review July 10, 2023 17:11
@laurawarr laurawarr force-pushed the DVC-8107/R8-compatibility branch 2 times, most recently from 6f12e8a to 8a83a5e Compare July 11, 2023 16:03
@laurawarr laurawarr marked this pull request as draft July 11, 2023 16:05
@laurawarr laurawarr force-pushed the DVC-8107/R8-compatibility branch 10 times, most recently from 139805a to c465e65 Compare July 12, 2023 16:55
@laurawarr laurawarr marked this pull request as ready for review July 12, 2023 18:04
@laurawarr laurawarr requested review from ajwootto and a team July 12, 2023 18:04
@laurawarr laurawarr merged commit 7c0701f into main Jul 12, 2023
7 checks passed
@laurawarr laurawarr deleted the DVC-8107/R8-compatibility branch July 12, 2023 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants