facebook / flipper

A desktop debugging platform for mobile developers.
https://fbflipper.com/
MIT License
13.37k stars 952 forks source link

Jetpack Compose plugin artifact pulls an unpublished dependency #5635

Open rciovati opened 5 months ago

rciovati commented 5 months ago

🐛 Bug Report

Related to https://github.com/facebook/flipper/issues/2366#issuecomment-1842473245

The Jetpack Compose plugin has a dependency on an .aar that is not published, making it currently unusable:

https://github.com/facebook/flipper/blob/6b44de3fb395db990c851cc6a25521cc23fb0323/android/plugins/jetpack-compose/build.gradle#L35

To Reproduce

> Could not resolve all files for configuration ':app:standardDebugRuntimeClasspath'.
   > Could not find flipper:inspection-lib:unspecified.
     Searched in the following locations:
       - file:/Users/user/.m2/repository/flipper/inspection-lib/unspecified/inspection-lib-unspecified.pom
       - file:/Users/user/ghq/omitted/Frontpage-Android/jetified-libs/flipper/inspection-lib/unspecified/inspection-lib-unspecified.pom
       - https://omitted/artifactory/omitted-maven-prod/flipper/inspection-lib/unspecified/inspection-lib-unspecified.pom
     Required by:
         project :app > com.facebook.flipper:flipper-jetpack-compose-plugin:0.250.0

Environment

Not relevant

digitalbuddha commented 4 months ago

Hi folks, wanted to see if any updates or workarounds, thank you

lx-felipe commented 2 months ago

Any update on this?

0xera commented 2 months ago

Hi everyone. I have published that library and you can run the compose plugin as described here https://github.com/0xera/inspection-lib

0xera commented 1 month ago

Btw, thanks to the Flipper team for the great plugin

darekbx commented 1 month ago

I found that inspection-lib could be replaced with androidx.inspection:inspection lib, but cannot be resolved from maven. https://mvnrepository.com/artifact/androidx.inspection/inspection/1.0.0

Another solution, if you don't want to use aar from external repository: Download .aar from androidx.dev: https://androidx.dev/snapshots/builds/12527636/artifacts androidx.inspection-inspection-all-12527636-1.0.0-SNAPSHOT.zip Include aar file in project libs dir.

    implementation(group = "", name = "inspection-1.0.0-20241021.073440-1", ext = "aar")

    modules {
        module("flipper:inspection-lib") {
            replacedBy("androidx.inspection:inspection")
        }
    }

    implementation("com.facebook.flipper:flipper-jetpack-compose-plugin:0.267.1") {
        exclude(group = "flipper", module = "inspection-lib")
    }