Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jetpack Compose plugin artifact pulls an unpublished dependency #5635

Open
rciovati opened this issue Jun 14, 2024 · 5 comments
Open

Jetpack Compose plugin artifact pulls an unpublished dependency #5635

rciovati opened this issue Jun 14, 2024 · 5 comments

Comments

@rciovati
Copy link

🐛 Bug Report

Related to #2366 (comment)

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

implementation project(':inspection-lib')

To Reproduce

  • Add the dependency with debugImplementation("com.facebook.flipper:flipper-jetpack-compose-plugin:0.250.0")
  • Build the app and observe the error:
> 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
Copy link

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

@lx-felipe
Copy link

Any update on this?

@0xera
Copy link

0xera commented Sep 23, 2024

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

@0xera
Copy link

0xera commented Sep 25, 2024

Btw, thanks to the Flipper team for the great plugin

@darekbx
Copy link

darekbx commented Oct 21, 2024

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")
    }

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

No branches or pull requests

5 participants