You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Enable spotless on all modules
The `./gradlew spotlessApply` command was failing in the
`:watchfacepush:validator` and `:identity:credentialmanager` modules
due to incorrect path calculations during the format and apply steps.
This was caused by ambiguous source directory configurations in their
`build.gradle.kts` files, which led to errors like `NoSuchFileException` and `FileAlreadyExistsException`.
This commit resolves these issues by explicitly defining the
`sourceSets` in the build scripts for the affected modules.
This removes the ambiguity and ensures that Gradle and the
Spotless plugin can reliably locate the source files.
As a result of this fix, the `apply_spotless.yml` GitHub workflow has
been simplified to run a single, project-wide `spotlessApply` command.
The `.gitignore` has also been updated to correctly ignore all `build` directories.
* Apply Spotless
---------
Co-authored-by: cartland <[email protected]>
// This class is mostly copied from https://github.com/android/identity-samples/blob/main/WebView/CredentialManagerWebView/CredentialManagerHandler.kt.
Copy file name to clipboardExpand all lines: identity/credentialmanager/src/main/java/com/example/identity/credentialmanager/CredentialProviderDummyActivity.kt
+27-12Lines changed: 27 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,19 @@
1
+
/*
2
+
* Copyright 2025 The Android Open Source Project
3
+
*
4
+
* Licensed under the Apache License, Version 2.0 (the "License");
5
+
* you may not use this file except in compliance with the License.
6
+
* You may obtain a copy of the License at
7
+
*
8
+
* https://www.apache.org/licenses/LICENSE-2.0
9
+
*
10
+
* Unless required by applicable law or agreed to in writing, software
11
+
* distributed under the License is distributed on an "AS IS" BASIS,
12
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+
* See the License for the specific language governing permissions and
0 commit comments