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

Remove Multidex usages #2871

Merged
merged 1 commit into from
Oct 21, 2024
Merged

Remove Multidex usages #2871

merged 1 commit into from
Oct 21, 2024

Conversation

MGaetan89
Copy link
Contributor

@MGaetan89 MGaetan89 commented Oct 11, 2024

Summary

Since the min SDK is 21, it is no longer necessary to use the Multidex library.

See the following for more info: https://developer.android.com/build/multidex#mdex-on-l

Safety Assurance

  • If the PR is high risk, "High Risk" label is set
  • I have confidence that this PR will not introduce a regression for the reasons below
  • Do we need to enhance manual QA test coverage ? If yes, "QA Note" label is set correctly

Automated test coverage

Safety story

Since the min SDK is 21, it is no longer necessary to use the Multidex library.

See the following for more info: developer.android.com/build/multidex#mdex-on-l
@damagatchi
Copy link

Can one of the admins verify this patch?

@@ -40,7 +40,6 @@ git clone https://github.com/dimagi/commcare-core.git
- Click "OK" to use the Gradle wrapper
- Wait while Android Studio spins its wheels
- Download any build dependencies that the SDK Manager tells you you need.
- Disable _Instant Run_ found in Settings > Build, Execution, Deployment > Instant Run. (It does not play well with multidexing, which we have enabled, or with some of the processes we have set up for Google Services)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

That menu doesn't seem to exist anymore, so I took the liberty to remove the whole line. I can just remove the part about Multidex if you prefer.

Copy link
Contributor

Choose a reason for hiding this comment

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

thanks for clearing this up!

@MGaetan89
Copy link
Contributor Author

I see that the Linter check is failing. If I run the google-java-format (version 1.24.0) locally on CommCareApplication, the whole file gets reformatted. So I'm not sure if I should use an other version of google-java-format or if there is another issue to fix?

@shubham1g5
Copy link
Contributor

@damagatchi ok to test

@shubham1g5
Copy link
Contributor

@MGaetan89 Unfortunately our lint check checks for the complete files instead of the lines you changed. I see that there are no failures corresponding to your changes so it's fine to ignore the lint failure at the moment. Thanks!

@shubham1g5
Copy link
Contributor

@damagatchi retest this please

@shubham1g5 shubham1g5 added the skip-integration-tests Skip android tests. label Oct 21, 2024
@shubham1g5
Copy link
Contributor

@damagatchi retest this please

1 similar comment
@shubham1g5
Copy link
Contributor

@damagatchi retest this please

@shubham1g5
Copy link
Contributor

Facing some issues with memory config on Jenkins, retuned and retrying build.
@damagatchi retest this please

@shubham1g5
Copy link
Contributor

@damagatchi retest this please

@shubham1g5 shubham1g5 removed the skip-integration-tests Skip android tests. label Oct 21, 2024
Copy link
Contributor

@shubham1g5 shubham1g5 left a comment

Choose a reason for hiding this comment

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

Thanks for getting this in @MGaetan89!

@shubham1g5 shubham1g5 merged commit f4c7935 into dimagi:master Oct 21, 2024
1 of 2 checks passed
@MGaetan89 MGaetan89 deleted the remove_multidex branch October 22, 2024 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants