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

Update dependencies and remove automated plugins for other projects #217

Merged
merged 14 commits into from
Feb 21, 2022

Conversation

shumelchyk
Copy link
Collaborator

See #213 for context.

@shumelchyk
Copy link
Collaborator Author

@yschimke if you're online it may be good to do an interim review before I'll update the other projects.

org-jetbrains-kotlinx = "1.6.0"

[libraries]
android-build-gradle = "com.android.tools.build:gradle:7.1.1"
android-lint-gradle = "com.android.tools.lint:lint-gradle:30.1.1"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems stricter, from CI failures.

> Task :views:lintDebug FAILED
/home/runner/work/wear-os-samples/wear-os-samples/AlwaysOnKotlin/views/src/main/AndroidManifest.xml:43: Error: Redundant label can be removed [RedundantLabel]
            android:label="@string/app_name"
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, but it's even better. Should be fixed now

@@ -3,73 +3,73 @@ org-jetbrains-kotlin = "1.6.0"
org-jetbrains-kotlinx = "1.6.0"

[libraries]
android-build-gradle = "com.android.tools.build:gradle:7.1.1"
android-lint-gradle = "com.android.tools.lint:lint-gradle:30.1.1"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

/home/runner/work/wear-os-samples/wear-os-samples/RuntimePermissionsWear/Application/src/main/AndroidManifest.xml:38: Error: Redundant label can be removed [RedundantLabel]
            android:label="@string/app_name"
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

(it.candidate.version ==~ /.*-beta.*/ && !(it.currentVersion ==~ /.*-(beta|alpha).*/)) ||
(it.candidate.version ==~ /.*1.6.20-M.*/)
ktlint("0.41.0")
licenseHeaderFile rootProject.file("spotless/copyright.kt")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing, but worth adding if it doesn't trigger a bunch of failures.

> java.nio.file.NoSuchFileException: /home/runner/work/wear-os-samples/wear-os-samples/WatchFaceKotlin/spotless/copyright.kt

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copyright was missing (fixed now), but ktlint check fails as well, commented out it temporarily, but plan to take a look a bit later.

Copy link
Contributor

@yschimke yschimke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After the build errors. Thanks for following up on this so quickly.

Activity label is not needed and can’t be removed since it’s the same as app label.
Fix build errors:
- RuntimePermissionsWear
- WatchFaceKotlin

WatchFaceKotlin is failing due to ktlint error, need to investigate.
@yschimke
Copy link
Contributor

LGTM

Update dependencies for WearSpeakerSample and fixed API compatibility changes for dialogs (see https://developer.android.com/jetpack/androidx/releases/wear-compose#1.0.0-alpha15)

Check is failing due to ktlint error, need to investigate.
@yschimke
Copy link
Contributor

At least some of the android test failures seem unrelated, just timeouts.

@shumelchyk
Copy link
Collaborator Author

@yschimke yeah seem so, I checked all of them locally before pushing and they run successfully.

@yschimke
Copy link
Contributor

I know it was a bit special this time. But hopefully we can make it simpler/automated and routine in future.

@yschimke
Copy link
Contributor

Failures seem unrelated

 com.google.testing.platform.core.device.DeviceProviderException: ErrorName: DEVICE_PROVISION_FAILED
NameSpace: com.google.testing.platform
ErrorCode: 3002

and


> Task :compose:connectedDebugAndroidTest

com.example.android.wearable.wear.alwayson.AlwaysOnAppTests > textIsCorrectAfterReturningToActiveMode[test(AVD) - 11] FAILED 
	java.lang.IllegalStateException: No compose views found in the app. Is your Activity resumed?
	at androidx.compose.ui.test.TestContext.getAllSemanticsNodes$ui_test_release(TestOwner.kt:96)

@shumelchyk
Copy link
Collaborator Author

Merging this PR with a note to investigate a possible workaround for flaky tests that seems to be a root cause for check failures in AlwaysOnKotlin sample.

@shumelchyk shumelchyk merged commit b5be11d into main Feb 21, 2022
@yschimke
Copy link
Contributor

Raised #219

@shumelchyk shumelchyk deleted the kshum-updates-dependencies branch February 22, 2022 16:19
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

Successfully merging this pull request may close these issues.

2 participants