-
Notifications
You must be signed in to change notification settings - Fork 625
Create Gradle cache-compliant metalava tasks. #3994
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
Conversation
The original tasks were not properly cacheable and will fail validation in future Gradle versions.
Unit Test Results 391 files ±0 391 suites ±0 16m 1s ⏱️ - 1m 5s For more details on these failures, see this check. Results for commit b40193c. ± Comparison against base commit ba6f410. ♻️ This comment has been updated with latest results. |
Size Report 1Affected ProductsTest Logs
Notes |
Coverage Report 1Affected Products
Test Logs
Notes |
this.dependencies.add([email protected]("com.android:metalava:1.3.0")) | ||
} | ||
?: configurations.create("metalavaArtifacts") { | ||
this.dependencies.add([email protected]("com.android.tools.metalava:metalava:1.0.0-alpha06")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: is this a newer or older version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a newer version
"--hide", | ||
"HiddenSuperclass", // We allow having a hidden parent class | ||
"--hide", | ||
"HiddenAbstractMethod" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why was this add?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a new check metalava added, similar to the one you fixed in piper for auth
method @NonNull public static com.google.firebase.database.FirebaseDatabase database(@NonNull com.google.firebase.ktx.Firebase, @NonNull String url); | ||
method @NonNull public static com.google.firebase.database.FirebaseDatabase database(@NonNull com.google.firebase.ktx.Firebase, @NonNull com.google.firebase.FirebaseApp app); | ||
method @NonNull public static com.google.firebase.database.FirebaseDatabase database(@NonNull com.google.firebase.ktx.Firebase, @NonNull com.google.firebase.FirebaseApp app, @NonNull String url); | ||
method @NonNull public static com.google.firebase.database.FirebaseDatabase getDatabase(@NonNull com.google.firebase.ktx.Firebase); | ||
method @Nullable public static inline <reified T> T getValue(@NonNull com.google.firebase.database.DataSnapshot); | ||
method @Nullable public static inline <reified T> T getValue(@NonNull com.google.firebase.database.MutableData); | ||
method public static inline <reified T> T getValue(@NonNull com.google.firebase.database.DataSnapshot); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has changed from nullable to not annotated. Would this be an issue?
Here and below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been wondering that same thing, filed a bug internally http://b/242720906
/retest |
The original tasks were not properly cacheable and will fail validation
in future Gradle versions.