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 compilation #11636

Merged
merged 8 commits into from
Oct 23, 2024
Merged

Fix compilation #11636

merged 8 commits into from
Oct 23, 2024

Conversation

litetex
Copy link
Member

@litetex litetex commented Oct 23, 2024

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 checked out NewPipe with the latest version of Android Studio (2024.2) and it no longer compiles.
This is not good as the default (dev) branch should ALWAYS compile.
New developers may run into problems immediately when checking out the code and give up instantly.

Here is a list of encountered and fixed problems:

Problem Fix Notes
Kotlin llegalAccessError: superclass access check failed: class org.jetbrains.kotlin.kapt3.base.javac.KaptJavaCompiler Update to latest Kotlin version Same problem reported: #11612
Extractor is not found on JitPack Use git commit of extractor release
Fix broken symlink that prevents compilation on a default Windows setup Remove symlink Same as in #11482 however I properly removed the symlink (delete it first and then re-add the file 😉 )
Gradle is outdated / Android Gradle plugin warns about incompatibilities on Gradle 9 Update Gradle to latest version + Apply suggested fixes Non-critcal problem, however yields a lot of warnings
IcePick fails on Java 21 (Clojure problems with javac). Example Replaced with Bridge and Android-State (de-facto drop in replacement) Should be replaced with something better in the long term

Testing:
Open a view/component where IcePick was removed (e.g. "About & FAQ") and rotate the device → No crash or similar should occur

This PR supersedes the following PRs:

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. You can find more info and a video demonstration on this wiki page.

Due diligence

litetex and others added 8 commits October 22, 2024 21:03
The tag can't be resolved by Jitpack so use the commit-hash instead
Co-Authored-By: Thompson3142 <115718208+thompson3142@users.noreply.github.com>
* IcePick fails on Java 21 (default in Android Studio 2024.2)
* Bridge is the most modern alternative that is currently available. It is backed by ``Android-State`` and can be configured with various frameworks
* In the long term this should be replaced with something better
@github-actions github-actions bot added the size/large PRs with less than 750 changed lines label Oct 23, 2024
@litetex litetex changed the title Fix build 2024 10 Fix compilation Oct 23, 2024
Copy link

sonarcloud bot commented Oct 23, 2024

@litetex litetex marked this pull request as ready for review October 23, 2024 19:52
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.

Sorry for the annoyances and thank you for fixing them! I tested state saving on my phone by setting "background process limit = 0" in developer settings, and it worked normally.

@Stypox Stypox merged commit 3a28651 into TeamNewPipe:dev Oct 23, 2024
17 checks passed
@ShareASmile ShareASmile added bug Issue is related to a bug meta Related to the project but not strictly to code dependency Issues and PRs related to dependencies labels Oct 24, 2024
@litetex litetex deleted the fix-build-2024-10 branch October 24, 2024 17:55
@litetex
Copy link
Member Author

litetex commented Oct 24, 2024

Further note:

Also had the debug app installed on my phone and did some "casual" testing today.
Couldn't find any problem :)

@Thompson3142
Copy link
Contributor

Can confirm, also works for me (after upgrading to ladybug) 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is related to a bug dependency Issues and PRs related to dependencies meta Related to the project but not strictly to code size/large PRs with less than 750 changed lines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants