Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix "Android target depends on prerelease versions" #1564

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

igordmn
Copy link
Collaborator

@igordmn igordmn commented Sep 16, 2024

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 contains a lot of prerelease versions. Also, we usually don't update androidMain during merges.

Instead of androidMain we should use commonMain. Pure androidMain dependencies are added transitively from androidx redirection.

Testing

./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

  1. Retest Don't show code completion for non-existenst API in commonMain that fails on Android with NoSuchMethodException #1328

This should be tested by QA.

Release Notes

Fixes - Android

  • (prerelease fix) Fix "Compose UI test error on android: No static method forceEnableAppTracing"
  • (prerelease fix) Fix "Android target depends on prerelease versions"

@igordmn igordmn marked this pull request as draft September 16, 2024 12:02
@igordmn igordmn force-pushed the igor.demin/fix-android-dependencies branch 2 times, most recently from 7a2df2f to a3964ae Compare September 16, 2024 15:33
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 igordmn force-pushed the igor.demin/fix-android-dependencies branch from a3964ae to acdc4f6 Compare September 16, 2024 15:37
@igordmn igordmn requested a review from eymar September 16, 2024 15:37
@igordmn igordmn marked this pull request as ready for review September 16, 2024 15:37
@igordmn igordmn merged commit 2aa77ee into jb-main Sep 16, 2024
5 of 6 checks passed
@igordmn igordmn deleted the igor.demin/fix-android-dependencies branch September 16, 2024 17:08
igordmn added a commit that referenced this pull request Sep 16, 2024
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 contains a lot of prerelease versions.
Also, we usually don't update `androidMain` during merges.

Instead of `androidMain` we should use `commonMain`. Pure `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

This should be tested by QA.

## 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"
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants