Tags: AppFuton/Futon
Tags
fix: Remove androidx.preference stubs to prevent R8 duplicate class e… …rrors Remove androidx.preference stub source files from source-api module and replace with compileOnly dependency on the real androidx.preference library. PROBLEM: R8 minification was failing with duplicate class errors because both source-api (stubs) and app (real library) provided androidx.preference classes. SOLUTION: - Delete all androidx.preference stub .java files - Add compileOnly dependency on androidx.preference-ktx:1.2.1 - Extensions get androidx.preference from app's existing dependency at runtime - Add ProGuard keep rules to prevent R8 from stripping classes used by extensions This follows the standard Tachiyomi extension architecture where: 1. Extensions compile against minimal API (compileOnly) 2. Host app provides real implementations via parent ClassLoader 3. No duplicate classes packaged in APK Fixes: R8 compilation failure in minifyNightlyWithR8
PreviousNext