| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| * | ||
| * If no variant is specified, all variants are considered a match. | ||
| */ | ||
| fun Variant.isExpectedVariantInModule(config: FulladleModuleExtension) = |
There was a problem hiding this comment.
unused
Sorry, something went wrong.
|
Sorry for the sudden mention. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
Fulladle manually constructs APK paths from variant.productFlavors, but the current logic does not handle variants with multiple flavor dimensions correctly.
In FulladlePlugin.kt, the flavor part is built like this:
fladle/fladle-plugin/src/main/java/com/osacky/flank/gradle/FulladlePlugin.kt
Lines 33 to 34 in 0614f1f
For a variant composed from minApi24 and demo, this generates:
However, AGP generates artifacts for minApi24DemoDebug like:
build/outputs/apk/minApi24Demo/debug/app-minApi24-demo-debug.apk
build/outputs/apk/androidTest/minApi24Demo/debug/app-minApi24-demo-debug-androidTest.apk
Reproduction
Configure an Android module with multiple flavor dimensions:
android { flavorDimensions "api", "mode" productFlavors { minApi24 { dimension "api" } demo { dimension "mode" } } }Then run Fulladle for minApi24DemoDebug.
Expected behavior
Fulladle should reference the actual APK paths generated by AGP:
build/outputs/apk/minApi24Demo/debug/app-minApi24-demo-debug.apk
build/outputs/apk/androidTest/minApi24Demo/debug/app-minApi24-demo-debug-androidTest.apk
Actual behavior
Fulladle generates paths using the slash-joined flavor path and concatenated flavor name:
build/outputs/apk/minApi24/demo/debug/app-minApi24demo-debug.apk
build/outputs/apk/androidTest/minApi24/demo/debug/app-minApi24demo-debug-androidTest.apk
These files do not exist, so the generated Flank config points to invalid APK paths.