From b47239a4c76c451c89abeca2d84d39dc24517f8f Mon Sep 17 00:00:00 2001 From: WizDom13 Date: Sat, 28 Nov 2026 01:35:37 +0200 Subject: [PATCH] Preserve native plugin interface defaults in release builds --- app/build.gradle.kts | 25 +++ app/proguard-rules.pro | 3 + .../assets/plugin-fixtures/README.txt | 22 +++ .../assets/plugin-fixtures/native-search.html | 11 ++ .../assets/plugin-fixtures/native-stream.html | 13 ++ .../plugin-fixtures/pornhub-6-index.json | 24 +++ .../PipePipePackageCompatibilityTest.kt | 103 ++++++++++- app/src/main/assets/changelog.html | 3 +- buildSrc/src/main/kotlin/DesugarPluginApi.kt | 165 ++++++++++++++++++ docs/changelogs.md | 3 +- scripts/prepare-plugin-test-fixtures.py | 14 ++ 11 files changed, 383 insertions(+), 3 deletions(-) create mode 100644 app/src/androidTest/assets/plugin-fixtures/native-search.html create mode 100644 app/src/androidTest/assets/plugin-fixtures/native-stream.html create mode 100644 app/src/androidTest/assets/plugin-fixtures/pornhub-6-index.json create mode 100644 buildSrc/src/main/kotlin/DesugarPluginApi.kt diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 8b8e880685c..579e418d10f 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -3,7 +3,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later */ +import com.android.build.api.artifact.ScopedArtifact import com.android.build.api.dsl.ApplicationExtension +import com.android.build.api.variant.ScopedArtifacts import org.gradle.api.tasks.testing.Test import org.gradle.jvm.toolchain.JavaToolchainService @@ -248,12 +250,18 @@ val pluginRuntimeConfiguration by configurations.creating { isCanBeConsumed = false isTransitive = false } +val pluginApiCompiler by configurations.creating { + isCanBeConsumed = false + isTransitive = false +} val pluginRuntimeJavaLauncher = extensions.getByType().launcherFor { languageVersion.set(JavaLanguageVersion.of(21)) } dependencies { pluginRuntimeLibraries("com.android.tools:desugar_jdk_libs:${libs.versions.desugar.get()}") pluginRuntimeConfiguration("com.android.tools:desugar_jdk_libs_configuration:${libs.versions.desugar.get()}") + // Read the same compiler embedded in AGP without changing Gradle's plugin classpath. + pluginApiCompiler("com.android.tools.build:builder:${libs.versions.agp.get()}") } val generatePluginRuntime = tasks.register("generatePluginRuntime") { group = "plugin development" @@ -268,6 +276,23 @@ val generatePluginRuntime = tasks.register("generatePlugi } androidComponents.onVariants { variant -> variant.sources.assets?.addGeneratedSourceDirectory(generatePluginRuntime, GeneratePluginRuntime::outputDirectory) + if (variant.buildType == "release" || variant.buildType == "pluginCompatibility") { + val preservePluginApi = tasks.register(variant.computeTaskName("desugar", "PluginApi")) { + compileClasspath.from(variant.compileClasspath) + androidLibraries.from(androidComponents.sdkComponents.bootClasspath) + compilerJar.set(layout.file(pluginApiCompiler.elements.map { it.single().asFile })) + // Existing signed plugin DEX calls API-23 companions even if the host's + // minimum Android version eventually rises above 23. + minimumApi.set(23) + } + variant.artifacts.forScope(ScopedArtifacts.Scope.PROJECT).use(preservePluginApi) + .toTransform( + ScopedArtifact.CLASSES, + DesugarPluginApi::inputJars, + DesugarPluginApi::inputDirectories, + DesugarPluginApi::outputJar + ) + } } // A compile-only SDK for the standalone template. Providers remain in the host APK; diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 9701b1da54c..5d778fe8314 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -134,6 +134,9 @@ # External service packages link against these public APIs at runtime. Their callers # are absent from the app's R8 input, so retain the complete published plugin surface. +# DesugarPluginApi materializes API-23 interface companions before R8. These rules +# must keep those real inputs too: R8 9 no longer keeps compiler-generated $-CC +# methods merely because the original interface is kept. -keep class org.schabi.newpipe.extractor.** { *; } -keep interface org.schabi.newpipe.extractor.** { *; } -keep class com.grack.nanojson.** { *; } diff --git a/app/src/androidTest/assets/plugin-fixtures/README.txt b/app/src/androidTest/assets/plugin-fixtures/README.txt index 20c2253c7f8..bb4f6255ff7 100644 --- a/app/src/androidTest/assets/plugin-fixtures/README.txt +++ b/app/src/androidTest/assets/plugin-fixtures/README.txt @@ -29,3 +29,25 @@ This is an unmodified published package: compatibility tests must not repair or replace its DEX. The publisher repository provides version 1.2.1, including its Android 7 URL-encoding fix. The community catalog still listed older version 1.2.0 when this fixture was recorded; the publisher signing key is unchanged. + +Native WizeStream API 2.0 compatibility fixture + +Plugin: PornHub 1.0.5, version code 6, by WizeStream +Package source: +https://github.com/wizdom13/PornHub-WizeStream-Plugin/releases/download/repo/pornhub-wizestream-6.ppp +Package SHA-256: +b7be7de4cf12ce09e01ecdc66a593463129fec78249e1e524841b3bc017d4470 +Package size: 141797 bytes +Source revision: +https://github.com/wizdom13/PornHub-WizeStream-Plugin/tree/cc182d0a451fb60024625b0aa068816a9303e89d +License: GPL-3.0-or-later; the preparation script includes the source LICENSE. +The catalog signature/key were recorded from the publisher's repo/index.json. + +This package is included only in generated instrumentation test assets, never in +the production application. Its original signed DEX exercises real native +interface defaults, shared Kotlin/jsoup/nanojson dependencies, date/time APIs and +async downloader callbacks against the minified host. The checked-in HTML is +synthetic non-explicit metadata and uses reserved example.com media URLs. The +provider deliberately rejects .invalid hostnames, so those are not valid fixtures. +All extraction requests are answered offline; the test never fetches or renders +provider content. Package signatures are verified without rewriting the bytes. diff --git a/app/src/androidTest/assets/plugin-fixtures/native-search.html b/app/src/androidTest/assets/plugin-fixtures/native-search.html new file mode 100644 index 00000000000..f6a3002ea20 --- /dev/null +++ b/app/src/androidTest/assets/plugin-fixtures/native-search.html @@ -0,0 +1,11 @@ + +Synthetic native plugin fixture + + diff --git a/app/src/androidTest/assets/plugin-fixtures/native-stream.html b/app/src/androidTest/assets/plugin-fixtures/native-stream.html new file mode 100644 index 00000000000..81639df5d68 --- /dev/null +++ b/app/src/androidTest/assets/plugin-fixtures/native-stream.html @@ -0,0 +1,13 @@ + + +Synthetic native plugin fixture + + + + + +

Native fixture lesson

+ +1,250 +121 + diff --git a/app/src/androidTest/assets/plugin-fixtures/pornhub-6-index.json b/app/src/androidTest/assets/plugin-fixtures/pornhub-6-index.json new file mode 100644 index 00000000000..4da2ae035f6 --- /dev/null +++ b/app/src/androidTest/assets/plugin-fixtures/pornhub-6-index.json @@ -0,0 +1,24 @@ +{ + "formatVersion": 1, + "name": "PornHub WizeStream Plugin", + "plugins": [ + { + "pluginId": "org.wizestream.plugin.pornhub", + "name": "PornHub", + "versionCode": 6, + "versionName": "1.0.5", + "host": "wizestream", + "apiVersion": "2.0", + "author": "WizeStream", + "description": "Native WizeStream service for public PornHub videos. Adults only.", + "minHostVersionCode": 1052002, + "minAndroidSdk": 24, + "requiredCapabilities": [], + "package": "pornhub-wizestream-6.ppp", + "sha256": "b7be7de4cf12ce09e01ecdc66a593463129fec78249e1e524841b3bc017d4470", + "signature": "HXoI0k5H1hfusZyzuCU0CIdh5pf9MZjavmIrJY7AFuehHbDqbp3yK2pHppSJiqZVT7w7lLcg3YNlpiRo/6HkDA==", + "publicKey": "5y7De9xj9hpiU/+XFqJm70eBoUPAZRaSoyvj8QBxxFY=", + "nsfw": true + } + ] +} diff --git a/app/src/androidTest/java/org/schabi/newpipe/plugin/PipePipePackageCompatibilityTest.kt b/app/src/androidTest/java/org/schabi/newpipe/plugin/PipePipePackageCompatibilityTest.kt index 6bf465f3e00..8356b3ecb5e 100644 --- a/app/src/androidTest/java/org/schabi/newpipe/plugin/PipePipePackageCompatibilityTest.kt +++ b/app/src/androidTest/java/org/schabi/newpipe/plugin/PipePipePackageCompatibilityTest.kt @@ -24,11 +24,14 @@ import java.io.Serializable import java.lang.reflect.Field import java.lang.reflect.Proxy import java.time.Duration +import org.jsoup.Jsoup +import org.jsoup.nodes.Element import org.junit.After import org.junit.Assert.assertArrayEquals import org.junit.Assert.assertEquals import org.junit.Assert.assertFalse import org.junit.Assert.assertNotNull +import org.junit.Assert.assertNull import org.junit.Assert.assertSame import org.junit.Assert.assertThrows import org.junit.Assert.assertTrue @@ -60,6 +63,7 @@ import org.schabi.newpipe.extractor.plugin.PluginPackage import org.schabi.newpipe.extractor.plugin.PluginPreferences import org.schabi.newpipe.extractor.plugin.PluginRepository import org.schabi.newpipe.extractor.search.SearchInfo +import org.schabi.newpipe.extractor.stream.ContentAvailability import org.schabi.newpipe.extractor.stream.DeliveryMethod import org.schabi.newpipe.extractor.stream.StreamInfo import org.schabi.newpipe.extractor.stream.StreamInfoItem @@ -349,6 +353,77 @@ class PipePipePackageCompatibilityTest { assertEquals(listOf("home", "stream", "channel", "sidebar", "token", "hls"), offline.requests) } + @Test + fun publishedNativeDexCanCallAllItsApi23InterfaceCompanions() { + val fixture = loadPublishedNative() + val html = assets.open("plugin-fixtures/native-search.html").bufferedReader().use { it.readText() } + val card = requireNotNull(Jsoup.parse(html, "https://www.pornhub.com/").selectFirst(".videoblock")) + val type = Class.forName( + "org.wizestream.plugin.pornhub.PornHubStreamItemExtractor", + true, + fixture.service.javaClass.classLoader + ) + val extractor = type.getConstructor(Element::class.java).newInstance(card) as StreamInfoItemExtractor + // These methods are concrete D8 forwarding methods in the unmodified signed + // package. Call them directly, outside the host's compatibility adapters. + assertEquals("https://media.example.com/native-poster.jpg", extractor.thumbnailUrl) + assertNull(extractor.albumUrl) + assertNull(extractor.shortDescription) + assertNull(extractor.upcomingStatus) + assertNull(extractor.uploaderAvatarUrl) + assertNull(extractor.uploaderId) + assertEquals(ContentAvailability.UNKNOWN, extractor.contentAvailability) + assertFalse(extractor.isRoundPlayStream) + assertFalse(extractor.isShortFormContent) + assertFalse(extractor.isUploaderVerified) + assertFalse(extractor.requiresMembership()) + assertTrue(offline.requests.isEmpty()) + } + + @Test + fun publishedNativePluginExtractsSearchWithSharedInterfaceDefaults() { + val fixture = loadPublishedNative() + val query = fixture.service.searchQHFactory.fromQuery("fixture query", emptyList(), emptyList()) + val info = SearchInfo.getInfo(fixture.service, query) + assertTrue(info.errors.toString(), info.errors.isEmpty()) + val item = info.relatedItems.single() as StreamInfoItem + assertEquals("Native fixture lesson", item.name) + assertEquals(NATIVE_STREAM_URL, item.url) + assertEquals("Fixture uploader", item.uploaderName) + assertEquals("https://www.pornhub.com/model/fixture-uploader", item.uploaderUrl) + assertEquals(125L, item.duration) + assertEquals(1_250L, item.viewCount) + assertEquals("https://media.example.com/native-poster.jpg", item.thumbnailUrl) + assertNotNull(item.uploadDate) + assertFalse(item.isShortFormContent) + assertFalse(item.requiresMembership()) + assertEquals(listOf("native-search"), offline.requests) + } + + @Test + fun publishedNativePluginExtractsStreamAndPreservesMediaHeaders() { + val fixture = loadPublishedNative() + val info = StreamInfo.getInfo(fixture.service, NATIVE_STREAM_URL) + assertTrue(info.errors.toString(), info.errors.isEmpty()) + assertEquals("Native fixture lesson", info.name) + assertEquals("Fixture uploader", info.uploaderName) + assertEquals(125L, info.duration) + assertEquals(StreamType.VIDEO_STREAM, info.streamType) + assertEquals(fixture.service.serviceId, info.serviceId) + assertNotNull(info.uploadDate) + val video = info.videoStreams.single() + assertEquals(DeliveryMethod.PROGRESSIVE_HTTP, video.deliveryMethod) + assertEquals("https://media.example.com/native-video.mp4?token=fixture", video.content) + assertEquals("720p", video.resolution) + assertEquals(false, video.cacheable) + assertEquals(NATIVE_STREAM_URL, requireNotNull(video.requestHeaders)["Referer"]) + assertEquals("https://www.pornhub.com", requireNotNull(video.requestHeaders)["Origin"]) + val caption = info.subtitles.single() + assertEquals(NATIVE_STREAM_URL, requireNotNull(caption.requestHeaders)["Referer"]) + assertEquals(false, caption.cacheable) + assertEquals(listOf("native-stream"), offline.requests) + } + @Test fun nativePluginUsesProfileContextAndRejectsPipePipeOnlyContext() { val nativePresent = assets.list("").orEmpty().contains("native-example.ppp") @@ -387,6 +462,12 @@ class PipePipePackageCompatibilityTest { return fixture } + private fun loadPublishedNative(): LoadedFixture = loadFixture( + "pornhub-6.ppp", + "plugin-fixtures/pornhub-6-index.json", + PUBLISHED_NATIVE_REPOSITORY + ) + // Class.forName literals can be rewritten to desugared types in the minified test APK. private fun platformClass(name: String): Class<*> = ClassLoader.getSystemClassLoader().loadClass(name) @@ -503,6 +584,14 @@ class PipePipePackageCompatibilityTest { override fun execute(request: Request): Response { val url = request.url() + if (url == "https://www.pornhub.com/video/search?search=fixture+query&page=1") { + requests += "native-search" + return response(request, "native-search.html") + } + if (url == NATIVE_STREAM_URL) { + requests += "native-stream" + return response(request, "native-stream.html") + } if (url == "https://twitch.tv") { requests += "home" return Response( @@ -540,7 +629,17 @@ class PipePipePackageCompatibilityTest { return Response(200, "OK", emptyMap(), bytes.toString(Charsets.UTF_8), bytes, request.url()) } - override fun executeAsync(request: Request, callback: AsyncCallback): CancellableCall = throw AssertionError("Unexpected asynchronous request in offline plugin test") + override fun executeAsync(request: Request, callback: AsyncCallback): CancellableCall { + assertTrue("Unexpected asynchronous request: ${request.url()}", request.url().startsWith("https://www.pornhub.com/")) + callback.onSuccess(execute(request)) + // Complete synchronously without constructing a network client. A timeout or + // cancellation would be a test failure, never a real network operation. + return object : CancellableCall(null) { + override fun cancel() = throw AssertionError("A completed fixture request was cancelled") + + override fun isCancelled(): Boolean = false + }.apply { setFinished() } + } } /** Test-only restoration; no production reset/install-verification bypass is exposed. */ @@ -576,6 +675,8 @@ class PipePipePackageCompatibilityTest { companion object { private const val TWITCH_REPOSITORY = "https://github.com/MohrJonas/TwitchPipePipePlugin/releases/download/repo/index.json" private const val NATIVE_REPOSITORY = "https://example.invalid/native-fixtures/index.json" + private const val PUBLISHED_NATIVE_REPOSITORY = "https://github.com/wizdom13/PornHub-WizeStream-Plugin/releases/download/repo/index.json" + private const val NATIVE_STREAM_URL = "https://www.pornhub.com/view_video.php?viewkey=phfixture123" private const val SEARCH_URL = "https://twitch.tv/search?term=fixture" private const val STREAM_URL = "https://twitch.tv/fixture?_type=stream&_channelId=42&_pagination=eyJvZmZzZXQiOjAsInNpemUiOjIwfQ==" private const val HLS_URL = "https://media.example.invalid/live/720p.m3u8" diff --git a/app/src/main/assets/changelog.html b/app/src/main/assets/changelog.html index 64e5c41b3af..7a4efa5a34f 100644 --- a/app/src/main/assets/changelog.html +++ b/app/src/main/assets/changelog.html @@ -139,9 +139,10 @@

Home tab chooser

  • Keep the Customize home tab chooser open with an empty list when a search has no matches, and restore the available tabs when the query is cleared.
-

Plugin import errors

+

Plugins

  • Show complete, copyable plugin import errors in a Material 3 dialog, including package and catalog versions, checksum comparisons and metadata rejection details.
  • +
  • Fix release-only failures when native plugins load search results and video details, including existing signed plugin packages.

Library navigation

    diff --git a/buildSrc/src/main/kotlin/DesugarPluginApi.kt b/buildSrc/src/main/kotlin/DesugarPluginApi.kt new file mode 100644 index 00000000000..ffd876844ff --- /dev/null +++ b/buildSrc/src/main/kotlin/DesugarPluginApi.kt @@ -0,0 +1,165 @@ +/* + * SPDX-FileCopyrightText: 2026 WizeStream contributors + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +import java.io.File +import java.lang.reflect.InvocationTargetException +import java.net.URLClassLoader +import java.nio.file.Path +import java.util.concurrent.Executors +import java.util.zip.ZipEntry +import java.util.zip.ZipFile +import java.util.zip.ZipOutputStream +import org.gradle.api.DefaultTask +import org.gradle.api.file.ConfigurableFileCollection +import org.gradle.api.file.Directory +import org.gradle.api.file.RegularFile +import org.gradle.api.file.RegularFileProperty +import org.gradle.api.provider.ListProperty +import org.gradle.api.provider.Property +import org.gradle.api.tasks.CacheableTask +import org.gradle.api.tasks.Classpath +import org.gradle.api.tasks.Input +import org.gradle.api.tasks.InputFile +import org.gradle.api.tasks.InputFiles +import org.gradle.api.tasks.OutputFile +import org.gradle.api.tasks.PathSensitive +import org.gradle.api.tasks.PathSensitivity +import org.gradle.api.tasks.TaskAction + +/** + * Makes the external SDK's API-23 interface companions real R8 inputs. R8 9 no longer + * applies interface keep rules to companions it synthesizes itself. A native plugin's + * separately compiled DEX still calls those stable $-CC classes directly. + * + * Only extractor classes are desugared here; the original compile outputs and exported + * pluginSdkJar remain unchanged. Core-library desugaring and all app optimization are + * left to AGP. Sorted inputs, one D8 worker and normalized ZIP metadata are reproducible. + * + * R8 documents this two-stage approach for separately compiled clients: + * https://r8.googlesource.com/r8/+/1e46b9385d5c917c693c0c143bb01e6d0b9e6bbd + */ +@CacheableTask +abstract class DesugarPluginApi : DefaultTask() { + @get:InputFiles + @get:PathSensitive(PathSensitivity.RELATIVE) + abstract val inputJars: ListProperty + + @get:InputFiles + @get:PathSensitive(PathSensitivity.RELATIVE) + abstract val inputDirectories: ListProperty + + @get:Classpath + abstract val compileClasspath: ConfigurableFileCollection + + @get:Classpath + abstract val androidLibraries: ConfigurableFileCollection + + @get:InputFile + @get:PathSensitive(PathSensitivity.NONE) + abstract val compilerJar: RegularFileProperty + + @get:Input + abstract val minimumApi: Property + + @get:OutputFile + abstract val outputJar: RegularFileProperty + + @TaskAction + fun desugar() { + val original = sortedMapOf() + fun add(name: String, content: ByteArray) { + val previous = original.putIfAbsent(name, content) + check(previous == null || previous.contentEquals(content)) { "Conflicting project class: $name" } + } + inputJars.get().map { it.asFile }.sortedBy(File::getAbsolutePath).forEach { file -> + ZipFile(file).use { jar -> + jar.entries().asSequence().filterNot { it.isDirectory }.forEach { entry -> + add(entry.name, jar.getInputStream(entry).use { it.readBytes() }) + } + } + } + inputDirectories.get().map { it.asFile }.sortedBy(File::getAbsolutePath).forEach { directory -> + directory.walkTopDown().filter { it.isFile }.forEach { file -> + add(file.relativeTo(directory).invariantSeparatorsPath, file.readBytes()) + } + } + val extractor = original.filterKeys { it.startsWith(EXTRACTOR_PREFIX) && it.endsWith(".class") } + check(extractor.isNotEmpty()) { "No compiled plugin SDK classes were supplied" } + val remaining = original.filterKeys { it !in extractor } + val source = File(temporaryDir, "extractor.jar") + val otherClasses = File(temporaryDir, "other-project-classes.jar") + val desugared = File(temporaryDir, "desugared-extractor.jar") + writeJar(source, extractor) + writeJar(otherClasses, remaining) + desugared.delete() + runD8(source, otherClasses, desugared) + val materialized = sortedMapOf() + ZipFile(desugared).use { jar -> + jar.entries().asSequence().filterNot { it.isDirectory }.forEach { entry -> + materialized[entry.name] = jar.getInputStream(entry).use { it.readBytes() } + } + } + REQUIRED_COMPANIONS.forEach { name -> + check(materialized.containsKey(name)) { "D8 did not materialize the plugin ABI companion: $name" } + } + check(materialized.keys.none { it in remaining }) { "Desugared SDK collides with an app class" } + writeJar(outputJar.get().asFile, (remaining + materialized).toSortedMap()) + } + + private fun runD8(source: File, otherClasses: File, output: File) { + // An isolated loader uses AGP's exact embedded compiler without adding a second + // R8 dependency to Gradle's plugin classpath or changing the host shrinker. + URLClassLoader(arrayOf(compilerJar.get().asFile.toURI().toURL()), ClassLoader.getPlatformClassLoader()).use { loader -> + val commandType = loader.loadClass("com.android.tools.r8.D8Command") + val builder = commandType.getMethod("builder").invoke(null) + fun call(name: String, parameter: Class<*>, value: Any) { + builder.javaClass.getMethod(name, parameter).invoke(builder, value) + } + call("addProgramFiles", Collection::class.java, listOf(source.toPath())) + call("addLibraryFiles", Collection::class.java, androidLibraries.files.sortedBy(File::getAbsolutePath).map(File::toPath)) + call( + "addClasspathFiles", + Collection::class.java, + (compileClasspath.files + otherClasses).sortedBy(File::getAbsolutePath).map(File::toPath) + ) + call("setMinApiLevel", Int::class.javaPrimitiveType!!, minimumApi.get()) + val modeType = loader.loadClass("com.android.tools.r8.CompilationMode") + call("setMode", modeType, modeType.getField("RELEASE").get(null)) + val consumerType = loader.loadClass("com.android.tools.r8.ClassFileConsumer\$ArchiveConsumer") + val consumer = consumerType.getConstructor(Path::class.java).newInstance(output.toPath()) + call("setProgramConsumer", loader.loadClass("com.android.tools.r8.ProgramConsumer"), consumer) + val executor = Executors.newSingleThreadExecutor() + try { + val command = builder.javaClass.getMethod("build").invoke(builder) + loader.loadClass("com.android.tools.r8.D8") + .getMethod("run", commandType, java.util.concurrent.ExecutorService::class.java) + .invoke(null, command, executor) + } catch (failure: InvocationTargetException) { + throw failure.targetException + } finally { + executor.shutdown() + } + } + } + + private fun writeJar(file: File, entries: Map) { + file.parentFile.mkdirs() + ZipOutputStream(file.outputStream().buffered()).use { output -> + entries.toSortedMap().forEach { (name, content) -> + output.putNextEntry(ZipEntry(name).apply { time = 0 }) + output.write(content) + output.closeEntry() + } + } + } + + companion object { + private const val EXTRACTOR_PREFIX = "org/schabi/newpipe/extractor/" + private val REQUIRED_COMPANIONS = listOf( + "${EXTRACTOR_PREFIX}InfoItemExtractor\$-CC.class", + "${EXTRACTOR_PREFIX}stream/StreamInfoItemExtractor\$-CC.class" + ) + } +} diff --git a/docs/changelogs.md b/docs/changelogs.md index 8fb582af472..94e79d49587 100644 --- a/docs/changelogs.md +++ b/docs/changelogs.md @@ -13,9 +13,10 @@ Release history is listed newest first. The number beside each release is its An - Keep the Customize home tab chooser open with an empty list when a search has no matches, and restore the available tabs when the query is cleared. -### Plugin import errors +### Plugins - Show complete, copyable plugin import errors in a Material 3 dialog, including package and catalog versions, checksum comparisons and metadata rejection details. +- Fix release-only failures when native plugins load search results and video details, including existing signed plugin packages. ### Library navigation diff --git a/scripts/prepare-plugin-test-fixtures.py b/scripts/prepare-plugin-test-fixtures.py index 1b4a7a50be6..441bb3d198c 100644 --- a/scripts/prepare-plugin-test-fixtures.py +++ b/scripts/prepare-plugin-test-fixtures.py @@ -30,6 +30,20 @@ 1931, "08c1c6ac745870031ef39014c9b3cc20b841444e24341c289b9a5932191e936c", ), + ( + "pornhub-6.ppp", + "https://github.com/wizdom13/PornHub-WizeStream-Plugin/releases/download/repo/" + "pornhub-wizestream-6.ppp", + 141797, + "b7be7de4cf12ce09e01ecdc66a593463129fec78249e1e524841b3bc017d4470", + ), + ( + "pornhub-6-LICENSE.txt", + "https://raw.githubusercontent.com/wizdom13/PornHub-WizeStream-Plugin/" + "cc182d0a451fb60024625b0aa068816a9303e89d/LICENSE", + 35149, + "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + ), )