Skip to content

fix: Restore FEATURE_PLUGINS_ENABLED and sideload plugin dependencies#359

Closed
test01203 wants to merge 3 commits into
ProdigyV21:mainfrom
test01203:fix/restore-plugins-feature-flag
Closed

fix: Restore FEATURE_PLUGINS_ENABLED and sideload plugin dependencies#359
test01203 wants to merge 3 commits into
ProdigyV21:mainfrom
test01203:fix/restore-plugins-feature-flag

Conversation

@test01203

Copy link
Copy Markdown
Contributor

Hey , it looks like in one of the recent commits (598df33) the plugin system dependencies and the FEATURE_PLUGINS_ENABLED flags were accidentally removed from app/build.gradle.kts (probably during a merge conflict resolution). This caused the Plugins menu to disappear entirely from the settings. This PR restores them so the feature works again

@test01203 test01203 force-pushed the fix/restore-plugins-feature-flag branch from 4dfcbe9 to 069588c Compare June 11, 2026 14:53
@silentbil

Copy link
Copy Markdown
Collaborator

Hey, tested this branch locally — build passes and installs fine, but the app crashes on every launch with:

▎ java.lang.NoSuchMethodError: No virtual method addLast(LockFreeLinkedListNode;)V
▎ in class kotlinx.coroutines.internal.LockFreeLinkedListHead (classes22.dex)

▎ One of the new sideload deps (likely CloudStream3 or NiceHttp) bundles an older kotlinx-coroutines-core internally. That older class wins in the dex merge and is missing addLast() which the app expects at runtime — instant crash before anything renders.

▎ Fix: force coroutines to 1.7.3 in the resolution strategy so it overrides the transitive version:

▎ configurations.all {
▎ resolutionStrategy {
▎ force("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
▎ force("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3")
▎ }
▎ }

▎ Or exclude coroutines from the conflicting dep:
▎ add("sideloadImplementation", "com.github.recloudstream.cloudstream:library-android:v4.7.0") {
▎ exclude(group = "org.jetbrains.kotlinx", module = "kotlinx-coroutines-core")
▎ exclude(group = "org.mozilla", module = "rhino")
▎ }

@silentbil

Copy link
Copy Markdown
Collaborator

fixed on another PR
#362

@silentbil silentbil closed this Jun 11, 2026
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.

2 participants