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

Fix "Android target depends on prerelease versions" #1564

Merged
merged 1 commit into from
Sep 16, 2024

Commits on Sep 16, 2024

  1. Fix "Android target depends on prerelease versions"

    Fixes https://youtrack.jetbrains.com/issue/CMP-5864/Compose-UI-test-error-on-android-No-static-method-forceEnableAppTracing
    
    Regression after #1367
    
    During redirection we added dependencies from "androidMain.dependencies" to the Android target, which contain a lot of prerelease versions. Also, we usually don't update `androidMain` during merges.
    
    Instead of `androidMain` we should use `commonMain`. `androidMain` dependencies are added transitively from `androidx` redirection.
    
    ## Testing
    
    1.
    ```
    ./gradlew :mpp:publishComposeJbToMavenLocal
    ```
    `~/.m2/repository/org/jetbrains/compose/ui/ui-test/0.0.0-SNAPSHOT/ui-test-0.0.0-SNAPSHOT.module`, search `monitor`. It doesn't exist anymore
    
    2. Retest #1328
    
    ## Release Notes
    ### Fixes - Multiplatform
    - _(prerelease fix)_ Fix "Compose UI test error on android: No static method forceEnableAppTracing"
    - _(prerelease fix)_ Fix "Android target depends on prerelease versions"
    igordmn committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    acdc4f6 View commit details
    Browse the repository at this point in the history