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

Specify used ExoPlayer libraries #8469

Merged
merged 1 commit into from
Jul 13, 2022

Conversation

TacoTheDank
Copy link
Member

What is it?

  • Bugfix (user facing)
  • Feature (user facing)
  • Codebase improvement (dev facing)
  • Meta improvement to the project (dev facing)

Description of the changes in your PR

I don't know how this hadn't caught my eye before, considering I've made this exact change in other apps. Anyway, I digress.

Before, when just using exoplayer, every ExoPlayer library would be added (regardless of whether they were used). This would cause some unnecessary bloat. Now after being specific, the unused libraries (like rtsp) are not being added.

This shaves off around 103KB for debug builds and 49KB for release builds.

APK testing

The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR.

Due diligence

@sonarcloud
Copy link

sonarcloud bot commented Jun 1, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@Redirion
Copy link
Member

Redirion commented Jun 2, 2022

or maybe directly switch to androix media3? :)

@TacoTheDank
Copy link
Member Author

or maybe directly switch to androix media3? :)

I'd probably wait until it's stable :)

@triallax triallax added the codequality Improvements to the codebase to improve the code quality label Jun 2, 2022
Copy link
Member

@Stypox Stypox left a comment

Choose a reason for hiding this comment

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

LGTM, and works well after some testing (after rebasing on dev). Thank you!

@Stypox Stypox merged commit f7d8781 into TeamNewPipe:dev Jul 13, 2022
@TacoTheDank TacoTheDank deleted the specifyExoPlayer branch July 14, 2022 02:29
@Stypox Stypox mentioned this pull request Aug 27, 2022
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codequality Improvements to the codebase to improve the code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants